Tuesday, 1 May 2012

(VU-Study-Corner) cs304 2nd online quiz by M waqas ijaz



BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 87
sec(s)


Question # 1 of 10 ( Start time: 02:56:39 AM ) Total Marks: 1
Identify which of the following overloaded operator function's declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number.
Select correct option:

Rational_number operator+( Rational_number & obj);
None of the given choices
Rational_number operator+(Rational_number &obj, double& num);
operator+(double& obj);






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 2 of 10 ( Start time: 02:57:12 AM ) Total Marks: 1
In _______________ a pointer or reference to an object is created inside a class
Select correct option:

Aggregation
Composition
Seperation
None of the given






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 3 of 10 ( Start time: 02:57:46 AM ) Total Marks: 1
Sub-Object can not be initialized using the constructor
Select correct option:

True
False






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 4 of 10 ( Start time: 02:58:44 AM ) Total Marks: 1
To initialize an array of objects, only _____________ will be called
Select correct option:

Defualt Constructor
Overloaded Constructor
Default Object
None of the above






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 5 of 10 ( Start time: 02:59:30 AM ) Total Marks: 1
Let Suppose a class Student with objects std1, std2, and std3. For the statement std3 = std1 - std2 to work correctly, if the overloaded - operator must
Select correct option:

take two arguments.
None of the given choices
take single argument
take three arguments






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 6 of 10 ( Start time: 03:00:54 AM ) Total Marks: 1
Copy constructor is called when:
Select correct option:

An object is created in term of pre existence object
An object is created
An object is initialized
None of the given






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 7 of 10 ( Start time: 03:01:40 AM ) Total Marks: 1
Which of the following operator doesn't take any argument if overloaded?
Select correct option:

/
-
+
None of the given choices






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 88
sec(s)


Question # 8 of 10 ( Start time: 03:02:46 AM ) Total Marks: 1
Object can be declared constant with the use of Constant keyword.
Select correct option:

True
False






BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 9 of 10 ( Start time: 03:03:32 AM ) Total Marks: 1
Always make pointer to null, whenever dynamic memory is deleted.
Select correct option:

True
False





keep me in your sweet memories

BC090402200 : Muhammad Waqas



Quiz Start Time: 02:56 AM Time Left 89
sec(s)


Question # 10 of 10 ( Start time: 03:04:30 AM ) Total Marks: 1
__________ provide the facility to access the data member.
Select correct option:

accesser function
private function
inline function
None of the given






--
M.Waqas
waqasijaz007@yahoo.com

--
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