UNIT-4-2

UNIT-4-2

University

15 Qs

quiz-placeholder

Similar activities

Android Fundamentals - Day 1: Java

Android Fundamentals - Day 1: Java

University - Professional Development

10 Qs

Java Quiz

Java Quiz

University

10 Qs

Examen Unidad VI. Archivos

Examen Unidad VI. Archivos

University

10 Qs

Java Programming

Java Programming

University

10 Qs

JAVA I/O

JAVA I/O

University - Professional Development

10 Qs

JAVA I/O

JAVA I/O

University

10 Qs

Archivos en JAVA

Archivos en JAVA

University

12 Qs

Programming Standard Input

Programming Standard Input

University

10 Qs

UNIT-4-2

UNIT-4-2

Assessment

Quiz

Created by

N.ILAYARAJA IT

Computers

University

Hard

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the java.io package?

To perform network communications

To create graphical user interfaces

To manage database connections

To handle input and output operations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is used for byte-oriented data input?

Reader

OutputStream

InputStream

Writer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does System.out refer to in Java?

Standard error stream

Standard output stream

Standard input stream

File output stream

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to read a line of text from the console using BufferedReader?

read()

getLine()

readLine()

nextLine()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default delimiter used by the Scanner class?

Tab

Newline

Space

Comma

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is used to write text data efficiently to a file?

PrintStream

BufferedWriter

Scanner

FileReader

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of stream is System.in?

FileReader

InputStream

PrintStream

BufferedReader

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?