What will the output look like?

```
int main( )
{
int x = 10;
if(x > 5)
{
if( x == 7)
{
cout<<”x is 7”;
}
else
{
cout<<”x is not 7”;
}

}
else
{
cout<<”x is not > 5”;
}
return 0;
}

```

A. x is not > 5
B. x is not 7
C. x is 7x is not 7
D. Nothing. The statement is written incorrectly.


B. x is not 7

Computer Science & Information Technology

You might also like to view...

Which of the following are correct?

a. A constructor must be declared for each class. b. A constructor must be declared with a return type c. A default constructor can only be provided by the compiler. d. A class can have only one default constructor. e. A class can have only one constructor.

Computer Science & Information Technology

If _____, Windows firewall should be on.

A. your computer is connected to a router B. your computer is connected to the Internet C. if your computer is connected to a local area network D. your computer is not connected to the Internet

Computer Science & Information Technology

If bulk candy costs $10.00 a kilogram, how much will 3 pounds cost? (There are 2.2 pounds in a kilogram.)

What will be an ideal response?

Computer Science & Information Technology

Networks, servers, mainframes, and supercomputers allow hundreds to thousands of users to connect at the same time, and thus their operating systems are referred to as which of the following?

A. single user B. single processing C. multiuser D. multiprocessing

Computer Science & Information Technology