Loops
Arrays
Functions
I/O
Misc
100

A loop that runs indefinitely because the condition never becomes false

What is an infinite loop

100

This data structure stores a collection of elements in a single line, with each element accessible by an index.

What is a 1D Array

100

What does a void function return in C++?

What is nothing

100

A C++ class used to open a file for reading input

What is ifstream

100

A C++ data structure used to group related variables of different types into a single unit

What is a struct?

200

A control structure in C++ that executes code repeatedly as long as a condition is true.

What is a while loop

200

The WHAT manipulator forces floating-point numbers to be displayed in fixed-point notation and sets their precision to a fixed value.

What is fixed manipulator

200

In the function declaration:

 int calculate(int num)

This describes what the function will output or send back to the program after execution.

What is a return type

200

This class allows for both reading from and writing to files.

What is fstream

200

A block of code designed to perform a specific task

What is a function

300

This type of loop guarantees that its block of code will execute at least once, even if the condition is false on the first iteration.

do/while

300

A data structure used to store data in a tabular format, with rows and columns

What is a 2D array

300

This function reads an entire line of input from the user, including spaces, and stores it inside a variable.

What is getline() function

300

A function used in C++ to skip characters in an input buffer, often used to remove leftover newline characters after reading input

What is ignore()

300

This function adds an element to the end of a vector.

What is push_back()

400

A control structure used to perform an action based on multiple possible conditions, with each condition checked in a case

What is a switch statement

400

Added to an array index to match the number the user expects, since array indexing starts at 0.

What is 1

400

A value passed into a function to provide the data it needs to operate

What is an argument

400

The use of the " & " symbol in C++ to allow cin to directly change a variable's value, updating the original variable with user input.

What is passing by reference

400

What does a pointer store in C++?

What is a memory address

500

A data type commonly used in for loops to count elements in vectors or arrays and iterate through them, often in conjunction with the size() function

What is size_t

500

A dynamic array in C++ that can grow or shrink in size at runtime, providing automatic memory management and easy access to elements

What is a Vector

500

Variables, often called placeholders, in a function definition that allow values to be passed into the function for it to use during execution

What are parameters

500

The process of adding data to the end of an existing file without overwriting its current contents, typically done using ofstream with the ios::app flag

What is appending

500

A shorthand way to write an if-else statement in C++?

What is the ternary operator (? :)?

M
e
n
u