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

A template function must have

Question # 2

Header file: fstream.h includes the definition of the stream classes __________.

Question # 3

When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are

Question # 4

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

Question # 5

A Matrix can be composed of ints, floats or doubles as their elements. Best way is to handle this _______________

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

Which kind of functions can access private member variables of a class?

Question # 8

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

Question # 9

The statement cin.get (); is used to,

Question # 10

To access the data members of structure _______ is used.

Question # 11

The code is written to __________ the program.

Question # 12

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

Question # 13

_______ is used to trace the logic of the program and correct the logical errors.

Question # 14

"new" and "delete" keywords are _____________ in C++ language

Question # 15

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

Question # 16

When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are.

Question # 17

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 ; }.

Question # 18

The first parameter of overloaded stream insertion operator is _________ where second parameter is _______ .

Question # 19

Every class contains _______________.

Question # 20

Which of the following function calling mechanism is true for the function prototype given below?

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
    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
    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
  • S
    Saim G 07 - Aug - 2025 00 Min 03 Sec 0/20
  • S
    Shah Muhammad 18 - Apr - 2024 01 Min 09 Sec 0/20

Virtual University CS-201 Chapter 1 Important MCQ's

Sr.# Question Answer
1 NULL value has been defined in ______ and _________ header files.
A. strings.h and iostream.h
B. ctype.h and conio.c
C. conio.c and conio.h
D. stdlib.h and stddef.h
2 While calling function, the arguments are assigned to the parameters from _____________.
A. left to right
B. right to left
C. no specific order is followed
D. none of the given options
3 What will be the correct syntax to declare two-dimensional array of float data type?
A. float arr{2}{2} ;
B. float arr[2][2] ;
C. float arr[2,2] ;
D. float[2][2] arr ;
4 Is used for ___________.
A. calculation
B. reading
C. assigning value to variables
D. None of the given options.
5 Which of the following function calling mechanism is true for the function prototype given below?
A. Call by value
B. Call by reference using pointer
C. Call by reference using reference variable
D. None of the given options
6 Structure is a collection of ______________ under a single name.
A. Only Functions
B. Only Variables
C. Both Functions and Variables
D. None of the given options
7 "setprecision" manipulator will set.
A. The number of digits after the decimal point.
B. The number of digits before the decimal point
C. The number of digits in a number
D. None of the given options
8 When we use manipulators in our program then which header file should be included?
A. iostream.h
B. stdlib.h
C. stdio.h
D. iomanip.h
9 To include code from the library in the program, such as iostream, a directive would be called up using this command.
A. #include “iostream.h”
B. include <iostream.h>
C. include <iostream.h>
D. #include <iostream.h>
10 The code is written to __________ the program.
A. implement
B. design
C. analysis
D. none of the given options

Test Questions

Share your comments & questions here

  • No comments yet. Be the first to comment!

Is this page helpful?