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.

D<br />

A method name <strong>is</strong> unique across <strong>the</strong> entire program.<br />

.<br />

0.25 points<br />

<strong>Question</strong> 4<br />

0.25 points<br />

<strong>Question</strong> 5<br />

<strong>Which</strong> <strong>of</strong> <strong>the</strong> <strong>following</strong> <strong>statement</strong>s with comments <strong>is</strong>(are) valid?<br />

I. int cnt = 0; /* Set count to 0<br />

II. int cnt = 0; /* Set count to 0 */<br />

III. int cnt = 0; // Set count to 0<br />

A<br />

Only I <strong>is</strong> valid<br />

.

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

Saved successfully!

Ooh no, something went wrong!