Exam 17: Fundamental Concepts Expressed in Javascript

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

A(n) ________ value is a sequence of keyboard characters surrounded by single or double quotes . .

Free
(Short Answer)
4.7/5
(73)
Correct Answer:
Verified

string

In JavaScript, variables must be declared at the top of the program .

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

False

In JavaScript, all variables must be initialized immediately following their declarations .

Free
(True/False)
4.8/5
(80)
Correct Answer:
Verified

False

What is the value of the variable result after the following statements execute? FirstName = "Martha"; LastName = "Jones"; Result = firstName + lastName;

(Multiple Choice)
4.8/5
(80)

What is the value of the variable result after the following statements execute? Age = 23; Name = "Howard"; If (age >= 23 && name == "Johnny") Result = "At last! I found you, "+ name; Else Result = "Sorry, "+name+" . You're not my long lost cousin . ";

(Multiple Choice)
4.8/5
(79)

The JavaScript declaration command used to create a variable is the keyword ________ .

(Short Answer)
4.8/5
(76)

Which of the following is NOT a valid assignment statement, assuming length, width, and area are valid variables?

(Multiple Choice)
4.8/5
(75)

If the JavaScript variable myAge has the value 5, what will be the result of the following statement? MyAge == 23;

(Multiple Choice)
4.9/5
(77)

Relational operators cannot be used on strings .

(True/False)
4.7/5
(71)

In JavaScript strings must be enclosed in either single quotes (' . . . ') or double quotes (" . . . ") .

(True/False)
4.9/5
(72)

The angle brackets (< >) used to describe the syntax of a programming command are called ________ .

(Short Answer)
4.9/5
(86)

In JavaScript, the statement 17 % 5 results in

(Multiple Choice)
4.8/5
(89)

A correct solution to a programming problem is always an elegant solution .

(True/False)
4.9/5
(69)

In JavaScript a string constant or string literal

(Multiple Choice)
4.9/5
(81)

The flow of an assignment statement is always right to left .

(True/False)
4.8/5
(79)

Programming languages

(Multiple Choice)
4.7/5
(77)

A JavaScript variable cannot be initialized in the same statement in which it is declared .

(True/False)
4.8/5
(73)

The statement terminator in JavaScript is a colon (:) .

(True/False)
4.8/5
(74)

The outcome of a relational expression is always either true or false .

(True/False)
4.9/5
(69)

The logical AND operator is denoted by ________ .

(Short Answer)
4.8/5
(81)
Showing 1 - 20 of 43
close modal

Filters

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