Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
- 3rd side (hint)
The values a program stores in computer memory are commonly called variables. Technically
speaking, though, a variable is actually a specific value in the computer’s memory. T/F |
FALSE
p59 |
p59
|
|
JavaScript is a loosely typed programming language. T/F
|
TRUE
p67 |
p67
|
|
In JavaScript programming, you can only use the words yes and no to indicate Boolean values. T/F
|
FALSE
p71 |
p71
|
|
Comparison operators are used to compare two operands and determine if one numeric value is greater
than another. T/F |
TRUE
p85 |
p85
|
|
Logical operators are used for comparing two string operands for equality.
|
FALSE
p88 |
p88
|
|
The equal sign (=) in the following statement is called a(n) ____.
var variable_name = value; |
assignment operator
p61 |
a. value separator c. assignment operator
b. equals comparison d. declaration operator |
|
Data types that can be assigned only a single value are called ____ types.
|
primitive
p66 |
a. primitive c. numeric
b. null d. Boolean |
|
Programming languages that require you to declare the data types of variables are called ____
programming languages. |
strongly typed
p67 |
a. dynamic typed c. static typed
b. strongly typed d. loosely typed |
|
JavaScript is a ____ typed programming language.
|
loosely
p67 |
a. static typed c. strongly typed
b. loosely typed d. numeric typed |
|
A positive or negative number with no decimal places is called a(n)____.
|
integer
p68 |
a. floating-point number c. exponential number
b. scientific number d. integer |
|
A(n) ____ contains a set of data represented by a single variable name.
|
array
p71 |
a. group c. string
b. array d. list |
|
A ____ is a special type of function that is used as the basis for creating reference variables (that is,
variables whose data type is the reference data type). |
constructor
p72 |
a. list builder c. constructor
b. referencer d. grouper |
|
The numbering of elements within an array starts with a number of zero (0). A(n) ____ is an element’s
numeric position within the array. |
index
p72 |
a. index c. reference
b. location d. descriptor |
|
The Array class contains a single property, the ____ property, which returns the number of elements
in an array. |
length
p75 |
a. count c. describe
b. show d. length |
|
You use operands and operators to create expressions in JavaScript. ____ are variables and literals
contained in an expression. |
Operands
p76 |
a. Operators c. Locations
b. Operands d. Strings |
|
You can use an arithmetic operator to return the modulus of a calculation, which is the ____ when you divide one number by another number.
|
remainder left
p77 |
a. remainder left c. product
b. quotient d. difference |
|
What is the value of returnValue?
var x, y, returnValue; x = 12; y = 8; returnValue = x / y; |
1.5
p78 |
a. 1 c. 4
b. 1.5 d. 20 |
|
What is the value of returnValue?
var x, y, returnValue x = 12; y = 8; returnValue = x % y; |
4
p78 |
a. 1 c. 20
b. 4 d. 150% |
|
What is the value of returnValue?
var x, y, returnValue x = "3"; y = "2"; returnValue = x + y; |
32
p79 |
a. “3+2” c. 6
b. 5 d. 32 |
|
What is the value of x after these two statements execute?
var x = 1; x++; |
2
p80 |
a. -1 c. 1
b. 0 d. 2 |
|
The compound addition assignment operator is ____.
|
+=
p84 |
a. += c. ==+
b. == d. =+ |
|
The strict equal operator is ____.
|
===
p86 |
a. = c. <>
b. === d. !== |
|
Which is the AND operator?
|
&&
p88 |
a. != c. &&
b. || d. == |
|
Literal strings can be assigned a zero-length string value called a(n) ____ string.
|
empty
p89 |
a. empty c. short
b. undefined d. byte |
|
A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose.
|
escape character
p91 |
a. exclamation point c. null character
b. escape character d. upper case character |
|
Which arithmetic operators have the highest precedence?
|
* / %
p96 |
a. * / % c. &&
b. < <= d. + - |
|
Identify the letter of the choice that best matches the phrase or definition.
a. variable b. index c. postfix operator d. null e. constructor f. identifier g. operator precedence h. floating-point i. empty string 1. The order in which operations in an expression are evaluated 2. The name you assign to a variable 3. A special function used as the basis for creating reference variables 4. A number that contains decimal places or that is written in exponential notation 5. Value a program stores in computer memory 6. An element’s numeric position within an array 7. An empty value 8. A zero-length string value 9. Placed after a variable |
1. ANS: G PTS: 1 REF: 95
2. ANS: F PTS: 1 REF: 60 3. ANS: E PTS: 1 REF: 72 4. ANS: H PTS: 1 REF: 68 5. ANS: A PTS: 1 REF: 59 6. ANS: B PTS: 1 REF: 72 7. ANS: D PTS: 1 REF: 66 8. ANS: I PTS: 1 REF: 89 9. ANS: C PTS: 1 REF: 80 |
|