CS304
First Quiz
Time 9.30 PM
Dated 14-11-2011
Solved by Asad And-
We can choose any arbitrary name for a constructor. 
 Select correct option: 
 True 
False
Which one is not the main feature of object oriented programming? 
 Select correct option: 
 Classes and Objects 
 Exception handling 
 Inheritance 
 Polymorphism 
 
 
The dot operator (or class member access operator) connects the following two entities (reading from left to right): 
 Select correct option: 
 A class member and a class object 
 A class object and a class 
 A class and a member of that class 
 A class object and a member of that class 
 
 
If only one behaviour of a derived class is incompatible with base class, then it is: 
 Select correct option: 
 Generalization 
 Specialization 
 Extension 
 Inheritance 
 
 
 
Select correct option:
Inheritance
Abstraction
Polymorphism
Encapsulation
If MyClass has a destructor what is the destructor named? 
  Select correct option: 
 MyClass
 ~MyClass
 My~Class
 MyClass~
 
 
A real world object can be transformed into programming entity by defining its respective 
 Select correct option: 
 Class 
 Function 
 Only states 
 Only behaviour 
 
 Which of the following features of OOP is used to deal with only relevant details? 
 Select correct option: 
 Abstraction 
 Information hiding 
 Object 
 Inheritance 
 
 In class, attributes and behaviour is represented by: 
 Select correct option: 
 Member functions, data members 
 Member functions, scope of data members 
 Data members, member functions 
 None of the given 
 
 
 
Select correct option:
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)
--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.
No comments:
Post a Comment