
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
10 questions
Java IOStreams

Quiz
•
University
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
10 questions
JAVA I/O

Quiz
•
University
9 questions
Flussi di dati

Quiz
•
University
12 questions
Archivos en JAVA

Quiz
•
University
10 questions
Java Programming

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade