
Input/ Output Operations

Quiz
•
Computers
•
University
•
Hard
Anika Bhardwaj
Used 3+ times
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
11 questions
Arduino Quiz

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

Quiz
•
University
10 questions
Algorithm, Pseudocode and Flowchart

Quiz
•
University
10 questions
Lat soal 1 Komp Masy

Quiz
•
University
13 questions
CSE_A1_QUIZ 6(15-05-23)

Quiz
•
University
15 questions
Pengantar Teknologi Informasi 1

Quiz
•
University
15 questions
Input and Output Devices Quiz

Quiz
•
11th Grade - University
10 questions
Soal Pilihan Ganda Informatika

Quiz
•
8th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University