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

Default mechanism of function calling in case of array is _____ and in case of variable is ___.

Question # 2

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

Question # 3

Operator overloading can be performed through__________________.

Question # 4

A template function must have

Question # 5

Which character is inserted at the end of string to indicate the end of string?

Question # 6

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

Question # 7

Disks are _______________ devices having access time of _________ milliseconds

Question # 8

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

How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;

Question # 10

*.doc is _____________ by type.

Question # 11

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

Question # 12

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

Question # 13

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

To access the data members of structure _______ is used.

Question # 15

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

Question # 16

If it is required to copy an array to another array then.

Question # 17

New operator allocates memory from free store and return.

Question # 18

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

Question # 19

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

Question # 20

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

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 The return type of the operator function for << operator is __________.
A. class for which we overload operator
B. reference of ostream class (ostream&)
C. reference of istream class (istream&)
D. void
2 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>
3 Structured Query Language is used for ______________
A. Databases Management
B. Networks
C. Writing Operating System
D. none of the given options
4 Which of the following function is used to increase the size of already allocated memory chunk?
A. malloc
B. calloc
C. realloc
D. free
5 A Matrix can be composed of ints, floats or doubles as their elements. Best way is to handle this.
A. Write a separate class to handle each
B. Use templates
C. Use strings to store all types
D. None of the given options
6 The function free() returns back the allocated memory got thorough calloc andmalloc to _____.
A. stack
B. heap
C. stack and heap
D. None of the given options
7 When an array is passed to a function then default way of passing this array is
A. By data
B. By reference
C. By value
D. By data type
8 What purpose do classes serve?
A. Data encapsulation
B. Providing a convenient way of modeling real-world objects
C. Simplifying code reuse
D. All of the given options
9 Which of the following function call is correct for the function prototype? defaultParameters ( int a, int b = 7, char z = ‘*’ );
A. defaultParameters (5);
B. defaultParameters (5, ‘8’);
C. defaultParameters (6, ‘#’);
D. defaultParameters (0, 0, ‘*’, 0);
10 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 ;
A. obj2 will be passed as an argument to + operator whereas obj2 willdrive the + operator
B. obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator
C. Both objects (obj1, obj2) will be passed as arguments to the + operator (not sure)
D. Any of the objects (obj1, obj2) can drive the + operator

Test Questions

Share your comments & questions here

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