Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Fill up the blanks in C++ – (SET-X)

Fill up the blanks in C++ – (SET-X)

February 19, 2021 Comments Off on Fill up the blanks in C++ – (SET-X) By MANOJ AGARWAL


Fill up the blanks in C++

( SET – X )

1. close() 2. scientific 3. seekg()
4. clear() 5. tally() 6. heap
7. reference 8. void pointer 9. asterisk(*)
10. typedef 11. ifstream 12. null character
13. overloaded 14. ios::nocreate 15. tellp()
16. bitwise AND 17. ofstream 18. int pointer
19. virtual 20. anonymous union 21. static
22. getline() 23. ios::noreplace 24. seekp()
25. bitwise OR 26. resetf() 27. null pointer



1. The class ………………….. is used to create the output stream.

2. If file mode parameter is specified as ………………………, the open operation fails if the file already exists.

3. The file mode can combine two or more parameters using ………………… operator.

4. In C++, void pointer can be assigned only to a …………………..

5. The member function ……………………. closes a file that has been opened for file processing.

6. The ……………….. function reads a line terminating with a newline character.

7. The flag ………………… in iostream formats floating point values in scientific form.

8. …………………… moves the get pointer to a specified location.

9. ………………….. gives the current position of the put pointer.

10. The ……………….. and ……………. functions handle the data in binary form.

11. The function ……………….. resets the error state.

12. …………………… function returns true when an input or output operation has failed.

13. ………………….. is an unnamed union in C++.

14. Free store is also referred to as …………………..

15. In C++, the redirection operator is …………………..

16. The …………………. is used for terminating strings.

17. A …………………. is an alias for a variable.

18. To specify a new name to the data type ……………… keyword is used.

19. ……………………. functions implement polymorphism.

20. ……………………. is a pointer that does not point to any data object.



ANSWERS TO FILL UP THE BLANKS

(SET-X)

1.  ofstream                       2.  ios::noreplace   3.  bitwise OR

4.  void pointer                  5.  close()              6.  getline()

7.  scientific                       8.  seekg()             9.  tellp()

10.  write(), read()              11.  clear()            12.  fail()

13.  Anonymous union        14.  heap              15.  asterisk (*)

16.  null character              17.  reference        18.  typedef

19. virtual                          20.  null pointer

Comments are closed
x Close

Like Us On Facebook

You cannot copy content of this page.