Source Files, Classes and Operator Overloading in C++ Quiz 3
1 / 52
What is string objects in C++?
2 / 52
Which function is used to get the length of a string object?
3 / 52
What is the header file for the string class?
4 / 52
How many arguments will the subscript operator will take for overloading?
5 / 52
What is the use of function call operator?
6 / 52
When destructors are called?
7 / 52
What is the identifier given to string class to declare string objects?
8 / 52
How many types are there in increment/decrement operator?
9 / 52
How many types of constructors are there in C++?
10 / 52
Pick out the correct option.
11 / 52
How destructor overloading is done?
12 / 52
Which header file is used to include the string object functions in C++?
13 / 52
Which operator works only with integer variables?
14 / 52
Which of the following is not a modifier function in string class?
15 / 52
What is the use of functor?
16 / 52
In which form does the function call operator can be overloaded?
17 / 52
How constructors are different from other member functions of the class?
18 / 52
Pick out the correct statement.
19 / 52
Which is used to return the number of characters in the string?
20 / 52
21 / 52
22 / 52
How many parameters does a default constructor require?
23 / 52
24 / 52
What is Character-Array?
25 / 52
26 / 52
27 / 52
Which concepts does the Pre Increment use?
28 / 52
What will happen when the function call operator is overloaded?
29 / 52
Which of the following constructors are provided by the C++ compiler if not defined in a class?
30 / 52
Which is used to do the dereferencing?
31 / 52
What happens if a user forgets to define a constructor inside a class?
32 / 52
Pick the incorrect statement about Character-Array.
33 / 52
How many Destructors are allowed in a Class?
34 / 52
What do we need to do to pointer for overloading the subscript operator?
35 / 52
How many types of representation are in the string?
36 / 52
37 / 52
What is syntax of defining a destructor of class A?
38 / 52
Which of the following is correct?
39 / 52
40 / 52
41 / 52
Pick the correct statement about string objects in C++.
42 / 52
Which is used to tell the computer that where a pointer is pointing to?
43 / 52
What does the dereference operator will return?
44 / 52
What is the role of destructors in Classes?
45 / 52
Why constructors are efficient instead of a function init() defined by the user to initialize the data members of an object?
46 / 52
What is the role of a constructor in classes?
47 / 52
What is the difference between constructors and destructors?
48 / 52
49 / 52
Which method do we use to append more than one character at a time?
50 / 52
When a copy constructor is called?
51 / 52
What do we need to use when we have multiple subscripts?
52 / 52
What is a copy constructor?
Provide Your Information
Your score is
The average score is 0%
Restart quiz