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
MGT-301 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
Like member functions, ______ can also access the private data members of a class.
Choose an answer
Non-member functions
Friend functions
Any function outside class
None of the given options
Previous
Skip
Next
Question # 2
Which of the following function(s) is/are included in ctype.h header file?
Choose an answer
isdigit(int c)
isxdigit(int c )
tolower(int c)
All of the above
Previous
Skip
Next
Question # 3
In C/C++ if we define an array of size eight (8) i.e. int Arr [8]; then the last element of this array will be stored at
Choose an answer
Arr[0]
Arr[8]
Arr[7]
Arr[-1]
Previous
Skip
Next
Question # 4
What does (*this) represents?
Choose an answer
The current function of the class
The current pointer of the class
The current object of the class
A value of the data member
Previous
Skip
Next
Question # 5
While calling function, the arguments are assigned to the parameters from _____________.
Choose an answer
left to right
right to left
no specific order is followed
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 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 # 8
The operator used for casting, in C, is standard ________ operator.
Choose an answer
none of the given options
cast
cost
const
Previous
Skip
Next
Question # 9
What is the sequence of event(s) when deallocating memory using delete operator?
Choose an answer
Only block of memory is deallocated for objects
Only destructor is called for objects
Memory is deallocated first before calling destructor
Destructor is called first before deallocating memory
Previous
Skip
Next
Question # 10
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
Question # 11
"setprecision" manipulator will set.
Choose an answer
The number of digits after the decimal point.
The number of digits before the decimal point
The number of digits in a number
None of the given options
Previous
Skip
Next
Question # 12
Which kind of functions can access private member variables of a class?
Choose an answer
Friend functions of the class
Private member functions of the class
Public member functions of the class
Friend, private and public functions
Previous
Skip
Next
Question # 13
*.doc is _____________ by type.
Choose an answer
Sequential File
Random Access File
Data File
Record File
Previous
Skip
Next
Question # 14
Every class contains _______________.
Choose an answer
Constructor
Destructor
Both a constructor and a destructor
None of the given options
Previous
Skip
Next
Question # 15
_______ is used to trace the logic of the program and correct the logical errors.
Choose an answer
Compiler
Editor
Linker
Debugger
Previous
Skip
Next
Question # 16
The operator function overloaded for an Assignment operator (=) must be.
Choose an answer
Non-member function of class
Member function of class
Friend function of class
None of the given options
Previous
Skip
Next
Question # 17
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 # 18
The first parameter of overloaded stream insertion operator is _________ where second parameter is _______ .
Choose an answer
input stream, object of class
object of class, output stream
output stream, object of class
object of class, input stream
Previous
Skip
Next
Question # 19
All A template function must have at least ---------- generic data type.
Choose an answer
Zero
One
Two
Three
Previous
Skip
Next
Question # 20
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Back