QUAID-E-AZAM COLLEGE RAJNAPUR
MID-TERM EXAMINATION
ADP COMPUTER SCIENCE 3rd SEMESTER SESSION (2023-25)
Student Name [Link]
Paper Data Structure and Algorithm Total Marks 25
SECTION-A
(Marks: 5)
Note: All parts of this are to be answered on the question paper itself and attached with the answer book. Each
question carries 0.5 marks. Deleting/overwriting is not allowed. Do not use lead pencil.
Q.1Choose the following correct options.
1- Any thing in the real world that has attributes and properties?
(A) Field (B) Record (C) Entity (D) All
2- Collection of related fields is called?
(A) Record (B) Field (C) Entity (D) Method
It is used to represent a number with a decimal point?
3-
(A) Integer (B) character (C) Real (D) Boolean
4- Return type of constructor?
(A) int (B) char (C) char (D) none
5- Constructor for the class executed when?
Object
(A) It is called (B) Object created (C) (D) All of the above
destroyed
6- A programming technique in which programs are written on the basis of object?
Procedural Object Oriented Non procedural Linear
(A) (B) (C) (D)
programming programming programming programming
7- Polymorphism is ability of an object to behave in?
(A) Multiple way (B) Single way (C) Two way (D) All
8- Function of an object define its?
(A) Characteristics (B) Action (C) Attributes (D) All of the above
9- Identifier in class declaring define to its class?
(A) Name (B) Action (C) body (D) None
10- Colon(:) is used in access specifiers?
(A) Middle (B) Start (C) End (D) Anywhere
QUAID-E-AZAM COLLEGE RAJNAPUR
MID-TERM EXAMINATION
ADP COMPUTER SCIENCE 2nd SEMESTER SESSION (2024-26)
Student Name [Link]
Paper Object Oriented Programming(OOP) Total Marks 25
SECTION-B
(Marks: 20)
Q.2 Answer the following short questions. (2 x 5 = 10)
Define Object Oriented Programming Teachnique?
I-
Write syntax of declaring a class and object?
II-
Define access specifiers and also write types names(only name)?
III-
Give example of private access specifier by writing code in c++ language?
IV-
What do you know about encapsulation?
V-
Q.3 Long Question. (2 x 5=10)
Write a class that display a simple message(constructor is created.)on screen whenever an
object of that class is created?
I-
Write five features of object oriented programming?
II-
END