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

What will be the correct syntax to declare two-dimensional array of float data type?

Question # 2

New operator allocates memory from free store and return.

Question # 3

Reference Value Type Data The code is written to __________ the program.

Question # 4

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

Question # 5

The return type of the operator function for << operator is __________.

Question # 6

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 _____.

Question # 7

When we use manipulators in our program then which header file should be included?

Question # 8

The object _______________may be used both for file input and file output.

Question # 9

&& is -------------------- operator.

Question # 10

Array is a data structure which store

Question # 11

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

Question # 12

Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.

Question # 13

What will be the correct syntax to access the value of fourth element of an array using pointer ptr?

Question # 14

What is the sequence of event(s) when deallocating memory using delete operator?

Question # 15

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 ;

Question # 16

For cin, the source is normally a ________ and destination can be.

Question # 17

The appropriate data type to store the number of rows and colums of the matrix is____________.

Question # 18

The programs, in which we allocate static memory, run essentially on ________

Question # 19

The default value of a parameter can be provided inside the ________________

Question # 20

When we define an array of objects then

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 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 ; }.
A. 6,8,6
B. 6,6,8
C. 6,8,8
D. 6,6,6
2 New operator allocates memory from free store and return.
A. A pointer
B. A reference
C. An integer
D. A float
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 The first parameter of overloaded stream insertion operator is _________ where second parameter is _______ .
A. input stream, object of class
B. object of class, output stream
C. output stream, object of class
D. object of class, input stream
5 Which kind of functions can access private member variables of a class?
A. Friend functions of the class
B. Private member functions of the class
C. Public member functions of the class
D. Friend, private and public functions
6 The appropriate data type to store the number of rows and colums of the matrix is____________.
A. float
B. int (Not sure)
C. char
D. none of the given options
7 The return type of a function that do not return any value must be ________.
A. float
B. int
C. void
D. double
8 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
A. Arr[0]
B. Arr[8]
C. Arr[7]
D. Arr[-1]
9 Overloaded delete operator function takes parameter of void pointer and returns.
A. void
B. void pointer
C. pointer to an object
D. pointer of type int
10 A pointer variable can be,
A. Decremented
B. Incremented
C. Multiplied
D. Both Iecremented and Decremented

Test Questions

Share your comments & questions here

Guest
  • No comments yet. Be the first to comment!