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
Consider the following statement Cupboard has books What is the relationship between Cupboard and books?
Choose an answer
Composition
Aggregation
Inheritance
None of the given options
Previous
Skip
Next
Question # 2
Associativity can be changed in operator overloading.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 3
The members of a class that can be accessed without creating the object of the class is called
Choose an answer
Private member
Data Member
Public Member
Static
Previous
Skip
Next
Question # 4
Non Template Friend functions of a class are friends of ________instance/s of that class.
Choose an answer
All
One specific
All instances of one date type
None of the given options
Previous
Skip
Next
Question # 5
How the information hidden within an object can be accessed?
Choose an answer
Through its interface
Through its private data members
Through its private member functions
Through both public and private members
Previous
Skip
Next
Question # 6
When a virtual function is called by referencing a specific object by name and using the dot member selection operator (e.g., squareObject.draw()), the reference is resolved at compile time.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 7
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 # 8
Each try block can have ______ no. of catch blocks.
Choose an answer
1
2
3
As many as necessary
Previous
Skip
Next
Question # 9
A range is often supplied to an algorithm by two _______ values.
Choose an answer
italic
iteration
iterator
None of given
Previous
Skip
Next
Question # 10
A copy constructor is invoked when
Choose an answer
a function do not returns by value.
an argument is passed by value
a function returns by reference.
an argument is passed by reference.
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