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 concept of derived classes is involved in,
Choose an answer
inheritance
encapsulation
array
structure
Previous
Skip
Next
Question # 2
We achieve independence of internal implementation from its external interface through-----------
Choose an answer
Encapsulation
Information Hiding
Abstraction
both encapsulation and information hiding
Previous
Skip
Next
Question # 3
__________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
Choose an answer
Friendship is one way only
Friendship is two way only
NO Friendship between classes
Any kind of friendship
Previous
Skip
Next
Question # 4
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option.
Choose an answer
No
Only if the two classes have the same name
Only if the main program does not declare both kinds
Yes
Previous
Skip
Next
Question # 5
Graphical representation of the classes and objects is called object model it shows -------
Choose an answer
Class Name only
Class Name and attributes
Relationships of the objects and classes
all of the given
Previous
Skip
Next
Question # 6
Which of the following may not be an integral part of an object?
Choose an answer
State
Behaviour
Protected data members
All of given
Previous
Skip
Next
Question # 7
Multiple inheritance can be of type
Choose an answer
Public
Private
Protected
All of the given
Previous
Skip
Next
Question # 8
Keeping in view the principle of abstraction, which of the above information the company needs to save as employee’s record?
Choose an answer
2, 4
1, 3, 5
1, 2, 3
1, 2, 3, 4
Previous
Skip
Next
Question # 9
his pointers are not accessible for static member functions.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 10
Which of these are examples of error handling techniques ?
Choose an answer
Abnormal Termination
Graceful Termination
Return the illegal
all of the given
Previous
Skip
Next
Question # 11
dentify the correct way of declaring an object of user defined template class A for char type members?
Choose an answer
A< char > obj;
< char > A obj
;
Obj < char >
A;
Previous
Skip
Next
Question # 12
By default the vector data items are initialized to ____
Choose an answer
0
0.0
1
null
Previous
Skip
Next
Question # 13
In ________, a base class can be replaced by its derived class,
Choose an answer
Sub-typing
Super-typing
Multiple-typing
Restricted-typing
Previous
Skip
Next
Question # 14
The main function of scope resolution operator (::) is,
Choose an answer
To define an object
To define a data member
To link the definition of an identifier to its declaration
To make a class private
Previous
Skip
Next
Back