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

Friend class and friend function can be used as an alternate to each other

Question # 2

Which of the following is not an example of multiple inheritances?----------

Question # 3

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

Question # 4

Algorithms can only be implemented using STL containers.

Question # 5

When a virtual function is called by referencing a specific object by name and using the dot member selection operator (e.g., squareObject.draw()), the reference is resolved at compile time.

Question # 6

Using encapsulation we can achieve

Question # 7

Friend functions are _____________ functions of a class.

Question # 8

The sub-object’s life is not dependant on the life of master class in __________.

Question # 9

What a derived class can add?

Question # 10

________ and ______ methods may not be declared abstract.

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 Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
A. public members of Derv.
B. protected members of Derv.
C. private members of Derv
D. protected members of Base.
2 Which of the following are an advantage of OOP?
A. OOP makes it easy to re-use the code
B. It provides an ability to create one user defined data type by extending the other
C. It provides the facility of defining Abstract data types through which real world entities can be defined better
D. All of the given options
3 _________ satisfy the condition of polymorphism
A. Carbon
B. Coal
C. Coal
D. all of the given
4 Destructor can be overloaded
A. True
B. False
C. Not Sure
5 _______ remain in memory even when all objects of a class have been destroyed.
A. Static variables
B. Instance variable
C. Primitive variables
D. None of given
6 To convert from a user-defined class to a basic type, you would most likely use
A. a built-in conversion operator
B. a one-argument constructor.
C. an overloaded = operator.
D. a conversion operator that’s a member of the class.
7 What a derived class can add?
A. New data members
B. New member functions and New friend functions
C. New constructors and destructor
D. All of given
8 Classes like TwoDimensionalShape and ThreeDimensionalShape would normally be concrete, while classes like Sphere and Cube would normally be abstract.
A. True
B. False
C. Not Sure
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 What is true about function templates?
A. The compiler generates only one copy of the function template
B. The compiler generates a copy of function respective to each type of data
C. The compiler can only generate copy for the int type data
D. non of the given

Test Questions