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
Classes defined inside other classes are called ________ classes.
Choose an answer
looped
nested
overloaded
none of the given options
Previous
Skip
Next
Question # 2
"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 # 3
Which of the following is correct way to initialize a variable x of int type with value 10?
Choose an answer
int x ; x = 10;
int x = 10;
int x, x = 10;
x = 10;
Previous
Skip
Next
Question # 4
A pointer variable can be,
Choose an answer
Decremented
Incremented
Multiplied
Both Iecremented and Decremented
Previous
Skip
Next
Question # 5
Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
Choose an answer
new int(10)
new int[10] ;
int new(10) ;
int new[10];
Previous
Skip
Next
Question # 6
Which of the following function calling mechanism is true for the function prototype given below?
Choose an answer
Call by value
Call by reference using pointer
Call by reference using reference variable
None of the given options
Previous
Skip
Next
Question # 7
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
Question # 8
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
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
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 # 11
Overloaded new operator function takes parameter of type size_t and returns
Choose an answer
void (nothing)
void pointer
object pointer
int pointer
Previous
Skip
Next
Question # 12
Disks are _______________ devices having access time of _________ milliseconds
Choose an answer
Electro-physical, 6
Electro-Mechanical, 4
Electro-physical, 5
Electro-Mechanical, 7
Previous
Skip
Next
Question # 13
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 # 14
For cin, the source is normally a ________ and destination can be.
Choose an answer
File,native data type
Disk, user-define type
Keyboard, variable
File, user-define type
Previous
Skip
Next
Question # 15
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 # 16
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 # 17
The object _______________may be used both for file input and file output.
Choose an answer
fstream
ifstream
ofstream
none of the given options
Previous
Skip
Next
Question # 18
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
Back