Question 1 Which of the following is the correct syntax for an if statement? A. if (x < 10) { size = "Small"; } else { size = "Medium"; }
Question 1 Which of the following is the correct syntax for an if statement? A. if (x < 10) { size = "Small"; } else { size = "Medium"; }
Question 1 Which of the following is the correct syntax for an if statement? A. if (x < 10) { size = "Small"; } else { size = "Medium"; }
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
B<br />
Only III <strong>is</strong> valid<br />
.<br />
C<br />
I <strong>an</strong>d II are valid<br />
.<br />
D<br />
.<br />
II <strong>an</strong>d III are<br />
valid<br />
0.25 points<br />
<strong>Question</strong> 6<br />
What will be <strong>the</strong> value stored in <strong>the</strong> variable x after <strong>the</strong> execution <strong>of</strong> <strong>the</strong><br />
<strong>following</strong> code snippet?<br />
int a = <strong>10</strong>;<br />
int b = 20;<br />
int c = 2;