This File Handling Online Test assesses knowledge on file operations in C++, covering file modes, stream types, and specific functions.
<ofstream>
<ifstream>
<fstream>
<iomanip>
Rate this question:
Ios:trunc
Ios::in
Ios::binary
Ios::ate
Rate this question:
Text
Binary
ASCII
VTC
Rate this question:
To open a file in input mode
To open a file in output mode
To truncate an existing file to half
To truncate an existing file to zero
Rate this question:
Int
Char
Float
Bool
Rate this question:
Ios:set
Ios::cur
Ios::beg
Ios::end
Rate this question:
Ios::in
Ios::out
Ios::in|ios::out
Ios::trunc
Rate this question:
Tellp()
Seekp()
Getpos()
Showpos()
Rate this question:
Tellg()
Change()
Seekg()
Getch()
Rate this question:
Ios::start
Ios::beg
Ios::cur
Ios::first
Rate this question:
Setfill()
Setw()
Setwidth()
Setheight()
Rate this question:
Creating a function without having to specify the exact type
creating a function with having an exact type
Creating a function without having blank spaces
creating a function without class
Rate this question:
Template parameters
Template type parameters
Template type
type parameters
Rate this question:
You only need to write one function, and it will work with many different types
it will take a long time to execute
Duplicate code is increased
it will take a long time to execute & duplicate code is increased
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.