VU CS-304 Online Test Preparation

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

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

  • Total Questions10

  • Time Allowed10

CS-304 Final Term Exams Preparation Virtual University

00:00
Question # 1

The main function of scope resolution operator (::) is,

Question # 2

Graphical representation of the classes and objects is called object model it shows -------

Question # 3

Vectors contain contiguous elements stored as a[an] ___.

Question # 4

C++ compiler does not allow to dynamically allocate memory for object

Question # 5

What is a class?

Question # 6

The type that is used to declare a reference or pointer is called its ---------

Question # 7

Which of these are examples of error handling techniques?

Question # 8

Which sentence clearly defines an object?

Question # 9

A copy constructor is invoked when

Question # 10

The life of sub object is not dependant on the life of master class in ___________

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


Topic Test

00:00

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

  • T
    Tahira Nawaz 17 - Aug - 2023 00 Min 01 Sec 10/10
  • U
    Uzair sajid 15 - Feb - 2024 01 Min 01 Sec 10/10
  • H
    Hamna mushtaq 24 - Feb - 2024 01 Min 02 Sec 10/10
  • H
    Humza munawar 23 - Feb - 2024 01 Min 13 Sec 10/10
  • T
    Tayyab Malik 22 - Jul - 2024 01 Min 51 Sec 10/10
  • D
    Daniyal Tahir 12 - Feb - 2024 01 Min 59 Sec 10/10
  • H
    Humna Nawaz 30 - May - 2024 02 Min 49 Sec 10/10
  • U
    Unknown 17 - Aug - 2023 05 Min 03 Sec 10/10
  • B
    bc200404586 AYESHA WARIS 15 - Feb - 2024 00 Min 54 Sec 9/10
  • S
    Saima Riaz 13 - Feb - 2024 01 Min 13 Sec 9/10
  • I
    Iqra Ishtiaq 22 - Aug - 2023 01 Min 17 Sec 9/10
  • R
    Rimsha Raja 02 - Jun - 2024 01 Min 26 Sec 9/10
  • K
    khalid Bhatti 12 - Feb - 2024 01 Min 42 Sec 9/10
  • A
    Abroo -e- zainab 24 - Feb - 2024 01 Min 51 Sec 9/10
  • R
    Rabiya Masood 26 - Aug - 2023 01 Min 56 Sec 9/10

Virtual University CS-304 Chapter 1 Important MCQ's

Sr.# Question Answer
1 Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?
A. Templates
B. Overloading
C. Data hiding
D. Encapsulation
2 Which of these are examples of error handling techniques?
A. Abnormal Termination
B. Graceful Termination
C. Return the illegal
D. all of the given
3 Algorithms can only be implemented using STL containers.
A. True
B. False
C. Not Sure
4 Using encapsulation we can achieve
A. Information hiding
B. Least interdependencies among modules
C. Implementation independence
D. All of given options
5 Which one of the following functions returns the total number of elements in a vector.
A. length();
B. size();
C. ele();
D. veclen();
6 The type that is used to declare a reference or pointer is called its ---------
A. default type
B. static type
C. abstract type
D. reference type
7 If a class D has been derived using protected inheritance from class B (If B is a protected base and D is derived class) then public and protected members of B -------- accessed by member functions and friends of class D and classes derived from D
A. can be
B. cannot be
C. does restirct to be
D. does restirct to be
8 A range is often supplied to an algorithm by two _______ values.
A. italic
B. iteration
C. iterator
D. None of given
9 A copy constructor is invoked when
A. a function do not returns by value.
B. an argument is passed by value.
C. a function returns by reference
D. an argument is passed by reference
10 Which of the following is an integral part of an object?
A. State
B. Behavior
C. Unique identity
D. All of the given

Test Questions

Share your comments & questions here

  • No comments yet. Be the first to comment!

Is this page helpful?