Source Files, Classes and Operator Overloading in C++ Quiz 3

0%
0

Source Files, Classes and Operator Overloading in C++ Quiz 3

1 / 52

How many types of constructors are there in C++?

2 / 52

What is string objects in C++?

3 / 52

Pick out the correct statement.

4 / 52

What is the role of destructors in Classes?

5 / 52

Which is used to do the dereferencing?

6 / 52

What is the use of function call operator?

7 / 52

What is the role of a constructor in classes?

8 / 52

What is the header file for the string class?

9 / 52

Which function is used to get the length of a string object?

10 / 52

Which of the following is not a modifier function in string class?

11 / 52

Pick out the correct statement.

12 / 52

Which is used to return the number of characters in the string?

13 / 52

Why constructors are efficient instead of a function init() defined by the user to initialize the data members of an object?

14 / 52

How many types are there in increment/decrement operator?

15 / 52

How many Destructors are allowed in a Class?

16 / 52

Pick out the correct statement.

17 / 52

How destructor overloading is done?

18 / 52

What is a copy constructor?

19 / 52

Pick out the correct statement.

20 / 52

When a copy constructor is called?

21 / 52

Which concepts does the Pre Increment use?

22 / 52

How many types of representation are in the string?

23 / 52

How constructors are different from other member functions of the class?

24 / 52

Pick the incorrect statement about Character-Array.

25 / 52

What will happen when the function call operator is overloaded?

26 / 52

How many arguments will the subscript operator will take for overloading?

27 / 52

How many parameters does a default constructor require?

28 / 52

Pick out the correct statement.

29 / 52

What is the identifier given to string class to declare string objects?

30 / 52

When destructors are called?

31 / 52

What is the use of functor?

32 / 52

What is the difference between constructors and destructors?

33 / 52

In which form does the function call operator can be overloaded?

34 / 52

Pick out the correct statement.

35 / 52

What do we need to use when we have multiple subscripts?

36 / 52

What happens if a user forgets to define a constructor inside a class?

37 / 52

Pick out the correct option.

38 / 52

What does the dereference operator will return?

39 / 52

Which header file is used to include the string object functions in C++?

40 / 52

What is syntax of defining a destructor of class A?

41 / 52

Which method do we use to append more than one character at a time?

42 / 52

Which operator works only with integer variables?

43 / 52

Which of the following is correct?

44 / 52

Pick out the correct statement.

45 / 52

Which operator works only with integer variables?

46 / 52

Pick the correct statement about string objects in C++.

47 / 52

What is Character-Array?

48 / 52

Which concepts does the Pre Increment use?

49 / 52

How many types are there in increment/decrement operator?

50 / 52

Which of the following constructors are provided by the C++ compiler if not defined in a class?

51 / 52

What do we need to do to pointer for overloading the subscript operator?

52 / 52

Which is used to tell the computer that where a pointer is pointing to?

Provide Your Information

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