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 Destructors are allowed in a Class?

2 / 52

What is a copy constructor?

3 / 52

Which of the following is correct?

4 / 52

What is the difference between constructors and destructors?

5 / 52

Pick out the correct statement.

6 / 52

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

7 / 52

What is the use of function call operator?

8 / 52

What is the header file for the string class?

9 / 52

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

10 / 52

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

11 / 52

How many types are there in increment/decrement operator?

12 / 52

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

13 / 52

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

14 / 52

Pick out the correct statement.

15 / 52

What is the role of a constructor in classes?

16 / 52

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

17 / 52

Pick out the correct option.

18 / 52

How many types of representation are in the string?

19 / 52

What is the use of functor?

20 / 52

What is syntax of defining a destructor of class A?

21 / 52

Pick out the correct statement.

22 / 52

Pick out the correct statement.

23 / 52

Which concepts does the Pre Increment use?

24 / 52

What will happen when the function call operator is overloaded?

25 / 52

Which operator works only with integer variables?

26 / 52

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

27 / 52

What is Character-Array?

28 / 52

When destructors are called?

29 / 52

Pick out the correct statement.

30 / 52

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

31 / 52

Which is used to do the dereferencing?

32 / 52

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

33 / 52

How many types are there in increment/decrement operator?

34 / 52

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

35 / 52

Which operator works only with integer variables?

36 / 52

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

37 / 52

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

38 / 52

Which concepts does the Pre Increment use?

39 / 52

Pick out the correct statement.

40 / 52

What does the dereference operator will return?

41 / 52

When a copy constructor is called?

42 / 52

How many parameters does a default constructor require?

43 / 52

Pick out the correct statement.

44 / 52

What is string objects in C++?

45 / 52

How destructor overloading is done?

46 / 52

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

47 / 52

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

48 / 52

What is the role of destructors in Classes?

49 / 52

Pick the incorrect statement about Character-Array.

50 / 52

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

51 / 52

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

52 / 52

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

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