Quiz1.wi11

Quiz1.wi11 - Signature _ cs8w _ CSE 8A Quiz 1 Winter 2011...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Signature _____________________ CSE 8A Name ________________________ Quiz 1 cs8w ____ Winter 2011 Student ID ____________________ This quiz is to be taken by yourself with closed books, closed notes, no calculators. Which of the following are not valid Java identifiers? (Circle your answer(s).) [+1 – correct; -1 – incorrect; No negative score] this&that thisRthat This_2_That integer nine2five n!ne_2_5 9_2_5 int What does the statement System.out.println( "The answer is: " + 3 + 2 + 1 ); print? ________________________________ What does the statement System.out.println( 2 >= 3 ); print? ________________________________ What does int x = 5 / 3; System.out.println( x ); print? ________________________________ What does the statement System.out.println( "The answer is: " + 3 + (2 + 1) ); print? ________________________________ Given this (incorrect) method definition: public int drawSquare( int size ) { turtle1.turnLeft(); turtle1.forward( 100 ); turtle1.turnLeft(); turtle1.forward( 100 );
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Quiz1.wi11 - Signature _ cs8w _ CSE 8A Quiz 1 Winter 2011...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online