Monday 14 November 2011

[Pak Youth] Cs304 First Quiz

CS304

First Quiz

Time 9.30 PM

Dated 14-11-2011

Solved by Asad And-

bc100400662asad@gmail.com

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 


Storing data and functions in a single unit (class). Data cannot be accessible to the outside world and only those functions which are stored in the class can access it 
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 


Using encapsulation we can achieve 
Select correct option: 
Information hiding 
Least interdependencies among modules 
Implementation independence 
All of given options 








Zindagi mein 2 Logo ka buhat khayal rahkoooo

Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo (Father)

2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)

Regards, 
Umair Saulat

--
You received this message because you are subscribed to the Google Groups "Pak Youth" group.
To post to this group, send email to pak-youth@googlegroups.com.
To unsubscribe from this group, send email to pak-youth+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pak-youth?hl=en.

No comments:

Post a Comment