Functions
Input/Output
Loops
Conditionals
General
100

What does void mean?

Void means the method doesn't return anything.

100

The benefit of c++ input and output over c input and output.

What is type safety.

100
Name at least three different kinds of loops.
for
while
do-while
100

The sentence that is an example of a zero conditional.

a) If it rains, we will cancel the picnic.

b) If you heat ice, it melts.

c) If I had seen him, I would have spoken to him.

d) If he were here, he would help us.

What is b) If you heat ice, it melts.

100

int, double, char, string, etc. are examples of?

What are data types?

200

The default return value of functions in C++?

What is int.

200

Reading an integer called 'myInt', into a variable named myInt.

What is cin >> myInt;

200

A type of loop executes its body at least once regardless of the condition in C++

What is a do-while loop?

200

int n = 18;
if(isDivisibleBy2(n))
{
 cout << "divisible by 2" << endl;
}
else if(isDivisibleBy3(n))
{
 cout << "divisible by 3" << endl;
}

divisible by 2

200

The items between the parentheses:
     int sum(int n1, int n2)

What are Parameters?

300

How are function arguments passed in C++ by default?

What is by value.

300

The object is used to report error messages

What is cerr?

300

The output of the following C++ code:

int i = 5;

int main()

{

    for (int i = 0; i < 1; i++)

    { cout << setw(2) << i << " " << ::i << endl; }

}

What is 0 5

300

string movie = "Sleepy Hollow";
if(movie == "sleepy hollow")
{
 cout << "found it" << endl;
}

This space has been intentionally left blank.
300

The purpose of the using namespace

What is to refer to a name from the namespace without the scope resolution operator?

400

Function overloading in C++

What is having multiple functions with the same name but different parameters?

400

The output of the following C++ snippet:

    string buffer = "";

    cout << setfill('-');

    cout << setw(10) << buffer << endl;

What are 10 dashes?

400

The statement which should not be used when working with loops in C++

What is a goto?

400

The operator used in this expression:

int max_val = (x > y) ? x : y;

What is a ternary operator?

400

Given:
float calculateArea(float length, float width);

Is this statement:
A - Function definition
B - Function prototype
C - Function call
D - Function method

B - Function prototype

500

The position default parameters appear in a function prototype

What is the rightmost side of the parameter list.

500
The cout display from the following:

enum Colors  
    {Red, Blue=5, Green, Orange, Indigo , Violet};
Colors Mixed;

cout << Indigo << endl;

What is 8?

500

A practice that should never be done within a for loop in C++

What is modifying the target variable?

500

What will display:

    int day = 1;

    switch (day)

    {

         case 1:  cout << "Today is Monday. ";

         default: cout << "Today is Unknown.";

    }

What is Today is Monday. Today is Unknown.

500
What's the difference between running with and without a debugger?
If you run without a debugger, breakpoints are ignored.
M
e
n
u