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
Which one of the following functions returns the total number of elements in a vector.
Choose an answer
length();
size();
ele();
veclen();
Previous
Skip
Next
Question # 2
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 # 3
_______ “is a” relationship
Choose an answer
Inheritance
Polymarphism
abstraction
encapsulation
Previous
Skip
Next
Question # 4
Friend class and friend function can be used as an alternate to each other
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 5
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 # 6
In a de-queue, (chose the best option)
Choose an answer
data can be quickly inserted or deleted at any arbitrary location.
data can be inserted or deleted at any arbitrary location, but the process is relatively slow. (Object-Oriented Programming in C++)
data can not be quickly inserted or deleted at either end
data can be inserted or deleted at either end, but the process is relatively slow.
Previous
Skip
Next
Question # 7
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
Question # 8
A class template may inherit from another class template.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 9
The technique in which we visualize our programming problems according to real life’s problems is called ----------------
Choose an answer
structured programming
object oriented Programming
procedural programming
non of the given
Previous
Skip
Next
Question # 10
_________ satisfy the condition of polymorphism
Choose an answer
Carbon
Coal
Coal
all of the given
Previous
Skip
Next
Question # 11
Which of the following operator(s) take(s) one or no argument if overloaded?
Choose an answer
++
-
+
All of the above
Previous
Skip
Next
Back