Skip to content
VUBuddy

CS304 Final Term Quiz Merged

Object Oriented Programming PDF 12 MBUpdated 23 Oct 2026
Quiz CS304 Final Term Quiz Merged PDF 12 MB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
Size
PDF 12 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 12 MB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 366. Download the file for all 366 pages.

  1. Function func1of class1 is

in class2.

  1. Public
  2. Protected
  3. Private
  4. None of the given

Q2. The default inheritance mode is,

  1. Public inheritance
  2. Protected inheritance
  3. Private inheritance
  4. None of the given

Q3. A template provides a convenient way to make a family of

  1. Variables and data members
  2. Functions and classes
  3. Classes and exceptions
  4. Programs and algorithms

Q4. Then int member i of base class is accessible in class,

  1. derived 1 only
  2. derived 2 only
  3. both derived 1 derived 2
  4. none of the given options

Q5. In case of public inheritance, protected members of base class will be in derived class?

  1. Private
  2. Public
  3. Protected
  4. hidden

Q6. By default assignment operator (=) performs,

  1. Shallow copy
  2. Deep copy
  3. Both of these
  4. None of these

Q7. In protected inheritance the public members of base class become _

  1. Public
  2. Private
  3. Protected
  4. None of the given

Q8. We can access public members of the class from outsides the class using

  1. ->
  2. .
  3. &

Q9. Compiler can automatically generates the following constructor/s for a class,

  1. Default constructor
  2. Copy constructor
  3. Both of these
  4. None of these
  5. Friend’s functions of class are _ members of that class.
  1. Public
  2. Private
  3. Protected
  4. None of the given

Q11. Methodologies to the development of reusable software relate to

  1. Structure programming
  2. Procedural programming
  3. Generic programming
  4. None of the given

Q12. Function overriding is done in context of,

  1. Single class
  2. Single derived class
  3. Single base class
  4. Derived and base classes

Q13. Which of the following is not type of inheritance in c++?

  1. Public
  2. Protected
  3. Restricted
  4. Private
  5. If there is a pointer ,p, to objects of a base class and it contains the address of an object of a derived class and both classes contain a virtual member function, ding(),then the statement p- >ding(); will cause the version of ding in the class to be executed.
  1. Base
  2. Derived
  3. Virtual
  4. Implemented
  5. Target class of a function call is determined t run time.
  1. Instance
  2. Virtual
  3. Operator
  4. None of the given

Q16. In c++ dynamic binding and polymorphism will be achieved when the member function will be_

  1. Private
  2. Public
  3. Virtual
  4. Inline
  5. To make a pure virtual, we need to give _after() of this function.
  1. =0;
  2. =1;
  3. Null;
  4. None of the given

Q18. If we have not given any constructor for the class,compiler generates which of the following constructors?

  1. Emplicit Default

Constructorb) Implicit Default Constructor c) Emplicit Parameterized Constructor d) Implicit Parameterized Constructor

Q19. In c++ by default access of classes is

  1. Private
  2. Protected
  3. Public
  4. None of the given

Q20. In public inheritance the public members of base class become

  1. Private
  2. Protected
  3. Public
  4. None of the given

Q21. A class hierarchy

  1. Shows the same relationships as a organization chart
  2. Describe “has a “relationship.
  3. Describe “is a kind of” relationship.
  4. Shows the same relationships as a family tree.

Q22. In private Inheritance the public members of the base class become

  1. Public
  2. private
  3. Protected
  4. None of the given option

Q23. In the line No.2, which constructor of student class will be

  1. Default constructor of student class
  2. Copy constructor of student class
  3. Both Default and Copy constructor of student class
  4. No constructor will be called

Q24. Which of the following is Not casting operator in c++ standard?

  1. Static-cast
All CS304 files →
CS304 Object Oriented Programming All CS304 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.