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

What does STL stand for?

Question # 2

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

Question # 3

width() is member function of _____________.

Question # 4

The stream insertion and stream extraction operators are already overloaded for ______.

Question # 5

All A template function must have at least ---------- generic data type.

Question # 6

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

Question # 7

*.doc is _____________ by type.

Question # 8

The operator function overloaded for an Assignment operator (=) must be.

Question # 9

In if structure the block of statements is executed only.

Question # 10

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

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
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; }.
A. any number other than 1 or 2
B. only 0
C. only 1
D. only 2
3 What will be the correct syntax to access the value of fourth element of an array using pointer ptr?
A. ptr[3]
B. (ptr+3)
C. *(ptr+3)
D. Both 1and 3
4 Overloaded new operator function takes parameter of type size_t and returns
A. void (nothing)
B. void pointer
C. object pointer
D. int pointer
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 Structured Query Language is used for ______________
A. Databases Management
B. Networks
C. Writing Operating System
D. none of the given options
7 If there is a symbol (& sign) used with the variable name followed by data type then it refers to _____ and if & is being used with variable name then it refers to _____.
A. Address of variable, reference variable
B. Reference variable, value of variable
C. Reference variable, address of variable
D. Address of variable, value of variable
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 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
10 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

Test Questions

Share your comments & questions here

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