Programming Standard Input

Quiz
•
Computers
•
University
•
Hard
Thomas Martinez
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these is used to perform all input & output operations in Java?
streams
Variables
classes
Methods
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these is a type of stream in Java?
Integer stream
Short stream
Byte stream
Long stream
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these classes are used by Byte streams for input and output operation?
InputStream
InputOutputStream
Reader
All of the mentioned
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these classes are used by character streams for input and output operations?
InputStream
Writer
ReadStream
InputOutputStream
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these class is used to read from byte array?
InputStream
BufferedInputStream
ArrayInputStream
ByteArrayInputStream
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program if input given is ‘abcqfghqbcd’?
class Input_Output
{
public static void main(String args[]) throws IOException {
char c;
BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
do {
c = (char) obj.read();
System.out.print(c);
}
while(c != 'q');
} }
abcqfgh
abc
abcq
abcqfghq
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program if input given is “abc’def/’egh”?
class Input_Output {
public static void main(String args[]) throws IOException {
char c;
BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
do {
c = (char) obj.read();
System.out.print(c);
}
while(c!='\'');
}
}
abc’
abcdef/’
abc’def/’egh
abcqfghq
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Hadoop

Quiz
•
University
10 questions
Java quiz based on inheritance

Quiz
•
University
10 questions
Unidad 4 - Usando el Java API Library

Quiz
•
University
10 questions
Core Java Quiz

Quiz
•
University
15 questions
UNIT-4-2

Quiz
•
University
13 questions
OCR A Level Computer Science (H446) - Component 1.1.3 - Input, Output and Storage

Quiz
•
9th Grade - University
10 questions
Input/ Output Operations

Quiz
•
University
15 questions
II CSM A & B

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade