Chapter 2-functions/data types Flashcards

1
Q

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

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

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

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

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 programming, you can write your own procedures, called _____, 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

A ____ variable that is used within a function

A

Parameter

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

A___ statement is a statement that returns a value to o the statement that called the function

A

Return

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

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

A

Global

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 ___\ 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 ____ typed programming languages

A

Strongly

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

Javascript is a ___ programming language

A

Loosely typed

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

A ___ is a positive or negative number with no decimal places

A

Integer

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 ____ string

A

Empty

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

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

A

Escape character

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

The strict equal operator is ___\

A

===

17
Q

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

A

Remainder left

18
Q

The and operator is

A

&&

19
Q

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

A

?:

20
Q

Which arithmetic operators have the highest precedence

A
  • / %
21
Q

Which of the following is a logical operator ?

A

||

22
Q

Which of the following is a false value?

A

0

23
Q

Function statements are contained within the function____

A

Braces

24
Q

The variables or values that you place in the parentheses of a function call statements are called _____

A

Arguments

25
Q

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

A

Variable

26
Q

A ______ type is the specific category of information that a variable contains

A

Data

27
Q

Sending arguments to the parameters of a called function is called ______arguments

A

Passing

28
Q

A __ variable is declared inside a function and is available only within the function in which it is declared

A

Local

29
Q

A _____ operator require an operand before and after the operator

A

Binary