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
A C++ class is similar to --------------------
Choose an answer
Structure
Header File
Library File
None of the given
Previous
Skip
Next
Question # 2
Which of the following is the best approach to implement generic algorithms with minimum number of coding lines?
Choose an answer
Templates
Overloading
Overriding
Friend function/class
Previous
Skip
Next
Question # 3
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 # 4
his pointers are not accessible for static member functions.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 5
Which one of the following terms must relate to polymorphism?
Choose an answer
Static allocation
Static typing
Dynamic binding
Dynamic allocation
Previous
Skip
Next
Question # 6
Like template functions, a class template may not handle all the types successfully.
Choose an answer
True
True
Not Sure
Previous
Skip
Next
Question # 7
Which one is not keyword in C++?
Choose an answer
operator
B_op
const
None of given
Previous
Skip
Next
Question # 8
What problem(s) may occur when we copy objects without using deep copy constructor?
Choose an answer
Dangling pointe
Memory Leakage
All of the given
System crash
Previous
Skip
Next
Question # 9
An STL container can not be used to,
Choose an answer
hold objects of class employee.
store elements in a way that makes them quickly accessible
compile c++ programs
organize the way objects are stored in memory
Previous
Skip
Next
Question # 10
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 # 11
Default constructor is such constructor which either has no ---------or if it has some parameters these have -------- values
Choose an answer
Parameter, temporary
Null, Parameter
Parameter, default
non of the given
Previous
Skip
Next
Back