Live Help (Start Chat)
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
Which of the following is used to read or extracts the data present in the file? 
Options:
  1. Output stream
  2. Input stream
  3. Both a & b
  4. None of the above
View Answer/Explanation:
b
Explanation:
Input stream is one that supplies the data to the program, Input stream is one that reads or extracts the data present in the file.

Question No: 2 of 25
For which of the following classes fstream base class acts as a base class? 
Options:
  1. ifstream
  2. istream
  3. fstream
  4. ostream
  5. ostream
  6. streambuf
  7. ofstream
View Answer/Explanation:
a d g
Explanation:

Question No: 3 of 25
Which of the following function is used to determine whether the stream object is associated with a file? 
Options:
  1. buf
  2. string
  3. is_open
  4. None of the above
View Answer/Explanation:
c
Explanation:
is_open member function is used to determine whether the stream object is currently associated with a file.

Question No: 4 of 25
Which class is used to inherit put() function from ostream? 
Options:
  1. ifstream
  2. ofstream
  3. fstream
  4. both a & c
View Answer/Explanation:
b
Explanation:
ofstream output operations. It contains open() with default output mode.It inherits put(),seekp(),tellp() and write() functions from ostream.

Question No: 5 of 25
Ifstream contains open() with default output mode. 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:

Question No: 6 of 25
Which operator is defined in istream class? 
Options:
  1. Overloaded insertion operator
  2. Overloaded extraction operator
  3. Scope resolution operator
  4. None of the above
View Answer/Explanation:
b
Explanation:
Functions like get(), getline(), read() and overloaded extraction operator are defined in the istream class.

Question No: 7 of 25
What is the unit of data in a stream of Text? 
Options:
  1. A character
  2. A string
  3. Can be any data type
  4. Integer
View Answer/Explanation:
a
Explanation:
In a stream of text, one unit of data is one character i.e. at a time we can read or write a character or an array of characters.

Question No: 8 of 25
Binary stream is used for: 
Options:
  1. Printing output to the screen or printer
  2. Graphics or word processing documents
  3. Reading mouse-input
  4. Receiving input from the keyboard
  5. Reading & writing to the modem
  6. Embedded software
View Answer/Explanation:
b c e
Explanation:

Question No: 9 of 25
Which file supports the character translations? 
Options:
  1. Binary file
  2. Text file
  3. Both a & b
  4. None of the above
View Answer/Explanation:
b
Explanation:
A text file supports various character translations such as “\r+\f” is converted into “\n”.

Question No: 10 of 25
Which header file does not exist in the following list? 
Options:
  1. iostream.h
  2. string.h
  3. sstring.h
  4. fstream.h
View Answer/Explanation:
c
Explanation:

  1