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
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 # 2
Structure is a collection of ______________ under a single name.
Choose an answer
Only Functions
Only Variables
Both Functions and Variables
None of the given options
Previous
Skip
Next
Question # 3
When ever dynamic memory allocation is made in C/C++, it is freed_____________.
Choose an answer
Explicitly
Implicitly
Both explicitly and implicitly
None of the given options
Previous
Skip
Next
Question # 4
Which of the following function call is correct for the function prototype? defaultParameters ( int a, int b = 7, char z = ‘*’ );
Choose an answer
defaultParameters (5);
defaultParameters (5, ‘8’);
defaultParameters (6, ‘#’);
defaultParameters (0, 0, ‘*’, 0);
Previous
Skip
Next
Question # 5
Overloaded delete operator function takes parameter of void pointer and returns.
Choose an answer
void
void pointer
pointer to an object
pointer of type int
Previous
Skip
Next
Question # 6
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 # 7
Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; } main () { int x =6 ; cout << x << “,” ; cout << addValue(&x) << “,” ; cout << x ; }.
Choose an answer
6,8,6
6,6,8
6,8,8
6,6,6
Previous
Skip
Next
Question # 8
Which of the following statement is best regarding declaration of friend function?
Choose an answer
Friend function must be declared after public keyword
Friend function must be declared after private keyword
Friend function must be declared at the top within class definition
It can be declared anywhere in class as these are not affected by the public and private keywords
Previous
Skip
Next
Question # 9
Operator overloading can be performed through__________________.
Choose an answer
Classes
Function
Operators
Reference
Previous
Skip
Next
Question # 10
Which of the following option will be true, if we overload "-=" operator?
Choose an answer
only - operator needs to be overloaded
Minus (-) and = operators need to be overloaded
the -= operator need to be overloaded explicitly
the - and = operators need to be overloaded implicitly
Previous
Skip
Next
Question # 11
If text is a pointer of class String then what is meant by the following statement? text = new String [5];
Choose an answer
Creates an array of 5 string objects statically
creates an array of 5 string objects dynamically
Creates an array of pointers to string
Creates a string Object
Previous
Skip
Next
Question # 12
When a value is referred by a normal variable then it is known as,
Choose an answer
Direct Reference
Indirect Reference
Partial Reference
Proper Reference
Previous
Skip
Next
Question # 13
Friend function of a class is ______________.
Choose an answer
Member function
Non-member function
Private function
Public function
Previous
Skip
Next
Question # 14
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Question # 15
Array is a data structure which store
Choose an answer
Memory addresses
Variables
Data Type
Data
Previous
Skip
Next
Question # 16
The programs, in which we allocate static memory, run essentially on ________
Choose an answer
Heap
System Cache
None of the given options
Stack
Previous
Skip
Next
Question # 17
Assignment operator is -------------------------associative.
Choose an answer
right
left
binary
unary
Previous
Skip
Next
Question # 18
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 # 19
The number 544.53 must be stored in _____ data type.
Choose an answer
int
short
float (Sure)
char
Previous
Skip
Next
Question # 20
What will be the correct syntax to declare two-dimensional array of float data type?
Choose an answer
float arr{2}{2} ;
float arr[2][2] ;
float arr[2,2] ;
float[2][2] arr ;
Previous
Skip
Next
Question # 21
All preprocessor directives are started with the symbol______.
Choose an answer
*
+
@
#
Previous
Skip
Next
Back