Question 1
The variables or values that you place in the parentheses of a function call statement are called ____.Correct Answer:
b.
string operatorsQuestion 2
In JavaScript code, you use the words yes and no to indicate Boolean values.Correct Answer:
FalseQuestion 3
Data types that can be assigned only a single value are called ____ types.Correct Answer:
c.
primitiveQuestion 4
Programming languages that require you to declare the data types of variables are called ____ typed programming languages.Correct Answer:
b.
stronglyQuestion 5
Which arithmetic operators have the highest precedence?Correct Answer:
d.
* / %Question 6
You can use the compound ____ to combine two strings.Correct Answer:
c.
assignment operatorQuestion 7
An anonymous function is a set of related statements that is assigned a name.Correct Answer:
FalseQuestion 8
A logical operator is used to compare two string operands for equality.Correct Answer:
FalseQuestion 9
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:
b.
remainder leftQuestion 10
A(n) ____________________ type is the specific category of information that a variable contains.Correct Answer: Evaluation Method Correct Answer Case Sensitivity
Exact Matchdata Question 11
A(n) ____________________ operator requires an operand before and after the operator.Correct Answer: Evaluation Method Correct Answer Case Sensitivity
Exact Matchbinary Question 12
The ____ operator executes one of two expressions based on the results of a conditional expression.Correct Answer:
a.
?:Question 13
A(n) ____ is a variable that is used within a function.Correct Answer:
c.
parameterQuestion 14
Which of the following is a logical operator?Correct Answer:
b.
||Question 15
Identify the letter of the choice that best matches the phrase or definition.Question Correct Match Method that lets you specify an event handler for an event
a.
addEventListener()The lines that make up a function
f.
function definitionA logical value of true or false
e.
BooleanThe code that invokes a named function
b.
function callCan be either global or local
d.
scopeA number that contains decimal places or that is written in exponential notation
h.
floating-pointA value treated in comparison operations as the Boolean value false
i.
falsyPlaced after a variable
c.
postfix operatorThe order in which operations in an expression are evaluated
g.
operator precedenceA property whose value is the content between an element's opening and closing tags
j.
innerHTML
Question 16
A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose.Correct Answer:
b.
escape characterQuestion 17
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:
c.
functionsQuestion 18
A literal string can be assigned a zero-length string value called a(n) ____ string.Correct Answer:
c.
emptyQuestion 19
A ____ variable is one that is declared outside a function and is available to all parts of your program.Correct Answer:
c.
globalQuestion 20
Function statements are contained within the function ____.Correct Answer:
d.
bracesQuestion 21
Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated.Correct Answer:
TrueQuestion 22
Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new ____________________.Correct Answer: Evaluation Method Correct Answer Case Sensitivity
Exact Matchvariable Question 23
A comparison operator is used to compare two operands and determine if one numeric value is greater than another.Correct Answer:
TrueQuestion 24
A(n) ____ statement is a statement that returns a value to the statement that called the function.Correct Answer:
c.
returnQuestion 25
Which of the following is a falsy value?Correct Answer:
a.
0
0 comments:
Post a Comment