C++ Question Answers
C++ Question Answers
In C++, we can give several meanings to an operator, depending upon the types of arguments used, which was
known as …………..
A) i and ii only B) ii and iiii only C) i and iv only D) iii and iv only
A) : : B) : : * C) _>* D) . *
5. A major application of the ………………… operator is in the classes to identify the class to which a member function
belongs.
6. ……………….. operator is used to access a member using a pointer to the object and a pointer to that member.
A) : : B) : : * C) _>* D) . *
A) : : B) : : * C) _>* D) . *
8. The ………………. operator allocates sufficient memory to hold a data object type data type and returns the address of
the object.
10. The ……………… operator automatically returns the correct pointer type, so that there is no need to use a type cast.
11. The …………….. manipulator is used in an output statement which causes a linefeed to be inserted.
12. Which of the following is/are the new cast operators used in C++.
A) i, ii and iii only B) ii, iii and iv only C) i, iii and iv only D) All i, ii, iii and iv
13. A/An …………………. is a combination of operator, constants and variables arranged as per the rules of the language.
i) constant expressions ii) integral expressions iii) float expressions iv) null expressions
A) i, ii and iii only B) ii, iii and iv only C) i, iii and iv only D) All i, ii, iii and iv
15. ……………………. produce results of type bool which takes a value true or false.
16. ……………… combine to or more relational expressions and produces bool type results.
17. The ………………… is an entry-enrolled loop and is used when an action is to be repeated for a predetermined
number of times.
18. The ………………….. is an exit-enrolled loop where the control is transferred back to a particular point in the program.
19. The ………………… is a multiple-branching statement where, based on a condition, the control is transferred to one
of the many possible points.
20. The operator ………………… is known as a compound assignment or short-hand assignment operator.
A) = B) = = C) += = D) +=