{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS38-Quiz 1_Solution_Summer09

# CS38-Quiz 1_Solution_Summer09 - Steve Houseman Page 1...

This preview shows pages 1–3. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Steve Houseman Page 1 10/5/2011 CS38-Java- Quiz # 1-Summer 2009 (Solution) Time allowed 30 minutes, Total = 5 points. Instruction: Please complete all 10 multiple choice questions, by marking the correct answer on Scranton (Form No. 882-E). Please use a No. 2 pencil only. Ink will not be recognized by the Scranton reader. After completing your quiz, please hand in only your completed scantron. You may keep this Quiz sheet for your reference! This Quiz consists of three (4) pages. 1. What will be displayed as the result of executing the following code? int x = 5, y = 20; x += 32; y /=4; System.out.println (“x = “ + x + “, y = “ + y); a. x = 160, y = 80 b. x = 32, y =4 c. x = 37, y = 5 d. x = 9, y = 52 2. Consider the following statements ( Removed!) String str; int num1, num2; Steve Houseman Page 2 10/5/2011 num1 = 13; num2 = 24; str = “The sum = “ num1 + num2”; What is the final value stored in str?...
View Full Document

{[ snackBarMessage ]}

### Page1 / 4

CS38-Quiz 1_Solution_Summer09 - Steve Houseman Page 1...

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

View Full Document
Ask a homework question - tutors are online