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 part of an object exhibits its state?
Choose an answer
Data
Operations
Any public part
Any private part
Previous
Skip
Next
Question # 2
Template functions use _________ than ordinary functions.
Choose an answer
Greater Memory
Lesser Memory
Equal Memory
None of the given options
Previous
Skip
Next
Question # 3
We can use "this" pointer in the constructor in the body and even in the initialization list of any class if we are careful
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
this pointers are not accessible for static member functions
Choose an answer
true
false
not sure
Previous
Skip
Next
Question # 5
A pointer to a base class can point to objects of a derived class.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 6
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?
Choose an answer
The automatic assignment operator is used
The copy constructor is used
Compiler error
Run-time error
Previous
Skip
Next
Question # 7
An overloaded operator always requires one less argument than its number of operands.
Choose an answer
True
False
Not sure
Previous
Skip
Next
Question # 8
What a derived class can add?
Choose an answer
New data members
New member functions and New friend functions
New constructors and destructor
All of given
Previous
Skip
Next
Question # 9
Which of the following operators can not be overloaded?
Choose an answer
Scope resolution operator ( :: )
Insertion operator ( << )
Extraction operator ( >> )
The relation operator ( > )
Previous
Skip
Next
Question # 10
Given the following class class Base{ int Age=33; } How you can improve above class with respect to accessing the field Age?
Choose an answer
Define the variable Age as private
Define the variable Age as protected
Define the variable Age as private and create a get method that returns it and a set method that updates it
Define the variable Age as protected and create a set method that returns it and a get method that updates it
Previous
Skip
Next
Question # 11
The mechanism of selecting function at run time according to the nature of calling object is called,
Choose an answer
late binding
static binding
virtual binding
None of the given options
Previous
Skip
Next
Back