Foundations
C++ Basics
Information
Branching
Looping
100

Any information that can be moved, processed, or stored by a computer

What is data?

100

The ending punctuation for a statement

What is a semicolon?

100

This specifies the kind and size of information that a variable can store

What is a Data Type?

100

This programming construct is used to make decisions in code based on a specified condition.

What is an if statement?

100

This programming construct allows a block of code to be executed repeatedly as long as a specified condition remains true

What is a while loop?

200

A base-2 number system

What is binary?

200

+ ,  - ,  * ,  / ,  and  %

What are the arithmetic operators?

200

This acts as a container for data

What is a variable?

200

An expression that evaluates to a boolean value

What is a condition?

200

This operator is used to compare two values and evaluates to true if the values are not equal.

What is != ?

300

The smallest unit of data in computer memory

What is a bit?

300

This describes code that is abstracted from gritty details and reads almost like natural language?

What is a high-level language?

300

int myInt;

What is a basic integer variable declaration?

300

&&

What is the logical AND operator?

300

Unlike the "while loop," this type of loop guarantees that the code block is executed at least once, even if the condition is initially false

What is a "do while" loop?

400

The only language a computer can process directly

What is machine code?

400

=

What is the assignment operator?

400

bool lightIsOn = true;

What is a boolean declaration and assignment/initialization?

400

(4 + 7 > 6 + 5      ||      

10 * 10 * 10 == 25 + 25 * 2 +  900)

evaluates to this boolean value

What is false?

400

The resultant situation from a "while loop" whose condition never becomes false.

What is an infinite loop?

500

A cycle that CPUs use to process instructions

What is the fetch-decode-execute cycle

500

int main() {

}

What is the main function?

500

This data type would be useful in holding ratios

What is a float?

500

( (4 + 7) > (6 + 5)      &&     

10 * 10 * 10 == (25 + 25) * 2 +  900)

evaluates to this boolean value

What is false?

500

A "for loop" uses this to serve as an index and provides a useful feature for arrays of data

What is a loop control variable or iterator?