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

width() is member function of _____________.

Question # 2

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

Question # 3

Overloaded new operator function takes parameter of type size_t and returns

Question # 4

When we use manipulators in our program then which header file should be included?

Question # 5

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

Question # 6

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

Question # 7

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

Question # 8

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

Question # 9

"setprecision" manipulator will set.

Question # 10

The operator used for casting, in C, is standard ________ operator.

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 operator used for casting, in C, is standard ________ operator.
A. none of the given options
B. cast
C. cost
D. const
2 C is widely known as development language of _______ operating system.
A. Linux
B. Windows
C. Unix
D. Mac OS
3 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
4 *.doc is _____________ by type.
A. Sequential File
B. Random Access File
C. Data File
D. Record File
5 Structure is a collection of ______________ under a single name.
A. Only Functions
B. Only Variables
C. Both Functions and Variables
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 A template function must have
A. One or more than one arguments
B. Only one argument
C. Zero arguments
D. None of the given options
8 Like member functions, ______ can also access the private data members of a class.
A. Non-member functions
B. Friend functions
C. Any function outside class
D. None of the given options
9 Classes defined inside other classes are called ________ classes.
A. looped
B. nested
C. overloaded
D. none of the given options
10 Friend function of a class is ______________.
A. Member function
B. Non-member function
C. Private function
D. Public function

Test Questions

Is this page helpful?

Share your comments & questions here

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