Java I/O Streams

Java I/O Streams

University

30 Qs

quiz-placeholder

Similar activities

IT Fundamentals Chapter 1

IT Fundamentals Chapter 1

9th Grade - University

25 Qs

PLD_Prelim Quiz

PLD_Prelim Quiz

University - Professional Development

25 Qs

JAVA WEEK 7-12

JAVA WEEK 7-12

University

25 Qs

Fun Java Final Assignment

Fun Java Final Assignment

University

30 Qs

Java Review

Java Review

9th Grade - University

25 Qs

Computer System

Computer System

12th Grade - University

31 Qs

QUIZ02

QUIZ02

University

27 Qs

Introduction to Java

Introduction to Java

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?