Chapter 2 Flashcards

1
Q

T/F In JavaScript code, you use the words yes and no to indicate Boolean values

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

T/F A logical operator is used to compare two string operands for equality

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

T/F An anonymous function is a set of related statements that is assigned a name

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In JavaScript you can write your own procedures called (Blank) which refer to a related group of JavaScript statements that are executed as a single unit

A

functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

parameter

A

a variable that is used within a function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

return statement

A

a statement that returns a value to the statement that called the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

global variable

A

variable that is declared outside a function and is available to all parts of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Data types that can be assigned only a single value are called (Blank) types

A

primitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Programming languages that require you to declare the data types of variables are called (Blank) typed

A

strongly/statically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

JavaScript is a (Blank) typed programming language

A

loosely/dynamically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

integer

A

a positive or negative number with no decimal places

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

empty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You can use the compound (Blank) to combine two strings

A

assignment operator (+=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

escape character

A

tells the compiler or interpreter that the character that follows has a special purpose

17
Q

===

A

strict equal operator

18
Q

modulus

A

remainder left after you divide one number by another number

19
Q

&&

A

and operator

20
Q

?!

A

conditional expression

21
Q

Operator Precedence

A
Multiplication, Division, Modulus
Addition, Subtraction, Comparison
Object Type
Object Property
Equality
Logical And
Logical Or
Conditional
Assignment
Compound Assignment
Comma
22
Q

&&, | |, !

A

Logical Operators. And, Or, Not

23
Q

Six Falsy Values

A

””, -0, 0, NaN, null, undefined

24
Q

Function Statements are contained within the function (Blank)

A

braces

25
Q

arguements

A

variables or values that you place in the parentheses of a function call statement

26
Q

Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new (Blank)

A

variable

27
Q

data type

A

the specific category of information that a variable contains

28
Q

Sending arguments to the parameters of a called function is called (Blank)

A

passing arguments

29
Q

local variable

A

variable declared inside a function and only available within that function

30
Q

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

A

binary operator