A loop that runs indefinitely because the condition never becomes false
What is an infinite loop?
This data structure stores a collection of elements in a single line, with each element accessible by an index.
What is a 1D Array
What does a void function return in C++?
What is nothing
A C++ class used to open a file for reading input
What is ifstream
What does a pointer store in C++?
What is a memory address?
Which control structure in C++ repeatedly executes a block of code as long as a given condition remains true?
What is a while loop?
This manipulator forces floating-point numbers to be displayed in fixed-point notation and sets their precision to a fixed value.
What is fixed?
In the function header int calculate(int num), what does the int before the function name indicate?
What is a return type
This class allows for both reading from and writing to files.
What is fstream
This is a block of code created to perform a specific task or operation in a program.
What is a function
This programming technique ensures that a program continues prompting the user until acceptable input is provided.
What is validation?
A data structure used to store data in a tabular format, with rows and columns
What is a 2D array?
This function reads an entire line of input from the user, including spaces, and stores it inside a variable.
What is getline()?
This statement in C++ exits a loop immediately, stopping further iterations.
What is break;?
This <iomanip> function sets the width of the output field for displaying data in C++.
What is setw?
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?
This value is added to an array index to match the number the user expects, since array indexing starts at 0.
What is 1?
A value passed into a function to provide the data it needs to operate
What is an argument
This statement in C++ skips the rest of the current loop iteration and immediately begins the next one.
What is continue;?
This function adds an element to the end of a vector in C++.
What is push_back?
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?
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?
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?
This encryption technique shifts each letter of the plaintext by a fixed number of positions in the alphabet.
What is Caesar Cipher?
A shorthand way to write an if-else statement in C++?
What is the ternary operator (? :)?