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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started