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
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
This note was uploaded on 10/05/2011 for the course CS 38 taught by Professor Stevehouseman during the Summer '09 term at Irvine Valley College.
- Summer '09
- Java Programming