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
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
Choose an answer
public members of Derv.
protected members of Derv.
private members of Derv.
protected members of Base.
Previous
Skip
Next
Question # 2
Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?
Choose an answer
Templates
Overloading
Data hiding
Encapsulation
Previous
Skip
Next
Question # 3
Constant objects cannot change their state,
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
Which part of an object exhibits its state?
Choose an answer
Data
Operations
Any public part
Any private part
Previous
Skip
Next
Question # 5
Each try block can have ______ no. of catch blocks.
Choose an answer
1
2
3
As many as necessary
Previous
Skip
Next
Question # 6
Which of the following causes run time binding?
Choose an answer
Declaring object of abstract class
Declaring pointer of abstract class
Declaring overridden methods as non-virtual
None of the given
Previous
Skip
Next
Question # 7
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 # 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
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 # 10
Consider a class named Vehicle, which of the following can be the instance of class Vehicle? 1. Car 2. Computer 3. Desk 4. Ahmed 5. Bicycle
Choose an answer
1, 4, 5
2, 5, 6
1, 2, 3, 6
1, 5, 6
Previous
Skip
Next
Question # 11
Suppose there is an object of type Person, which of the following can be considered as one of its attributes
Choose an answer
Name
Age
Work()
Both Name and Age
Previous
Skip
Next
Back