VU CS-201 Online Test Preparation

MCQ's Test For CS-201 Final Term Exams Preparation Virtual University

Try The MCQ's Test For CS-201 Final Term Exams Preparation Virtual University

  • Total Questions10

  • Time Allowed10

CS-201 Final Term Exams Preparation Virtual University

00:00
Question # 1

Which of the following function(s) is/are included in ctype.h header file?

Question # 2

Which situation would require the use of a non-member overloaded operator?

Question # 3

Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?

Question # 4

The return type of a function that do not return any value must be ________.

Question # 5

Array is a data structure which store

Question # 6

Every class contains _______________.

Question # 7

Which of the following option will be true, if we overload "-=" operator?

Question # 8

The code is written to __________ the program.

Question # 9

With user-defined data type variables (Objects), self assignment can produce.

Question # 10

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

Prepare Complete Set Wise CS-201 Final Term Exams Preparation Virtual University MCQs Online With Answers


Topic Test

00:00

Top Scorers Of CS-201 Final Term Exams Preparation Virtual University MCQ`s Test

  • G
    Ghazia Zainab 15 - Feb - 2024 00 Min 12 Sec 10/10
  • A
    Areeba Mushtaq 21 - Jul - 2024 00 Min 44 Sec 10/10
  • A
    Asad Khan 07 - Dec - 2023 00 Min 50 Sec 10/10
  • H
    Hamna Younas 30 - Jul - 2024 00 Min 53 Sec 10/10
  • T
    Tayyab Zafar 03 - Mar - 2024 01 Min 19 Sec 10/10
  • S
    Saim G 01 - Aug - 2025 01 Min 23 Sec 10/10
  • B
    bc230212222 ALINA SALEEM 13 - Feb - 2024 02 Min 26 Sec 10/10
  • A
    aayan ali 19 - Jul - 2024 01 Min 01 Sec 9/10
  • M
    maheen mughal 22 - Jul - 2024 02 Min 26 Sec 9/10
  • M
    Misbah Mehdi 21 - Jul - 2024 02 Min 28 Sec 9/10
  • Z
    Zain Ali Mirza 27 - Jul - 2024 01 Min 03 Sec 8/10
  • M
    Muhammad Arif 19 - Feb - 2024 01 Min 06 Sec 8/10
  • M
    Malik Zariii 12 - Dec - 2023 03 Min 41 Sec 8/10
  • A
    Ali Gohar 12 - Feb - 2024 00 Min 53 Sec 7/10
  • J
    Jehanzaib khalil 11 - Dec - 2023 01 Min 14 Sec 7/10

Virtual University CS-201 Chapter 1 Important MCQ's

Sr.# Question Answer
1 Friend function of a class is ______________.
A. Member function
B. Non-member function
C. Private function
D. Public function
2 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);
3 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
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 The stream insertion and stream extraction operators are already overloaded for ______.
A. User-defined data types
B. Built-in data types http://www.sstutor.com/cpp/stream1.htm
C. User-defined and built-in data types
D. None of the given options
6 width() is member function of _____________.
A. cin object
B. cout object
C. Both cin and cout object
D. None of the given option
7 Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.
A. One, zero
B. Zero, one
C. One, two
D. Two, one
8 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
9 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
10 The object _______________may be used both for file input and file output.
A. fstream
B. ifstream
C. ofstream
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?