1/23
Fill-in-the-blank practice flashcards covering basic C++ program structure, I/O streams, namespaces, variables, constants, fundamental data types, arithmetic operators, and sequential operations.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
In C++, the preprocessor directive #include <iostream> instructs the compiler to include the __________ library.
input/output
The execution of every C++ program begins at the starting point known as the __________ function.
int main()
In the main() function, the statement return 0; signals that the program ended __________.
successfully
A collection of pre-written code that provides ready-made tools to avoid writing everything from scratch is called a __________.
library
In C++, the concept of a "stream" refers to a __________ of data traveling into or out of a program.
flow
A declarative region that holds identifiers such as functions, classes, and variables to prevent naming conflicts is called a __________.
namespace
Specifying using namespace std; allows programmers to refer directly to cout instead of writing __________.
std::cout
While convenient for beginners, using using namespace std; is often avoided in larger programs because it can cause __________ if two namespaces have matching names.
confusion
In C++, __________ allows the computing agent to receive values from the user via cin for subsequent computations.
input
In C++, communicating the results of computations back to the user via cout is known as __________.
output
A named storage location in computer memory that holds a value capable of being retrieved or modified is called a __________.
variable
In C++, declaring a variable informs the compiler of its name and type while reserving space in __________.
memory
An uninitialized variable in C++ can lead to unexpected behavior because it often holds an undefined or __________ value.
garbage
A variable whose value cannot be altered once it has been initialized is known as a __________.
constant
Using the const keyword instead of #define is preferred in modern C++ because const adheres to C++ __________ rules.
type
By common programming convention in C++, constant names are typically written in __________.
UPPER_CASE
In C++, the char data type occupies a memory size of __________ byte(s) and is used to store individual characters.
1
In C++, the int data type typically occupies __________ bytes of memory and represents whole numbers.
4
While a single-precision float occupies 4 bytes, a double-precision double occupies __________ bytes.
8
The C++ arithmetic operator % is known as the __________ operator and returns the remainder after integer division.
modulus
In C++, the operator ++ is called the __________ operator because it increases the value of a variable by 1.
increment
A computational process where steps execute strictly one after another in order without decisions or loops is known as a __________ operation.
sequential

As shown in the control flow diagram, the three fundamental types of program operations are Sequences, Selections, and __________.
Loops

According to the C++ data types hierarchy diagram, class, structure, union, typedef, and using belong to the category of __________ Data Types.
User Defined