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
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