Programming - Input and Output
You Are Here :: Home > JAVA > Input and Output - General Questions
1. |
What is Stream?
|
A. |
flow of data |
B.
|
collection of data |
C.
|
both a and b
|
D.
|
none
|
|
Answer: Option A
Explanation:
Stream represents flow of data from one place to another place. |
|
2. |
How many types of streams?
|
A. |
one |
B.
|
two |
C.
|
three
|
D.
|
none
|
|
Answer: Option B
Explanation:
There are two kinds of Streams. |
|
3. |
What is input stream?
|
A. |
reads data |
B.
|
writes data |
C.
|
moving data
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
Input stream is reads(or)recieves the data |
|
4. |
What is output stream?
|
A. |
recieves data |
B.
|
sends data |
C.
|
both a and b
|
D.
|
none
|
|
Answer: Option B
Explanation:
Output stream sends(or)writes data to some other place. |
|
5. |
In Java.io.package streams are represented by______________.
|
A. |
objects |
B.
|
strings |
C.
|
classes
|
D.
|
none
|
|
Answer: Option C
Explanation:
In Java.io.package streams are represented by classes. |
|
6. |
Which type of messages display's the system.out()?
|
A. |
normal messages and results |
B.
|
special messages and results |
C.
|
error messages and results
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
system.out() is used to display normal messages and results. |
|
next »