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

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

Question # 2

Which of the following statement is best regarding declaration of friend function?

Question # 3

Which of the following is used with bit manipulation?

Question # 4

New operator allocates memory from free store and return.

Question # 5

*.doc is _____________ by type.

Question # 6

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

Question # 7

Class is a user defined___________.

Question # 8

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

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

Question # 10

If text is a pointer of class String then what is meant by the following statement? text = new String [5];

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 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
2 What is the sequence of event(s) when allocating memory using new operator?
A. Only block of memory is allocated for objects
B. Only constructor is called for objects
C. Memory is allocated first before calling constructor
D. Constructor is called first before allocating memory
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 Friend function of a class is ______________
A. Member function
B. Non-member function
C. Private function
D. Public function
5 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
6 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
7 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
8 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
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 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

Test Questions

Is this page helpful?