Midterm 1 Spring 2018 Solutions
First-page document preview for Midterm 1 Spring 2018 Solutions in CS 151: Object-Oriented Design at San José State University (SJSU). Inspect the first page below or request the complete PDF study document for free.
Independent study archive Learn more
Materials are uploaded by users for self-study purposes. PwnHero is an independent platform, not affiliated with, sponsored by, or endorsed by any university or institution.
University
San José State University (SJSU)
Course
CS 151: Object-Oriented Design
Format
Midterm Exam
Year
2018
📄 Page 1 Preview
Page 1 Key Topics & Excerpt
🔍 Text Transcript
First page excerpt for quick study reference. Complete formulas, diagrams, and subsequent pages are available in the full document.
PwnHero
Spring 2018 CS 151 Midterm I
Instructor: Dr. Kim (solution)
Maximum obtainable score: 48
(6points) Q1. True or False Questions. Circle True or False. (Each 1 point)
a. False
b. False
c. False
d. False
e. True
f. False
(4 points) Q2.
The virtual machine will determine which method (paintIcon) is going to be called based on the
object (MarsIcon or ImageIcon object).
Or
When the reusable method is called with MarsIcon object, the paintIcon of MarsIcon will be called.
With ImageIcon object, the painIcon of ImageIcon will be called.
(8 points) Q3.
Name:
Circle your section: MW 9:00, MW 10:30, TR 12:00
PwnHero.com