2011_Fall_midterm_1_sample_with_solutions

2011_Fall_midterm_1_sample_with_solutions - CSE 114 Fall...

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

CSE 114 – Fall 2011 – Sample Midterm Exam 1 1 CSE 114 – Fall 2011 – Sample Midterm Exam 1 Name: First L a s t Section # ____________________________________ Student ID # _________________________________ Question # Points Available Points Earned 1 10 2 10 3 10 4 10 5 20 6 10 7 30 Total: 100 Directions: You have 80 minutes to complete this exam. Write all answers neatly in the space provided. Please do not separate exam sheets. No additional exam sheets are provided. Scrap paper is provided per request. Closed book exam: you are not allowed to use the textbook, lecture notes, cheat sheets or anything else beside your brain during the exam. Use well-named variables and include any documentation where you feel it is necessary to understand your algorithms.

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

View Full Document
CSE 114 – Fall 2011 – Sample Midterm Exam 1 2 Question 1 a. (1 point) If you attempt to add an int, a byte, a long, and a double, the result will be a __________ value. A. double B. byte C. long D. int b. (1 point) 25 % 1 is _____ A. 3 B. 1 C. 2 D. 0 E. 4 c. (5 points) Multiple answers: To add number to sum, you write (Note: Java is case-sensitive) A. number += sum; B. number = sum + number; C. sum = sum + number;
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 5

2011_Fall_midterm_1_sample_with_solutions - CSE 114 Fall...

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

View Full Document
Ask a homework question - tutors are online