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
To access the data members of structure _______ is used.
Choose an answer
dot operator
* operator
U operator
None of given
Previous
Skip
Next
Question # 2
Memory allocated at run time is a system resource and it is the responsibility of _____ to de-allocate the memory.
Choose an answer
System
Programmer
User of program
None of given options
Previous
Skip
Next
Question # 3
UNIX has been developed in ________ language
Choose an answer
JAVA
B
C
FORTRAN
Previous
Skip
Next
Question # 4
A Pointer is a special variable that contain.
Choose an answer
Data values
Memory Address
Both data and values
None of the given option
Previous
Skip
Next
Question # 5
When an object of a class is defined inside another class then,
Choose an answer
Destructor of enclosing class will be called first
Destructor of inner object will be called first
Constructor and Destructor will be called simultaneously
None of the given options
Previous
Skip
Next
Question # 6
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
Choose an answer
Class-name operator +()
Class-name operator +(int)
Class-name operator ++() ;
Class-name operator ++(int) ;
Previous
Skip
Next
Question # 7
A Matrix can be composed of ints, floats or doubles as their elements. Best way is to handle this
Choose an answer
Write a separate class to handle each
Use templates
Use strings to store all types
None of the given options
Previous
Skip
Next
Question # 8
"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 # 9
Which of the following is used with bit manipulation?
Choose an answer
Signed integer
Un-signed integer
Signed double
Un-signed double
Previous
Skip
Next
Question # 10
The number 544.53 must be stored in _____ data type.
Choose an answer
int
short
float (Sure)
char
Previous
Skip
Next
Question # 11
Default mechanism of function calling in case of array is _____ and in case of variable is ___.
Choose an answer
Call by value, call by reference
Call by referene, call by reference
Call by reference, call by value
Call by value, call by value
Previous
Skip
Next
Back