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

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 # 2

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

Question # 3

New operator is used to allocate memory from the free store during

Question # 4

The code is written to __________ the program.

Question # 5

The function free() returns back the allocated memory got thorough calloc andmalloc to _____.

Question # 6

Structure is a collection of ______________ under a single name.

Question # 7

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

Question # 8

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

Question # 9

Which of the following is used with bit manipulation?

Question # 10

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

Question # 11

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

Question # 12

C is widely known as development language of _______ operating system.

Question # 13

new and delete are _____ whereas malloc and free are _____.

Question # 14

Array is a data structure which store

Question # 15

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

Question # 16

The endl and flush are _______

Question # 17

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

Question # 18

When an array is passed to a function then default way of passing this array is

Question # 19

Is used for ___________.

Question # 20

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

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 && is -------------------- operator.
A. An arithmetic
B. Logical
C. Relational
D. Unary
2 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
3 *.doc is _____________ by type.
A. Sequential File
B. Random Access File
C. Data File
D. Record File
4 C is widely known as development language of _______ operating system.
A. Linux
B. Windows
C. Unix
D. Mac OS
5 "new" and "delete" keywords are _____________ in C++ language
A. Built-in- Function
B. Operators
C. Memory Allocation Function
D. None of the given options
6 The statement cin.get (); is used to,
A. Read a string from keyboard
B. Read a character from keyboard
C. Read a string from file
D. Read a character from file
7 For which array, the size of the array should be one more than the number of elements in an array?
A. int
B. double
C. float
D. char
8 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
9 How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;
A. 3 bytes
B. 6 bytes
C. 12 bytes
D. 24 bytes
10 When an object of a class is defined inside an other class then
A. Constructor of enclosing class will be called first
B. Constructor of inner object will be called first
C. Constructor and Destructor will be called simultaneously
D. None of the given options

Test Questions