MGT-301 Final Term Exams Preparation Virtual University With Answers

image
image
image

MGT-301 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 Overloaded delete operator function takes parameter of void pointer and returns. void void pointer pointer to an object pointer of type int
2 Which of the following function calling mechanism is true for the function prototype given below? Call by value Call by reference using pointer Call by reference using reference variable None of the given options
3 The object _______________may be used both for file input and file output. fstream ifstream ofstream none of the given options
4 Is used for ___________. calculation reading assigning value to variables None of the given options.
5 Which character is inserted at the end of string to indicate the end of string? new line tab null carriage return
6 Friend function of a class is ______________ Member function Non-member function Private function Public function
7 When we use manipulators in our program then which header file should be included? iostream.h stdlib.h stdio.h iomanip.h
8 Disks are _______________ devices having access time of _________ milliseconds Electro-physical, 6 Electro-Mechanical, 4 Electro-physical, 5 Electro-Mechanical, 7
9 Which of the following function(s) is/are included in ctype.h header file? isdigit(int c) isxdigit(int c ) tolower(int c) All of the above
10 && is -------------------- operator. An arithmetic Logical Relational Unary
11 "new" and "delete" keywords are _____________ in C++ language Built-in- Function Operators Memory Allocation Function None of the given options
12 New operator allocates memory from free store and return. A pointer A reference An integer A float
13 With user-defined data type variables (Objects), self assignment can produce. Syntax error Logical error Link error Non of the given options
14 When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are Zero One Two N arguments
15 While calling function, the arguments are assigned to the parameters from _____________. left to right right to left no specific order is followed none of the given options
16 The programs, in which we allocate static memory, run essentially on ________ Heap System Cache None of the given options Stack
17 For cin, the source is normally a ________ and destination can be. File,native data type Disk, user-define type Keyboard, variable File, user-define type
18 If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below?obj3 = obj1 + obj2 ; obj2 will be passed as an argument to + operator whereas obj2 willdrive the + operator obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator Both objects (obj1, obj2) will be passed as arguments to the + operator (not sure) Any of the objects (obj1, obj2) can drive the + operator
19 The prototype of friend functions must be written ____ the class and its definition must be written ____. inside, inside the class inside, outside the class outside, inside the class outside, outside the class
20 Friend functions are _____ of a class Member functions Public member functions Private member functions Non-member functions
Download This Set