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
The life of sub object is not dependant on the life of master class in ___________
Choose an answer
Composition
Aggregation
Separation
None of the given
Previous
Skip
Next
Question # 2
A class template may inherit from another class template.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 3
The >= operator can be overloaded.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
A C++ class is similar to -----------------
Choose an answer
Structure
Header File
Library File
None of the given
Previous
Skip
Next
Question # 5
Using encapsulation we can achieve
Choose an answer
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Previous
Skip
Next
Question # 6
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
Question # 7
this pointers are not accessible for static member functions.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 8
In object orientated programming, a class of objects cans _____________ properties from another class of objects
Choose an answer
Utilize
Borrow
Inherit
Adopt
Previous
Skip
Next
Question # 9
In order to free the memory occupied by the object, we use -------------
Choose an answer
Constructor
Destructor
Shallow Copy
Deep Copy
Previous
Skip
Next
Question # 10
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 # 11
Each try block can have ______ no. of catch blocks.
Choose an answer
1
2
3
As many as necessary
Previous
Skip
Next
Back