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 concept of derived classes is involved in,

Question # 2

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?

Question # 3

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?

Question # 4

When a variable is define as static in a class then all object of this class,

Question # 5

When is a constructor called?

Question # 6

What a derived class can add?

Question # 7

Which one of the following terms must relate to polymorphism?

Question # 8

The specialization pattern after the name says that this specialization is to be used for every,

Question # 9

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

Question # 10

Suppose you create an uninitialized vector as follows: vector evec; After adding the statment, evec.push_back(21); what will happen?

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 C++ compiler does not allow to dynamically allocate memory for object
A. False
B. True
C. Not sure
2 The life of sub object is not dependant on the life of master class in ___________
A. Composition
B. Aggregation
C. Separation
D. None of the given
3 _________ satisfy the condition of polymorphism
A. Carbon
B. Coal
C. Coal
D. all of the given
4 Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?
A. The automatic assignment operator is used
B. The copy constructor is used
C. Compiler error
D. Run-time error
5 The main function of scope resolution operator (::) is,
A. To define an object
B. To define a data member
C. To link the definition of an identifier to its declaration
D. To make a class private
6 In Private -------------- only member functions and friend classes or functions of a derived class can convert pointer or reference of derived object to that of parent object
A. specialization
B. inheritance
C. abstraction
D. composition
7 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
8 A normal C++ operator that acts in special ways on newly defined data types is said to be
A. glorified
B. encapsulated
C. classified
D. overloaded
9 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
10 A range is often supplied to an algorithm by two _______ values.
A. italic
B. iteration
C. iterator
D. None of given

Test Questions

Share your comments & questions here

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