If-Else and Other C++ Stuff

Is this your test? Login to manage it. If not, you can develop an assessment just like it.

This is a non-interactive preview of the quiz content.

1.
5 points
In C++, stdio.h is replaced by:
2.
8 points
In C++, "cout" is the same as ________, and "cin" is the same as ____________.
3.
5 points
The data type "char" is used to store:
4.
5 points
The data type ______________ would be used to store larger integers (a 10-digit number, for example).
5.
8 points
What is the difference between a = 10 and a ==10?
6.
5 points
What do arrays do?
7.
4 points
Which is the correct way to declare an array?
8.
4 points
How many values will the array "lotsofnumbers [7]" hold?
9.
8 points
The first condition is: if (a > b)

If the user sets a to 3 and b to 5, will the condition be executed?
10.
8 points
What is an "else if" statement for?
11.
6 points
The user sets x = 5 and y = 7.

Will the following condition be executed?

if (x == y)
12.
6 points
What does this condition mean?

if (x>=10)
13.
6 points
x=5 and x==5 are the same thing. True or False?
14.
6 points
What does this mean?

if (x!=10)
15.
8 points
What output is generated by the code below?

int x = 25;
if (x == 25)
cout << "BOBBA";
else
cout << "FAB";
16.
8 points
What output is generated by the code below?

#include

using namespace std;

int main()
{
int x = 11;

if (x > 12)
{
cout << "CANDY";
}
else
{
cout << "GERBILS";
}

cout << "CANDY";

return 0;

}