2011_Fall_midterm_1_sample_with_solutions

2011_Fall_midterm_1_sample_with_solutions - CSE 114 Fall...

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

View Full Document Right Arrow Icon
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.
Background image of page 1

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

View Full DocumentRight Arrow Icon
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;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2011 for the course CSE 114 taught by Professor Tashbook during the Fall '08 term at SUNY Stony Brook.

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 Right Arrow Icon
Ask a homework question - tutors are online