More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
CS-304 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
An overloaded operator always requires one less argument than its number of operands.
Choose an answer
True
False
Not sure
Previous
Skip
Next
Question # 2
The copy() algorithm returns an iterator to
Choose an answer
the last element copied from
the last element copied to.
the element one past the last element copied from.
the element one past the last element copied to.
Previous
Skip
Next
Question # 3
Which is not the Advantage of inheritance?
Choose an answer
providing class growth through natural selection.
facilitating class libraries.
avoiding the rewriting of code.
providing a useful conceptual framework.
Previous
Skip
Next
Question # 4
A static member function cannot be declared.
Choose an answer
Static
Implicit
Explicit
Virtual
Previous
Skip
Next
Question # 5
_______ “is a” relationship
Choose an answer
Inheritance
Polymarphism
abstraction
encapsulation
Previous
Skip
Next
Question # 6
Which type of inheritance is being represented by the following statement, class X : public A, public B { ... ... };
Choose an answer
Single inheritance
Multiple inheritance
Double inheritance
None of the given options
Previous
Skip
Next
Question # 7
Which of the following is not an example of multiple inheritances?----------
Choose an answer
Mermaid
Woman
None of the given
Amphibious Vehicle
Previous
Skip
Next
Question # 8
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using ___________).
Choose an answer
scope resolution operator
dot operator
null operator
Operator overloading
Previous
Skip
Next
Question # 9
A class can be identified from a statement by ------------
Choose an answer
Noun
Pronoun
Verb
Adverb
Previous
Skip
Next
Question # 10
______ is a relationship
Choose an answer
Inheritance
Polymarphism
abstraction
encapsulation
Previous
Skip
Next
Question # 11
The type that is used to declare a reference or pointer is called its ---------
Choose an answer
default type
static type
abstract type
reference type
Previous
Skip
Next
Back