Fill in the blanks questions with answer of C++| C++ Fill in the blanks Questions with Answer

1. C++ is an ____________ language.

Answer: object-oriented programming

2. C++ language is case _______________

Answer: sensitive

3. _________________ header file contains necessary declarations for input/ output in C++.

Answer: iostream

4. ___________ is used for input in C++.

Answer: cin

5. ______ is a predefined object that represents the standard output stream in C++.

Answer: cout

6. The operator _______________________ is called the insertion or put-to operator.

Answer: << (insertion operator)

7. The << is _____________ operator.

Answer: insertion

8. A class declaration ends with a ________________.

Answer: semicolon

9. A _________ is a sequence of characters surrounded by double quotes.

Answer: string

10. The smallest individual unit in a program is known as a ____________.

Ans: Token

11. The ________________ is an assignment operator.

Answer:   =

12. The % is called ____________ .

Answer: Modulus Operator

13. The _____________ statement is used to make decisions.

Answer: conditional

14. Every C++ program begins execution at the function ____________

Answer: main ()

15. Every C++ statement ends with an _______________

Answer:  semicolon (;)

16. The array elements must be of the _________ data type.

Answer: same

17. If the maximum subscript value of an array is 9, then the size of the array is _______________

Answer: 10

18. A ___________ is a data type to define heterogeneous set of data types.

Answer: structure

19. An object is an _______________ of class.

Answer: instance

20. Constructors are used to ________________ the data members automatically, whenever an object of a class is instantiated.

Answer: initialize

Leave a Comment