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

A template argument is preceded by the keyword ________.

Question # 2

A class can be identified from a statement by ------------

Question # 3

The ________ relationship indicates that an object contains other objects.

Question # 4

this pointers are not accessible for static member functions

Question # 5

For classes with common behavior, you can save effort by placing the common behavior in a __________.

Question # 6

A class template may inherit from another class template.

Question # 7

Consider the following statement Cupboard has books What is the relationship between Cupboard and books?

Question # 8

Which one of the following functions returns the total number of elements in a vector.

Question # 9

Non Template Friend functions of a class are friends of ________instance/s of

Question # 10

__________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.

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 Using encapsulation we can achieve
A. Information hiding
B. Least interdependencies among modules
C. Implementation independence
D. All of given options
2 When a subclass specifies an alternative definition for an attribute or method of its superclass, it is _______ the definition in the superclass.
A. overload
B. overriding
C. copy riding
D. none of given
3 An STL container can not be used to
A. hold objects of class employee.
B. store elements in a way that makes them quickly accessible
C. compile c++ programs.
D. organize the way objects are stored in memory
4 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.
5 When a variable is define as static in a class then all object of this class,
A. Have different copies of this variable
B. Have same copy of this variable
C. Can not access this variable
D. None of given
6 Which of the following may not be an integral part of an object?
A. State
B. Behaviour
C. Protected data members
D. All of given
7 Default constructor is such constructor which either has no ---------or if it has some parameters these have -------- values
A. Parameter, temporary
B. Null, Parameter
C. Parameter, default
D. non of the given
8 When is a constructor called?
A. Each time the constructor identifier is used in a program statement
B. During the instantiation of a new object
C. During the construction of a new class
D. At the beginning of any program execution
9 Like template functions, a class template may not handle all the types successfully.
A. True
B. True
C. Not Sure
10 An STL container can not be used to,
A. hold objects of class employee.
B. store elements in a way that makes them quickly accessible
C. compile c++ programs
D. organize the way objects are stored in memory

Test Questions