09.02.2017 Views

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"; }

SHOW MORE
SHOW LESS

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;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!