Monday, September 16, 2019

Quiz 1 CHAPTER 1-INTRODUCTION

  • Question 1

    0 out of 4 points
    The variables or values that you place in the parentheses of a function call statement are called ____.​
    Correct Answer:
    Correctb. 

    ​string operators
  • Question 2

    4 out of 4 points
    In JavaScript code, you use the words yes and no to indicate Boolean values.
    Correct Answer:
    Correct False
  • Question 3

    4 out of 4 points
    Data types that can be assigned only a single value are called ____ types.
    Correct Answer:
    Correctc. 

    primitive
  • Question 4

    4 out of 4 points
    Programming languages that require you to declare the data types of variables are called ____ typed programming languages.
    Correct Answer:
    Correctb. 

    strongly
  • Question 5

    4 out of 4 points
    Which arithmetic operators have the highest precedence?
    Correct Answer:
    Correctd. 

    * / %
  • Question 6

    4 out of 4 points
    You can use the compound ____ to combine two strings.
    Correct Answer:
    Correctc. 

    assignment operator
  • Question 7

    4 out of 4 points
    ​An anonymous function is a set of related statements that is assigned a name.
    Correct Answer:
    Correct False
  • Question 8

    4 out of 4 points
    A logical operator is used to compare two string operands for equality.
    Correct Answer:
    Correct False
  • Question 9

    4 out of 4 points
    You can use an arithmetic operator to return the modulus of a calculation, which is the ____ when you divide one number by another number.
    Correct Answer:
    Correctb. 

    remainder left
  • Question 10

    4 out of 4 points
    A(n) ____________________ type is the specific category of information that a variable contains.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchdata
  • Question 11

    4 out of 4 points
    A(n) ____________________ operator requires an operand before and after the operator.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchbinary
  • Question 12

    4 out of 4 points
    The ____ operator executes one of two expressions based on the results of a conditional expression.
    Correct Answer:
    Correcta. 

    ?:
  • Question 13

    4 out of 4 points
    A(n) ____ is a variable that is used within a function.
    Correct Answer:
    Correctc. 

    parameter
  • Question 14

    4 out of 4 points
    Which of the following is a logical operator?​
    Correct Answer:
    Correctb. 

    ​||
  • Question 15

    0 out of 4 points
    Identify the letter of the choice that best matches the phrase or definition.
    • QuestionCorrect Match
      Method that lets you specify an event handler for an event
      Correct a. 
      addEventListener()
      The lines that make up a function
      Correct f. 
      function definition
      A logical value of true or false
      Correct e. 
      Boolean
      The code that invokes a named function
      Correct b. 
      function call
      Can be either global or local
      Correct d. 
      scope
      A number that contains decimal places or that is written in exponential notation
      Correct h. 
      floating-point
      A value treated in comparison operations as the Boolean value false
      Correct i. 
      falsy
      Placed after a variable
      Correct c. 
      postfix operator
      The order in which operations in an expression are evaluated
      Correct g. 
      operator precedence
      A property whose value is the content between an element's opening and closing tags
      Correct j. 
      innerHTML
  • Question 16

    4 out of 4 points
    A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose.
    Correct Answer:
    Correctb. 

    escape character
  • Question 17

    4 out of 4 points
    In JavaScript programming, you can write your own procedures, called ____, which refer to a related group of JavaScript statements that are executed as a single unit.
    Correct Answer:
    Correctc. 

    functions
  • Question 18

    4 out of 4 points
    A literal string can be assigned a zero-length string value called a(n) ____ string.
    Correct Answer:
    Correctc. 

    empty
  • Question 19

    4 out of 4 points
    A ____ variable is one that is declared outside a function and is available to all parts of your program.
    Correct Answer:
    Correctc. 

    global
  • Question 20

    4 out of 4 points
    Function statements are contained within the​ function ____.
    Correct Answer:
    Correctd. 

    ​braces
  • Question 21

    4 out of 4 points
    Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated.
    Correct Answer:
    Correct True
  • Question 22

    4 out of 4 points
    Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new ____________________.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchvariable
  • Question 23

    4 out of 4 points
    A comparison operator is used to compare two operands and determine if one numeric value is greater than another.
    Correct Answer:
    Correct True
  • Question 24

    4 out of 4 points
    A(n) ____ statement is a statement that returns a value to the statement that called the function.
    Correct Answer:
    Correctc. 

    return
  • Question 25

    4 out of 4 points
    Which of the following is a falsy value?​
    Correct Answer:
    Correcta. 

    ​0

0 comments:

Post a Comment