placeholder image to represent content

DATA FILE HANDLING USING C++

Quiz by Kiran Kumari K

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
8 questions
Show answers
  • Q1
    By default, all the files are opened in ___________mode .
    Ate
    Text
    Dat
    Binary
    30s
  • Q2
    It is not possible to combine two or more file opening mode in open () method.
    False
    True
    30s
  • Q3
    Which of the following is not a file opening mode ____ .
    ios::nocreate
    ios::noreplace
    ios::truncate
    ios::ate
    30s
  • Q4
    Due to ios::trunc mode, the file is truncated to zero length.
    True
    False
    30s
  • Q5
    If we have object from ofstream class, then default mode of opening the file is _____ .
    ios::out
    ios::in
    ios::out|ios::trunk
    ios::in|ios::app
    30s
  • Q6
    To create an output stream, we must declare the stream to be of class ___________ .
    iofstream
    ofstream
    ifstream
    30s
  • Q7
    Streams that will be performing both input and output operations must be declared as class _________ .
    stdstream
    Stdiostream
    iostream
    fstream
    30s
  • Q8
    To perform File I/O operations, we must use _____________ header file.
    ofstream
    ifstream
    fstream
    30s

Teachers give this quiz to your class