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

0%
0

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

1 / 52

When a copy constructor is called?

2 / 52

How destructor overloading is done?

3 / 52

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

4 / 52

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

5 / 52

How many Destructors are allowed in a Class?

6 / 52

Which is used to do the dereferencing?

7 / 52

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

8 / 52

What is the difference between constructors and destructors?

9 / 52

What is string objects in C++?

10 / 52

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

11 / 52

What is Character-Array?

12 / 52

Pick the incorrect statement about Character-Array.

13 / 52

Pick out the correct statement.

14 / 52

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

15 / 52

Which concepts does the Pre Increment use?

16 / 52

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

17 / 52

How many types are there in increment/decrement operator?

18 / 52

Pick out the correct statement.

19 / 52

Pick out the correct option.

20 / 52

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

21 / 52

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

22 / 52

Which operator works only with integer variables?

23 / 52

What is a copy constructor?

24 / 52

How many parameters does a default constructor require?

25 / 52

What is the use of function call operator?

26 / 52

Which of the following is correct?

27 / 52

Pick out the correct statement.

28 / 52

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

29 / 52

What is the use of functor?

30 / 52

How many types of representation are in the string?

31 / 52

What is the role of a constructor in classes?

32 / 52

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

33 / 52

Pick out the correct statement.

34 / 52

What does the dereference operator will return?

35 / 52

Pick out the correct statement.

36 / 52

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

37 / 52

What is the header file for the string class?

38 / 52

Which concepts does the Pre Increment use?

39 / 52

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

40 / 52

What will happen when the function call operator is overloaded?

41 / 52

What is syntax of defining a destructor of class A?

42 / 52

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

43 / 52

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

44 / 52

How many types are there in increment/decrement operator?

45 / 52

What is the role of destructors in Classes?

46 / 52

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

47 / 52

Pick out the correct statement.

48 / 52

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

49 / 52

Pick out the correct statement.

50 / 52

When destructors are called?

51 / 52

Which operator works only with integer variables?

52 / 52

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

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