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

What does a pointer store in C++?

What is a memory address?

200

Which control structure in C++ repeatedly executes a block of code as long as a given condition remains true?

What is a while loop?

200

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

What is fixed?

200

In the function header int calculate(int num), what does the int before the function name indicate?  

What is a return type

200

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

What is fstream

200

This is a block of code created to perform a specific task or operation in a program.

What is a function

300

This programming technique ensures that a program continues prompting the user until acceptable input is provided.  


What is validation?

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()?

300

This statement in C++ exits a loop immediately, stopping further iterations.

What is break;?

300

This <iomanip> function sets the width of the output field for displaying data in C++.  

What is setw?

400

What is the output of the following code? 

int x = 10, y = 20;
if (x > y || y == 20)
    cout << "True";
else
    cout << "False"; 

What is True?

400

This value is 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

This statement in C++ skips the rest of the current loop iteration and immediately begins the next one.



 

What is continue;?

400

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

What is push_back?

500

This data type is commonly used in for loops to count elements in vectors or arrays, often used with the size() function for safe indexing.

What is size_t?

500

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

What is a Vector?

500

These are 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

This encryption technique shifts each letter of the plaintext by a fixed number of positions in the alphabet.

What is Caesar Cipher?

500

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

What is the ternary operator (? :)?