Foxoyo
Hey..!!
Input Output Streams
  Practice
MCQs
Quizzes
About
Leaderboard
Amazon Books
26
MCQs
0
Attempts
0 %
Accuracy
share
Filter by
Type here
Apply
Which of these classes are used by character streams output operations
Writer
InputOutputStream
ReadStream
InputStream
Which of these method of class StringBuffer is used to reverse sequence of characters
reverseall()
reverse()
Which of these class is used to read characters and strings in Java from console
InputStreamReader
BufferedStreamReader
BufferedReader
StringReader
Which of these class is used to read from byte array
BufferedInputStream.
ArrayInputStream.
InputStream.
ByteArrayInputStream.
Which of these classes are used by character streams for input and output operations
Writer
InputStream
ReadStream
InputOutputStream
Which of these classes are used by Byte streams for input and output operation
All of the mentioned
InputOutputStream
Reader
InputStream
Which of these is a type of stream in Java
Long stream
Short stream
Integer stream
Byte stream
Pick out the correct objects about the instantiation of output stream
All of the mentioned
clog
cout
cerr
How many parameters are there in getline function
3
2
4
1
Which exception is thrown by read() method
InterruptedException
SystemException
SystemInputException
IOException
When will the cin can start proceessing of input
BY pressing blankspace
After pressing return key
Both A & B
none of the mentioned
Which of the following statement is correct
reverseall() method reverses all characters.
reverse() method reverses all characters.
replace() method replaces last occurrence of a character in invoking string with another character.
What can be used to input a string with blankspace
inline
putline
getline
none of the mentioned
How many types of output stream classes are there in c++
4
1
3
2
Which of these is used to perform all input & output operations in Java
Classes
variables
streams
Methods
Which of these class is used to create an object whose character sequence is mutable
String()
none of the mentioned
StringBuffer()
Both of the mentioned
Which of these is used to read a string from the input stream
read()
get()
getLine()
readLine()
What is the output of this program?#include
using namespace std;int main( ){char line[100];cin.
getline( line, 100, 't' );cout
none of the mentioned
T
It will print what we give.
100
What is meant by ofstream in c++
none of the mentioned
Both A & B
Writes to a file
Reads from a file
What is the output of this program?#include
using namespace std;int main () {char str[] = "Steve jobs";int val = 65;char ch = 'A';cout.
width
(5);cout
5
65
Steve Jobs
A
1
2
Next
take a quick Quiz
Practice mcqs on Input Output Streams
Let's start
pick difficulty level
all
1
2
3
4
5
26
Mcqs
0
attempts
0
followers
Related Topics
Input Output Streams
Standard Input and Output
Input Output
Boats and Streams
Sequential Output Training
Suggested Books