Skip to main content

Object Oriented Programming Quiz No.3 solution

Object Oriented Programming
Quiz No.3 solution
Please like us on http://facebook.com/vubest
Question No.1    Time :90 second   Marks-1
Sender of the message does not need to know the exact class of receiver in______.
Please chose one
1)      Abstraction
3)      Inheritance
4)      none of the given
Answer: 2


Question No.2    Time :90 second   Marks-1
Target of a _____ function call is determined at run time.
Please chose one
1)      instance 
3)      operator 
4)      none of given
Answer: 2

Question No.3    Time :90 second   Marks-1
A function call is resolved at run-time in_________ .
Please chose one
  1. non-virtual member function
  2. virtual member function
  3. Both non-virtual member and virtual member function.
  4. None of given
Answer: 3

Question No.4    Time :90 second   Marks-1
Consider the code below, class class1{ public: void func1(); }; class class2 : protected class1 { }; Function func1 of class1 is ____ in class2,
Please chose one
  1. public
  2. protected
  3. private
  4. none of the given options
Answer: 2

Question No.5    Time :90 second   Marks-1
Consider the code below, class c1{ }; class c2 : public c1 { }; class c3 : public c2 { }; Then c2 is,
Please chose one
  1. Direct base class of c3
  2. Direct child class of c3
  3. Direct base class of c1
  4. None of these
Answer: 1

Question No.6    Time :90 second   Marks-1
A template provides a convenient way to make a family of.
Please chose one
1)      variables and data members
2)      functions and classes
3)      classes and exceptions
4)      programs and algorithms
Answer: 2
Question No.7    Time :90 second   Marks-1
Consider the code below, class c1{ }; class c2 : public c1 { }; class c3 : public c2 { }; Then c1 is,
Please chose one
  1. Direct base class of c3
  2. Direct child class of c3
  3. Direct base class of c2
  4. Direct child class of c2
Answer: 2

Question No.8    Time :90 second   Marks-1
User can make virtual table explicitly.
Please chose one
  1. True
  2. False
Answer: 1

Question No.9    Time :90 second   Marks-1
In type in depended function template should be use where code and behavior must be identical.
Please chose one
  1. True
  2. False
Answer: 1
 facebook.com/vubest   groups.google.com/group/vubest  vubest.blogspot.com
Question No.10    Time :90 second   Marks-1
Consider the code below, class class1{ protected: int i; }; class class2 : private class1 { }; Then int member i of class1 is ____ in class2,
Please chose one
  1. public
  2. protected
  3. private
  4. none of the given options
Answer: 2
 facebook.com/vubest   groups.google.com/group/vubest  vubest.blogspot.com


Please like us facebook http://facebook.com/vubest for keep continue this blog!




............................................................................................................................
Join Our Groups:
http://groups.google.com/group/vubest
http://facebook.com/groups/vubest

Show your LOVE Please Like us on facebook
Click Thumbs Up

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...