14 Pages
Unlock Document

Computer Science
Computer Science 1037A/B
Eric Schost

The University of Western OntarioDepartment of Computer ScienceComputer Science 1027b Midterm Exam With SolutionsPrint your nameStudent number InstructionsFill in your name and student number above immediatelyAnswer all the questions in the exam in the spaces providedYou have 2 hours to complete the examThe exam has 8 questions on 14 pages and is out of a possible 80 marksThe marks for each individual question are given Allow approximately 15 minute per mark on averageThere is a page for rough work at the end of the exam paperRead the questions carefullyDO NOT TURN THIS PAGE UNTIL DIRECTED TO DO SO1 max 152 max 53 max 104 max 155 max 106 max 107 max 108 max 5TOTAL max 80115 marks TrueFalse Circle your answers Answers are italicizeda1 markA static method within a class can be invoked without having to instantiate an object of that class TrueFalseb1 mark A Java interface should never contain a constructorTrueFalsec1 mark A Java interface never contains an attribute instance variable declarationTrueFalsed1 mark A new class X derived from a class Y establishes an isa relationship from class X to class YTrueFalsee1 mark All Java classes are derived directly or indirectly from the Object class TrueFalsef1 mark Any method in a Java class X can call public and private methods from XTrueFalseg1 mark In the Java statementLinkedBagBingoBall bnew LinkedBagBingoBall BingoBall is a generic typeTrueFalse2
More Less

Related notes for Computer Science 1037A/B

Log In


Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.