05-06-2017, 03:03 PM
CS304 Object Oriented Programming
First quiz was announced for spring semester 2017, here are the solved questions.
Quiz 1 MCQs solved.
1. Main characteristic of information hiding is:
1. Limited access
2. Unlimited access
3. Keep the model interesting
4. Keep the model simple
2. Which of the following is directly related to polymorphism?
1. Overriding
2. Hierarchy
3. Whole-part
4. Encapsulation
3. Which of the following is a class association?
1. Simple Association
2. Inheritance
3. Composition
4. Aggregation
4. If MyClass has a destructor what is the destructor named?
1.MyClass
2.~MyClass
3.My~Class
4.MyClass~
5. Without using Deep copy constructor, A ____________ problem can
occur
1.System crash
2.Memory Leakage
3.Dangling pointer
4.All of the given
6. Sub-typing means base class can be replaced by the derived class
True
False
7. ________ are also called user defined data types.
1. Functions
2. Classes
3. Attributes
4. Sub-Routines
More questions will also be added to list later. You can also share your questions below, and they will be solved and added to the list.
First quiz was announced for spring semester 2017, here are the solved questions.
Quiz 1 MCQs solved.
1. Main characteristic of information hiding is:
1. Limited access
2. Unlimited access
3. Keep the model interesting
4. Keep the model simple
2. Which of the following is directly related to polymorphism?
1. Overriding
2. Hierarchy
3. Whole-part
4. Encapsulation
3. Which of the following is a class association?
1. Simple Association
2. Inheritance
3. Composition
4. Aggregation
4. If MyClass has a destructor what is the destructor named?
1.MyClass
2.~MyClass
3.My~Class
4.MyClass~
5. Without using Deep copy constructor, A ____________ problem can
occur
1.System crash
2.Memory Leakage
3.Dangling pointer
4.All of the given
6. Sub-typing means base class can be replaced by the derived class
True
False
7. ________ are also called user defined data types.
1. Functions
2. Classes
3. Attributes
4. Sub-Routines
More questions will also be added to list later. You can also share your questions below, and they will be solved and added to the list.