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

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

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

Question # 4

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

Question # 5

Friend function of a class is ______________

Question # 6

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

Question # 7

Like member functions, ______ can also access the private data members of a class.

Question # 8

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

Question # 9

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

Question # 10

A template function must have

Question # 11

If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?

Question # 12

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

Question # 13

Every class contains _______________.

Question # 14

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

Question # 15

Which of the following is used with bit manipulation?

Question # 16

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

Question # 17

Structure is a collection of ______________ under a single name.

Question # 18

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

Question # 19

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

Question # 20

A pointer variable can be,

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
  • 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 Which of the following function(s) is/are included in ctype.h header file?
A. isdigit(int c)
B. isxdigit(int c )
C. tolower(int c)
D. All of the above
2 Memory allocated at run time is a system resource and it is the responsibility of _____ to de-allocate the memory.
A. System
B. Programmer
C. User of program
D. None of given options
3 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
4 New and Delete are also used with ___________ and data types as well.
A. Class, Objects
B. Structures, Pointers
C. Both Class and structures
D. None of above
5 If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
A. can not be replaced
B. None of the given options
C. Remain constant
D. can be changed by some operation
6 Friend function of a class is ______________
A. Member function
B. Non-member function
C. Private function
D. Public function
7 When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are
A. Zero
B. One
C. Two
D. N arguments
8 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
9 Classes defined inside other classes are called ________ classes.
A. looped
B. nested
C. overloaded
D. none of the given options
10 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

Test Questions

Is this page helpful?