0% found this document useful (0 votes)
133 views

OOP Objective Paper MID

This document contains a 10 question multiple choice exam on object oriented programming. The exam covers topics such as class members, access specifiers, constructors, copy constructors, composition, and class hierarchies. It provides the exam instructions, questions, possible answers for each question, and spaces for the student and faculty member signatures.

Uploaded by

mughees ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views

OOP Objective Paper MID

This document contains a 10 question multiple choice exam on object oriented programming. The exam covers topics such as class members, access specifiers, constructors, copy constructors, composition, and class hierarchies. It provides the exam instructions, questions, possible answers for each question, and spaces for the student and faculty member signatures.

Uploaded by

mughees ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Air University Multan Campus

MID Examination - Spring 2023


Objective Paper
Student ID: _________________________
Subject: Object Oriented Programing Total Marks: 5 Marks
Course Code: CS 112 Date: 12-April-2023
Class: BSCS Time: 10:00 AM to 10: 20 AM
Semester: Spring 23 Max. Time Allowed: 20 Minutes
Section(s): A FM’s Name: Dr. Kaleem Razzaq
Instructions:
 All questions are mandatory.
 Mark Correct Answer on Question Paper FM’s Signature: _________________________

HOD’s Signature:

Question 1 CLO1 PLO1 Taxonomy Level: Understand (5 Marks)


1) Each object of a class has its own copy of the class's
a. member functions
b. member variables
c. constructor and destructor functions
d. All of these
e. None of these
2) This type of member variable may be accessed before any objects of the class have been
created.
a. private
b. public
c. Inline
d. Static
e. None of these

3) When objects contain pointers, it is a good idea to create an explicit function.


a. destructor
b. copy constructor
c. static constructor
d. inline constructor
e. None of these

4) When a class contains an instance of another class, it is known as


a. object overloading
operator overloading
c. object composition
d. dynamic composition
e. None of these

5) It is a good idea to make a copy constructor's parameters by specifying the


keyword in the parameter list.
a. inline, inline
b. static, static
c. constant, const
d. global, global
e. None of these
6) If a member variable is declared , all objects of that class have access to that
variable.
a. static
b. dynamic
c. inline
d. default
e. None of these
7) This is a special function that is called whenever a new object is created and initialized
with another object's data.
a. destructor
b. static function
c. copy constructor
d. assignment function
e. None of these
8) If you do not furnish one of these a default will be provided for you by the compiler.
a. copy constructor
b. constructor
c. destructor
d. All of these
e. None of these

9) A class hierarchy-------------------.
a. shows the same relationships as an organization chart.
b. describes “has a” relationships.
c. describes “is a kind of” relationships.
d. shows the same relationships as a family tree.

10) A member function that is declared may not access any non-static data members
in the class.
a. private
b. public
c. static
d. Inline
e. None of these

You might also like