Which of these is used to perform all input & output operations in Java?

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
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 Quizizz
10 questions
Core Java Quiz

Quiz
•
University
10 questions
Adv Java Quiz 1

Quiz
•
University
15 questions
Шаблоны проектирования

Quiz
•
University
10 questions
Programación 1: Examen Final Teórico

Quiz
•
University
10 questions
Inheritance

Quiz
•
University
15 questions
II CSM A & B

Quiz
•
University
10 questions
Java quiz based on inheritance

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

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade