Java I/O Streams

Java I/O Streams

University

30 Qs

quiz-placeholder

Similar activities

Computer Pretest2(Arduino Grade8_t1)

Computer Pretest2(Arduino Grade8_t1)

3rd Grade - University

25 Qs

DAT10803 Attendance Quiz Section 5

DAT10803 Attendance Quiz Section 5

University

25 Qs

Pemrograman Berorientasi Objek

Pemrograman Berorientasi Objek

University

26 Qs

COMP1: Quiz No. 1

COMP1: Quiz No. 1

University

25 Qs

Intro to Programming

Intro to Programming

12th Grade - University

25 Qs

Petruk Kelas R - Kuis 1

Petruk Kelas R - Kuis 1

University

30 Qs

Java Programming Quiz

Java Programming Quiz

University

26 Qs

MSS FORM ONE COURSE WORK 1 2025

MSS FORM ONE COURSE WORK 1 2025

9th Grade - University

25 Qs

Java I/O Streams

Java I/O Streams

Assessment

Quiz

Computers

University

Hard

Created by

A Vijay Kumar

Used 62+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a type of stream in Java?

Integer stream

Short stream

Byte stream

Long stream

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is used to read a string from the input stream?

get()

getLine()

read()

readLine()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is used to read characters and strings in Java from console?

BufferedReader

StringReader

BufferedStreamReader

InputStreamReader

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class contains the methods print() & println()?

System

System.out

BufferedOutputStream

PrintStream

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

……………………. class is used to increase the efficiency of input operations.

DataInputStream

FileInputStream

BufferedInputStream

PipeInputStream

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A stream is a sequence of data.In Java a stream is composed of?

Bytes

Bits

Both A & B

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These commonly used methods of


1) public abstract int read()throws IOException

2) public int available()throws IOException

3) public void close()throws IOException

OutputStream class

InputStream class

Input/OutputStream class

None of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?