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 representation are in the string?

2 / 52

What is a copy constructor?

3 / 52

Pick out the correct statement.

4 / 52

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

5 / 52

What is Character-Array?

6 / 52

Pick out the correct statement.

7 / 52

What is the difference between constructors and destructors?

8 / 52

What is string objects in C++?

9 / 52

When a copy constructor is called?

10 / 52

Which concepts does the Pre Increment use?

11 / 52

Pick the incorrect statement about Character-Array.

12 / 52

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

13 / 52

Pick out the correct option.

14 / 52

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

15 / 52

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

16 / 52

How destructor overloading is done?

17 / 52

Which is used to do the dereferencing?

18 / 52

How many types are there in increment/decrement operator?

19 / 52

What is the header file for the string class?

20 / 52

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

21 / 52

When destructors are called?

22 / 52

Pick out the correct statement.

23 / 52

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

24 / 52

How many parameters does a default constructor require?

25 / 52

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

26 / 52

Pick out the correct statement.

27 / 52

Which operator works only with integer variables?

28 / 52

Pick out the correct statement.

29 / 52

What is syntax of defining a destructor of class A?

30 / 52

Which of the following is correct?

31 / 52

Pick out the correct statement.

32 / 52

What is the role of a constructor in classes?

33 / 52

How many types are there in increment/decrement operator?

34 / 52

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

35 / 52

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

36 / 52

What is the role of destructors in Classes?

37 / 52

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

38 / 52

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

39 / 52

What is the use of functor?

40 / 52

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

41 / 52

Which concepts does the Pre Increment use?

42 / 52

How many Destructors are allowed in a Class?

43 / 52

Pick out the correct statement.

44 / 52

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

45 / 52

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

46 / 52

What does the dereference operator will return?

47 / 52

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

48 / 52

Which operator works only with integer variables?

49 / 52

What will happen when the function call operator is overloaded?

50 / 52

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

51 / 52

What is the use of function call operator?

52 / 52

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

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