CS304 - Object Oriented Programming Solved Objective Midterm Papers For Preparation of Midterm Exam
CS304 - Object Oriented Programming Solved Objective Midterm Papers For Preparation of Midterm Exam
► organize data.
► pass arguments to objects of classes.
► add features to existing classes without rewriting them. (Page 27)
► improve data-hiding and encapsulation.
► Dangling pointer
► Memory Leakage
► All of the given (Page 147)
► System crash
► Static
► Implicit
► Explicit
► Virtual Click here for detail
► None of given
► object member
► non-member (Page 136)
► data member
► True
► False
► Utilize
► Borrow
► Inherit Click here for detail
► Adopt
MIDTERM EXAMINATION
Spring 2010
► Dangling pointer
► Memory Leakage
► All of the given (Page 147)
► System crash
► Declared
► Define
► Instantiated C++ How to Program, Fifth Edition(Page 871)
► Called
► Encapsulation
► Polymorphism
► Data hiding
► Inheritance (Page 25)
► Carbon
► Diamond
► Coal
► all of the given (Page 56)
► data hiding
► friend classes
► encapsulation
► inheritance (Page 49)
► Constructor
► Destructor (Page 92)
► Shallow Copy
► Deep Copy
► Mermaid
► Woman (Lecture No.5)
► None of the given
► Amphibious Vehicle
MIDTERM EXAMINATION
Spring 2010
►Constructor
►Getter
►Setter
►Destructor (Page 92)
►TRUE
►False
►data hiding
►friend classes
►encapsulation
►inheritance (Page 49)
►Private member
►Data Member
►Public Member (How to Program page 983)
►Static
MIDTERM EXAMINATION
Spring 2010
► Interface
► Private data members
► Private member functions (Page 69)
► Both public and private members
► Static
► Implicit
► Explicit
► Virtual Click here for detail
►/
► Encapsulation
► Information Hiding
► Abstraction Click here for detial
► both encapsulation and information hiding
► Simple Assocation
► Inheritance (Page 49)
► Aggregation
► Composition
► Integer
► Chracter
► Double
► No type Click here for detail
MIDTERM EXAMINATION
Spring 2010
Question No: 1 ( Marks: 1 ) - Please choose one
Which one of the following terms best represents the statement given below,
” Hiding details of an object from the other parts of a program”
► Obfustication.
► Data Mining.
► Compilation.
► Encapsulation (Page 16)
► Protection
► Encapsulation (Page 16)
► Argumentation
► Abstraction
1. Name
2. Past experience
3. Age
4. Relatives
► 2, 4
► 1, 3, 5
► 1, 2, 3 (Lecture No.3)
► 1, 2, 3, 4
► Give the goahead for further design using the current scheme
► Ask for a re-design of the hierarchy with changing the Operating System to a field rather than
Class type Click here for detail
► Ask for the option of WindowsPC to be removed as it will soon be obsolete
► Change the hierarchy to remove the need for the superfluous Computer Class.
► Composition
► Aggregation (Page 134)
► Separation
► None of the given
► operator
► B_op Click here for detail
► const
► None of given
► Static allocation
► Static typing
► Dynamic binding (How to program , page 1103) Click here for more detail
► Dynamic allocation
► True
► False Click here for Detial
► Base
► Derived
► Abstract
► virtual (not sure)