Question: Hi this is C++ do not give me a long answer. please be clear with your answer also, clean handwriting...... 15) 9 pts. What is

Hi

this is C++

do not give me a long answer.

please be clear with your answer also, clean handwriting......

15) 9 pts. What is the value of the following Booleans. Assume the following data:

int p=5, j=3, k=4;

bool t1, t2, t3;

t1 = p < j && k;

t2 = p/k < j;

t3 = p<4 || j < 2 || k < 5;

18) 12 pts. The following code compiles, even though there are two declarations of the variable purple. Why is that?

{

int purple;

}

{

double purple;

}

19) 6 pts. When does the default section of a switch statement get executed?

20) 12 pts. The loop below never ends. Why?

for (int k=2;k!=5;k+=2)

cout << blah;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!