Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS304 Object Oriented Programming Solve Quiz No.2 Fall Semester 2012
#1


[SIZE="3"]CS304 Object Oriented Programming Solve Quiz No.2 Fall Semester 2012[/SIZE]


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

In _______________ a pointer or reference to an object is created inside a class
Select correct option:

Aggregation
Composition
Seperation
None of the given
Sub-Object can not be initialized using the constructor
Select correct option:

True
False

To initialize an array of objects, only _____________ will be called
Select correct option:

Defualt Constructor
Overloaded Constructor
Default Object
None of the above

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

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

Which of the following operator doesn’t take any argument if overloaded?
Select correct option:

/
-
+
None of the given choices

Object can be declared constant with the use of Constant keyword.
Select correct option:

True
False

Always make pointer to null, whenever dynamic memory is deleted.
Select correct option:

True
False

__________ provide the facility to access the data member.
Select correct option:

accesser function
private function
inline function
None of the given

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs201 quiz no 1 on 14 november 2011 Xpert 4 2,194 02-11-2020, 07:15 PM
Last Post: CatherineKelsche
  CS506 Web Design and Development Online Quiz No. 04 Solution Spring 2014 education-2014 0 3,295 08-05-2014, 03:15 PM
Last Post: education-2014
  CS402 Theory of Automata Quiz No.3 Discussions and Solutions Spring 2014 vuassignments 1 6,401 07-23-2014, 01:34 PM
Last Post: vuassignments
  CS504 Software Engineering -I Quiz No. 04 Solution 2014 Due Date 25th July 2014 Entboy 0 2,736 07-22-2014, 03:11 PM
Last Post: Entboy
  CS601 Data Communication Solved Quiz No. 3 Solutions Spring Fall 2014 vuassignments 0 3,390 07-21-2014, 01:41 PM
Last Post: vuassignments
  MGT501 -Human Resource Management Online Solved MCQS Quiz No.3 Spring 2014 vuassignments 0 3,521 07-18-2014, 03:26 PM
Last Post: vuassignments
  CS101 Introduction to Computing Quiz No 3 Solution Spring Fall July 2014 education-2014 0 2,689 07-18-2014, 02:40 PM
Last Post: education-2014
  CS301 Data Structures Quiz No.1 Solved Fall Semester 2012 Vuhelper 2 5,726 05-20-2013, 11:23 PM
Last Post: Vuhelper
  CS402 Theory of Automata Solve Quiz Final Term Paper February 2013 Vuhelper 0 3,952 02-02-2013, 04:34 PM
Last Post: Vuhelper
  CS401 Computer Architecture and Assembly Language Solve Quiz No.3 Fall 2013 Vuhelper 0 4,214 01-11-2013, 04:05 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)