answers Object-Oriented Programming
II Concordia University 2024
, lOMoARcPSD|10754654
COMP-249 : Objected Oriented Programming, Summer
COMP 249 – Midterm -- Answer
Time : (1 hour 15 minutes)
Instructions:
No notes, books, calculators or other electronic devices are allowed.
Answer all questions on the notebook.
Identification:
Last Name:
First Name :
Student ID :
Signature:
Marking scheme:
Question Mark Question Mark
1 /2.5 21 /2.5
2 /2.5 22 /2.5
3 /2.5 23 /2.5
4 /2.5 24 /2.5
5 /2.5 25 /2.5
6 /2.5 26 /2.5
7 /2.5 27 /2.5
8 /2.5 28 /2.5
9 /2.5 29 /2.5
10 /2.5 30 /2.5
11 /2.5 31 /2.5
12 /2.5 32 /2.5
13 /2.5 33 /2.5
14 /2.5 34 /2.5
15 /2.5 35 /2.5
16 /2.5 36 /2.5
17 /2.5 37 /2.5
18 /2.5 38 /2.5
19 /2.5 39 /2.5
20 /2.5 40 /2.5
1
, lOMoARcPSD|10754654
Total /100
Section 1 (Question 1-28) Multiple choice questions. If answers are more than one, the
question indicates [Check all correct answers]
1. The keyword extends indicates:
(a) encapsulation
(b) polymorphism
(c) inheritance
(d) none of the
above Answer: C
2. A derived class is also called a
(a) sub class
(b) super class
(c) base class
(d) all of the
above Answer: A
3. In Java, a derived class can have base class(es).
(a) one
(b) two
(c) three
(d) there is no
limit Answer: A
2