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
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
Question # 2
The appropriate data type to store the number of rows and colums of the matrix is____________.
Choose an answer
float
int (Not sure)
char
none of the given options
Previous
Skip
Next
Question # 3
Which of the following is NOT a preprocessor directive?
Choose an answer
#error
#define
#line
#ndefine
Previous
Skip
Next
Question # 4
UNIX has been developed in ________ language
Choose an answer
JAVA
B
C
FORTRAN
Previous
Skip
Next
Question # 5
When an object of a class is defined inside an other class then
Choose an answer
Constructor of enclosing class will be called first
Constructor of inner object will be called first
Constructor and Destructor will be called simultaneously
None of the given options
Previous
Skip
Next
Question # 6
Structured Query Language is used for ______________
Choose an answer
Databases Management
Networks
Writing Operating System
none of the given options
Previous
Skip
Next
Question # 7
The first parameter of operator function for << operator,
Choose an answer
Must be passed by value
Must be passed by reference
Can be passed by value or reference
Must be object of class
Previous
Skip
Next
Question # 8
The stream insertion and stream extraction operators are already overloaded for ______.
Choose an answer
User-defined data types
Built-in data types http://www.sstutor.com/cpp/stream1.htm
User-defined and built-in data types
None of the given options
Previous
Skip
Next
Question # 9
New operator allocates memory from free store and return.
Choose an answer
A pointer
A reference
An integer
A float
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
If there is a symbol (& sign) used with the variable name followed by data type then it refers to _____ and if & is being used with variable name then it refers to _____.
Choose an answer
Address of variable, reference variable
Reference variable, value of variable
Reference variable, address of variable
Address of variable, value of variable
Previous
Skip
Next
Back