Variables and Types
Logic and Control
Functions
Arrays and Vectors
Streams and I/O
100

What is the value of x if we have the expression: int x = 14 / 3

3

100

Which kind of loop is guaranteed to run at least once?

Do-While Loop

100

This keyword is used when a function returns nothing.

void

100

The index of the very first element in any array.

0

100

What is the name for this operator: (>>) used to read from a stream.

Extraction operator

200

In programming, this term describes a variable/value that never changes, like 3.14 or 'Hello'

Constant

200

The logical operator that represents "OR".

| |

200

A copy of an argument passed to a function.

pass-by-value

200

The property of arrays that means their size cannot change.

Static

200

This function is used to read an entire line, including spaces.

getline()

300

The result of 17 % 5

2

300

This statement is a cleaner alternative to many if-else blocks.  

Switch Statement

300

The syntax used in a header to tell the compiler a function exists.

Function Prototype

300

To add an element to the end of a vector, use this function.

push_back()

300

This manipulator sets the number of decimal places shown.

setprecision(n)

400

This type is best for storing a single character like 'A'.

Char

400

What is the result of !(true && false)?

true
400

This symbol (&) denotes what kind of parameter?

Call-by-reference

400

When passing an array to a function, you must also pass this.

The size of the array

400

This function is used to reset a stream's fail state.

.clear()

500

The name for the region of code where a variable is accessible.

Scope

500

Given int i = 0; while (i < 5) { if (i % 2 == 0) continue; i++; }, what causes an infinite loop?

No i increment ever occurs

500

This happens to a variable if const is used with a reference.

It becomes read-only (cannot be changed)

500

This vector function returns the current number of elements.

size()
500

This function "skips" characters remaining in the buffer.

ignore()