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.

C<br />

A sequence <strong>of</strong> instructions.<br />

.<br />

D<br />

Any input to a method.<br />

.<br />

0.25 points<br />

<strong>Question</strong> 3<br />

<strong>Which</strong> <strong>of</strong> <strong>the</strong> <strong>following</strong> <strong>statement</strong>s about methods <strong>is</strong> <strong>correct</strong>?<br />

A<br />

Methods are stored in variables.<br />

.<br />

B<br />

.<br />

A method <strong>is</strong> a sequence <strong>of</strong> instructions that could access <strong>the</strong> data<br />

<strong>of</strong> <strong>an</strong> object.<br />

C<br />

A method c<strong>an</strong> be called on <strong>an</strong>y object in <strong>an</strong>y class.<br />

.

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

Saved successfully!

Ooh no, something went wrong!