Input/ Output Operations

Input/ Output Operations

University

10 Qs

quiz-placeholder

Similar activities

PHẦN CỨNG 2 ( LỚP 3.2)

PHẦN CỨNG 2 ( LỚP 3.2)

1st Grade - University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Hyrje në SO

Hyrje në SO

University

10 Qs

General Ict Quiz

General Ict Quiz

4th Grade - University

15 Qs

01. Proceso de Programación de Software

01. Proceso de Programación de Software

University

10 Qs

Korbyn Reynolds

Korbyn Reynolds

7th Grade - Professional Development

10 Qs

Python List

Python List

4th Grade - University

15 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Input/ Output Operations

Input/ Output Operations

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Anika Bhardwaj

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers