Exam 2: Working With Functions Data Types and Operators

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is the relationship between Boolean values, truthy values, and falsy values?

(Essay)
4.7/5
(44)

Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated.

(True/False)
4.8/5
(40)

Data types that can be assigned only a single value are called ____ types.

(Multiple Choice)
4.8/5
(39)

JavaScript is a ____ programming language.

(Multiple Choice)
4.9/5
(33)

The ____ operator executes one of two expressions based on the results of a conditional expression.

(Multiple Choice)
4.7/5
(40)

A(n)____ is a variable that is used within a function.

(Multiple Choice)
4.9/5
(34)

You can use an arithmetic operator to return the modulus of a calculation, which is the ____ when you divide one number by another number.

(Multiple Choice)
4.9/5
(24)

What is the difference between the operation of the + operatorwith numbers and with strings? Provide an example of each, including the results.

(Essay)
4.9/5
(37)

You can use the compound ____ to combine two strings.

(Multiple Choice)
4.8/5
(37)

A(n)____________________ type is the specific category of information that a variable contains.

(Short Answer)
4.9/5
(43)

What are the differences between using a the increment and decrement unary operators as prefix operators versus using them as postfix operators?

(Essay)
4.8/5
(47)

Define variable scope, and describe the two types of variable scope and how you create each.

(Essay)
4.8/5
(34)

Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new ____________________ .

(Short Answer)
4.8/5
(27)
Identify the letter of the choice that best matches the phrase or definition.
The order in which operations in an expression are evaluated
operator precedence
Method that lets you specify an event handler for an event
function definition
The code that invokes a named function
postfix operator
Correct Answer:
Verified
Premises:
Responses:
The order in which operations in an expression are evaluated
operator precedence
Method that lets you specify an event handler for an event
function definition
The code that invokes a named function
postfix operator
A property whose value is the content between an element's opening and closing tags
floating-point
A number that contains decimal places or that is written in exponential notation
falsy
A value treated in comparison operations as the Boolean value false
function call
Placed after a variable
addEventListener()
Can be either global or local
scope
A logical value of true or false
innerHTML
The lines that make up a function
Boolean
(Matching)
4.7/5
(43)

JavaScript supports five primitive data types. Name and describe these types.

(Essay)
4.9/5
(40)

An anonymous function is a set of related statements that is assigned a name.

(True/False)
4.8/5
(28)

Function statements are contained within the function ____.

(Multiple Choice)
4.7/5
(36)

Sending arguments to the parameters of a called function is called ____________________ arguments.

(Short Answer)
4.9/5
(35)

The And operator is ____.

(Multiple Choice)
4.8/5
(41)

A(n)____ is a positive or negative number with no decimal places.

(Multiple Choice)
4.9/5
(36)
Showing 21 - 40 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)