VU MGT-301 Online Test Preparation

MCQ's Test For MGT-301 Final Term Exams Preparation Virtual University

Try The MCQ's Test For MGT-301 Final Term Exams Preparation Virtual University

  • Total Questions20

  • Time Allowed20

MGT-301 Final Term Exams Preparation Virtual University

00:00
Question # 1

When an object of a class is defined inside another class then,

Question # 2

NULL value has been defined in ______ and _________ header files.

Question # 3

Array is a data structure which store

Question # 4

The first parameter of operator function for << operator,

Question # 5

What will be the value of ‘a’ and ‘b’ after executing the following statements?A = 3; b = a++;

Question # 6

If text is a pointer of class String then what is meant by the following statement? text = new String [5];

Question # 7

New operator allocates memory from free store and return.

Question # 8

While calling function, the arguments are assigned to the parameters from _____________.

Question # 9

Which of the following is NOT a preprocessor directive?

Question # 10

*.doc is _____________ by type.

Question # 11

For which values of the integer _value will the following code becomes an infinite loop? int number=1; while (true) { cout << number; if (number == 3) break; number += integer_value; }.

Question # 12

The normal source of cin object is

Question # 13

The return type of a function that do not return any value must be ________.

Question # 14

Overloaded delete operator function takes parameter of void pointer and returns.

Question # 15

When a value is referred by a normal variable then it is known as,

Question # 16

Friend function of a class is ______________.

Question # 17

Which of the following is correct way to initialize a variable x of int type with value 10?

Question # 18

Which of the following function do NOT initialize the chunk of memory to all zero?

Question # 19

When an object of a class is defined inside an other class then

Question # 20

When ever dynamic memory allocation is made in C/C++, it is freed_____________.

Prepare Complete Set Wise MGT-301 Final Term Exams Preparation Virtual University MCQs Online With Answers


Topic Test

00:00

Top Scorers Of MGT-301 Final Term Exams Preparation Virtual University MCQ`s Test

  • F
    FAHAD JUTT 25 - Jul - 2024 03 Min 25 Sec 16/20
  • A
    Arooj Ghulam Rasool 28 - Jan - 2026 18 Min 27 Sec 15/20
  • M
    Misbah Naseem 24 - Jul - 2026 07 Min 11 Sec 14/20
  • A
    ATIF iqbal 06 - Feb - 2024 06 Min 15 Sec 13/20
  • S
    Sajjal Azhar 08 - Jun - 2024 05 Min 21 Sec 9/20
  • L
    Laiba Bibi 02 - Jun - 2024 05 Min 42 Sec 8/20
  • Y
    Yasir Ammar 17 - Dec - 2024 02 Min 20 Sec 7/20
  • U
    Uswa Ch 15 - Feb - 2024 02 Min 45 Sec 7/20
  • M
    Muhammad Zain 30 - May - 2024 03 Min 21 Sec 6/20
  • A
    Ahsan khan 07 - Mar - 2024 10 Min 50 Sec 5/20
  • M
    Muhammad Ali 08 - Jun - 2026 03 Min 59 Sec 4/20
  • M
    Misbah Ahmad 10 - Aug - 2024 06 Min 23 Sec 3/20
  • B
    bc240435692 RANIA KHAN 04 - Nov - 2024 01 Min 18 Sec 2/20
  • A
    Aleena shafaut 04 - Jun - 2024 02 Min 12 Sec 2/20
  • A
    Anam. Akram 20 - Nov - 2024 00 Min 23 Sec 1/20

Virtual University CS-201 Chapter 1 Important MCQ's

Sr.# Question Answer
1 Which character is inserted at the end of string to indicate the end of string?
A. new line
B. tab
C. null
D. carriage return
2 When we define an array of objects then
A. Destructor will call once for whole array
B. Destructor will call for each object of the array
C. Destructor will never call
D. Depends on the size of array
3 What does (*this) represents?
A. The current function of the class
B. The current pointer of the class
C. The current object of the class
D. A value of the data member
4 Pointer is a variable which store
A. Data
B. Memory Address
C. Data Type
D. Values
5 Is used for ___________.
A. calculation
B. reading
C. assigning value to variables
D. None of the given options.
6 The operator used for casting, in C, is standard ________ operator.
A. none of the given options
B. cast
C. cost
D. const
7 Classes defined inside other classes are called ________ classes.
A. looped
B. nested
C. overloaded
D. none of the given options
8 Every class contains _______________.
A. Constructor
B. Destructor
C. Both a constructor and a destructor
D. None of the given options
9 *.doc is _____________ by type.
A. Sequential File
B. Random Access File
C. Data File
D. Record File
10 If it is required to copy an array to another array then.
A. Both arrays must be of the same size and data type
B. Both arrays may be of different size
C. Both arrays may be of different data type
D. Both arrays may be of different size and type

Test Questions