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-201 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
new and delete are _____ whereas malloc and free are _____.
Choose an answer
Functions, operators
Classes, operators
Operators, functions
Operators, classes
Previous
Skip
Next
Question # 2
To access the data members of structure _______ is used.
Choose an answer
dot operator
* operator
U operator
None of given
Previous
Skip
Next
Question # 3
Pointer is a variable which store
Choose an answer
Data
Memory Address
Data Type
Values
Previous
Skip
Next
Question # 4
What purpose do classes serve?
Choose an answer
Data encapsulation
Providing a convenient way of modeling real-world objects
Simplifying code reuse
All of the given options
Previous
Skip
Next
Question # 5
A template function must have
Choose an answer
One or more than one arguments
Only one argument
Zero arguments
None of the given options
Previous
Skip
Next
Question # 6
Reference Value Type Data The code is written to __________ the program.
Choose an answer
implement
design
analysis
none of the given options
Previous
Skip
Next
Question # 7
"new" and "delete" keywords are _____________ in C++ language
Choose an answer
Built-in- Function
Operators
Memory Allocation Function
None of the given options
Previous
Skip
Next
Question # 8
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Question # 9
Which of the following is NOT a preprocessor directive?
Choose an answer
#error
#define
#line
#ndefine
Previous
Skip
Next
Question # 10
Friend function of a class is ______________
Choose an answer
Member function
Non-member function
Private function
Public function
Previous
Skip
Next
Question # 11
With user-defined data type variables (Objects), self assignment can produce.
Choose an answer
Syntax error
Logical error
Link error
Non of the given options
Previous
Skip
Next
Back