CS304 Midterm Online Quiz

0%

CS304-Midterm

1 / 50

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

2 / 50

template <> class Vector { } This is an example of partial specialization

3 / 50

The process of hiding unwanted details from users is called __________

4 / 50

Which operator can not be overloaded?

5 / 50

Which of the following may not be an integral part of an object?

6 / 50

What is true about function templates?

7 / 50

Inheritance is a way to - Please choose one

8 / 50

__________ satisfy the condition of polymorphism

9 / 50

Identify which of the following overloaded operator function’s declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number

10 / 50

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

11 / 50

Which operator can not be overloaded?

12 / 50

Static variable can be initialized more than once

13 / 50

this pointers are not accessible for static member functions

14 / 50

In OOP a class is an example of _____ 

15 / 50

A static member function cannot be declared

16 / 50

The >= operator can be overloaded.

17 / 50

Using encapsulation we can achieve

18 / 50

Constant objects cannot change their state,

19 / 50

Given the following class class Base{ int Age=33; } How you can improve above class with respect to accessing the field Age?

20 / 50

The >= operator can be overloaded

21 / 50

Static variables act like a global variable in the context or scope of the class

22 / 50

 _______ remain in memory even when all objects of a class have been destroyed

23 / 50

_______ remain in memory even when all objects of a class have been destroyed

24 / 50

 Which one is not keyword in C++?

25 / 50

Static variable can be initialized more than once.

26 / 50

The return type of a constructor is of -------------

27 / 50

To convert from a user-defined class to a basic type, you would most likely use

28 / 50

Which one of the following terms must relate to polymorphism?

29 / 50

A generic class showing all the common attributes and a behavior of other classes represents a very important feature in oop called --------

30 / 50

A member function having the same name as that of a class and a ~ sign with it is called,

31 / 50

Which of the following operators always takes no argument if overloaded? 

32 / 50

_______ is a relationship

33 / 50

________ is/are used to access information hidden within an object?

34 / 50

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

35 / 50

___________, 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

36 / 50

A static member function cannot be declared

37 / 50

Which operator can not be overloaded?

38 / 50

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

39 / 50

A generalization-specialization relation between classes are implemented using

40 / 50

A template provides a convenient way to make a family of

41 / 50

Given the following class class Base{ int Age=33; } How you can improve above class with respect to accessing the field Age?

42 / 50

What problem(s) may occur when we copy objects without using deep copy constructor?

43 / 50

What problem(s) may occur when we copy objects without using deep copy constructor?

44 / 50

Identify which of the following overloaded operator function’s declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number

45 / 50

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

46 / 50

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

47 / 50

A static member function cannot be declared

48 / 50

Inheritance is a way to

49 / 50

What a derived class can add?

50 / 50

The find() algorithm

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi