CS304-OOP Quiz MCQS #Objective #Questions #Finalterm
1. A class or class template can have member ___ that are themselves templates.
- variable
- function
- objects
- none
- class keyboard{Keys type;};
- class keys{KeyBoard type;};
- class keyboard : private keys
- class keys: private KeyBoard
- Aggregation
- Association
- Composition
- Inheritance
1. Student sobj1;
2. Student sobj2(sobj1);
In line No. 2 what constructor of Student class will be called,
- Default constructor
- Copy constructor
- Both Default and Copy
- No constructor will be called
1. Student sobj1;
2. Student sobj2=sobj1;
In line No. 2 what constructor of student class will be called,
- Default constructor
- Copy constructor
- Both Default and Copy constructor
- None
- Abstract function
- Concrete function
- Virtual function
- Pure virtual function
- Concrete
- Abstract
- Virtual
- None
- class Nationality {Person p};
- class Person {Nationality c};
- class Person: private Nationality
- class Nationality: private Person