Data types
Loops
Functions
Arrays
100

This special C++ data type allows the storage of a single character and uses single quotes to denote its value.

What is a char?

100

This loop type continues until its condition is no longer true and can be used for a block of code to execute a predetermined number of times.

What is a for loop?

100

This term describes a function that is defined inside a class and can be called using an object of that class.


What is a member function?

100

This is the default value for an integer array element that is not explicitly initialized.

What is zero (0)?

200

This data type represents a binary state, often used for true/false conditions.

What is a boolean (or bool)?

200

In this type of loop, the condition is evaluated before the loop's body executes, meaning the body may not execute at all if the condition is false from the start.

What is a while loop?

200

This allows a function to be called with different numbers of arguments, depending on the context.

What is function overloading?

200

To access the third element of an array named arr, this syntax is used.

What is arr[2]?

300

This data type is used to store whole numbers without any fractional or decimal part.

What is an integer (or int)?

300

This statement is used within a loop to skip the current iteration and move to the next iteration of the loop.

What is the continue statement?

300

This special type of function is used to initialize objects and has the same name as the class.

What is a constructor?

300

This operator is used to determine the number of elements in an array.

What is sizeof()?

400

This floating-point data type is used to store numbers with decimal points in C++ and other languages.

What is a float?

400

This statement terminates the loop immediately and transfers control to the statement following the loop.

What is the break statement?

400

This allows a function to be called with arguments by reference, which can be used to modify the arguments.


What is pass-by-reference?

400

This is the size of an array arr if sizeof(arr) returns 40 and each element is of type int which is 4 bytes.

What is 10?

500

This data type stores a sequence of characters, often used for text.

What is a string?

500

In a do-while loop, this keyword is used to ensure that the loop's body executes at least once before the condition is tested.

What is do?

500

This function feature involves using a function as an argument to another function.

What is a function pointer?

500

To declare an array with 5 elements of type double, you use this syntax.

What is double arr[5];?