Module 1 Flashcards

(19 cards)

1
Q

containers for storing data values.

A

Variables

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

variables must be identified with unique names. These unique names are called

A

identifiers

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

are used to perform operations on variables and values.

A

Operators

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

are used to perform common mathematical operations.

A

Arithmetic operators

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

are used to assign values to variables.

A

Assignment operators

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

are used to compare two values.

A

Comparison operators

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

are used to determine the logic between variables or values

A

Logical operators

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

Use the _______to specify a block of C++ code to be executed if a condition is true.

A

The if Statement

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

use the ____to specify a block of code to be executed if the
condition is false.

A

The else Statement

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

Use the _____ to specify a new condition if the first condition is false.

A

The else if Statement

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

use this statement to select one of many code blocks to be executed.

A

Switch Statements

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

it breaks out of the switch block.

A

The break Keyword

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

specifies some code to run if there is no case match

A

The default Keyword

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

are handy because they save time, reduce errors, and they make code more readable.

A

Loops

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

loops through a block of code as long as a specified condition is true

A

While Loop

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

is a variant of the while loop. This loop will execute the code block once, before checking if the condition is true, then it will repeat the loop as long as the condition is true.

A

The Do/While Loop

17
Q

When you know exactly how many times you want to loop through a block of code

18
Q

used to jump out of a loop.

19
Q

breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.