Question: QUESTION 1 Examine the code. When will C be assigned 3? (Be careful.) if (A == B); C = 3; when A is equal to
QUESTION 1
Examine the code. When will C be assigned 3? (Be careful.) if (A == B); C = 3;
| when A is equal to B | ||||||||||||||||||||||||||||||||
| when A is not equal to B | ||||||||||||||||||||||||||||||||
| never | ||||||||||||||||||||||||||||||||
| every time the program is executed | ||||||||||||||||||||||||||||||||
| not enough information is given
QUESTION 2 Given the following segment of code, what will be the output? int x = 5; if (x == 2) Write("Brown, brown, run aground. "); else Write("Blue, blue, sail on through. "); Write("Green, green, nice and clean.");
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
