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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>else</strong> (x < 20) { <strong>size</strong> =<br />

"Medium"; }<br />

D<br />

<strong>if</strong> (x < <strong>10</strong>) { <strong>size</strong> = "Small"; }<br />

.<br />

<strong>else</strong> (x < 20) { <strong>size</strong> =<br />

"Medium"; }<br />

0.25 points<br />

<strong>Question</strong> 2<br />

What <strong>is</strong> <strong>an</strong> object?<br />

A<br />

.<br />

An entity in your program that <strong>is</strong> m<strong>an</strong>ipulated by calling<br />

methods.<br />

B<br />

Any value stored in a variable.<br />

.

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

Saved successfully!

Ooh no, something went wrong!