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

this pointers are not accessible for static member functions.

Question # 2

Which one is not keyword in C++?

Question # 3

Which of the following operators can not be overloaded?

Question # 4

The statement objA=objB; will cause a compiler error if the objects are of different classes.

Question # 5

In order to define a class template, the first line of definition must be:

Question # 6

Which one of the following terms must relate to polymorphism?

Question # 7

When a subclass specifies an alternative definition for an attribute or method of its superclass, it is _______ the definition in the superclass.

Question # 8

The compiler won’t object if you overload the * operator to perform division

Question # 9

A copy constructor is invoked when

Question # 10

A function call is resolved at run-time 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 ________ is/are used to access information hidden within an object?
A. Interface
B. Private data members
C. Private member functions
D. Both public and private members
2 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
3 What is true about function template?
A. The compiler generate only one copy of the following function
B. The compiler generate a copy function respective to each data type
C. The compiler can generate only copy for the int type data
D. None of the given
4 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.
A. True
B. False
C. Not Sure
5 In a de-queue, (chose the best option)
A. data can be quickly inserted or deleted at any arbitrary location.
B. data can be inserted or deleted at any arbitrary location, but the process is relatively slow. (Object-Oriented Programming in C++)
C. data can not be quickly inserted or deleted at either end
D. data can be inserted or deleted at either end, but the process is relatively slow.
6 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
7 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
8 A function template can not be overloaded by another function template.
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 Vectors contain contiguous elements stored as a[an] ___.
A. variable
B. array
C. function
D. datatype

Test Questions

Is this page helpful?

Share your comments & questions here

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