Exam 2: Working With Functions Data Types and Operators

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

A literal string can be assigned a zero-length string value called a(n)____ string.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

A

In JavaScript code, you use the words yes and no to indicate Boolean values.

Free
(True/False)
4.9/5
(42)
Correct Answer:
Verified

False

What is a browser console and how is it useful for a web developer?

Free
(Essay)
4.7/5
(42)
Correct Answer:
Verified

When a browser encounters an error that keeps it from understanding code, it generates an  error message. However, this message is displayed in a pane known as a browser console ,  or simply console , which is hidden by default to avoid alarming users. As a developer,  however, it can be useful to display the browser console pane to see any errors that your code  may generate.

A(n)____ tells the compiler or interpreter that the character that follows it has a special purpose.

(Multiple Choice)
4.7/5
(39)

A logical operator is used to compare two string operands for equality.

(True/False)
4.8/5
(35)

Operator precedence is the system that determines the order in  which operations in an expression are evaluated.

(Essay)
4.8/5
(29)

Explain what logical operators are, and then list the 3 JavaScript logical operators and explain what each does.

(Essay)
4.8/5
(31)

The strict equal operator is ____.

(Multiple Choice)
4.8/5
(40)

A ____ variable is one that is declared outside a function and is available to all parts of your program.

(Multiple Choice)
4.8/5
(36)

Which of the following is a falsy value?

(Multiple Choice)
4.8/5
(29)

A comparison operator is used to compare two operands and determine if one numeric value is greater than another.

(True/False)
4.9/5
(44)

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.

(Multiple Choice)
5.0/5
(34)

Describe the two types of functions and explain when you'd use each type.

(Essay)
5.0/5
(33)

The variables or values that you place in the parentheses of a function call statement are called ____ .

(Multiple Choice)
4.8/5
(28)

Which arithmetic operators have the highest precedence?

(Multiple Choice)
4.9/5
(32)

A(n)____________________ operator requires an operand before and after the operator.

(Short Answer)
4.9/5
(42)

A(n)____ statement is a statement that returns a value to the statement that called the function.

(Multiple Choice)
4.9/5
(38)

Programming languages that require you to declare the data types of variables are called ____ typed programming languages.

(Multiple Choice)
5.0/5
(33)

What are the advantages of using the addEventListener()method instead of the other two methods to specify an event handler?

(Essay)
4.9/5
(44)

A(n)____________________ variable is declared inside a function and is available only  within the function in which it is declared.

(Short Answer)
4.9/5
(37)
Showing 1 - 20 of 41
close modal

Filters

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