Programming Standard Input

Programming Standard Input

University

10 Qs

quiz-placeholder

Similar activities

Bab 4 Perangkat Keras

Bab 4 Perangkat Keras

7th Grade - University

13 Qs

Javascript

Javascript

University

12 Qs

The AI Shield

The AI Shield

University

15 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

Шаблоны проектирования

Шаблоны проектирования

University

15 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

nestedif _ And _ Or

nestedif _ And _ Or

University

10 Qs

Programming Standard Input

Programming Standard Input

Assessment

Quiz

Computers

University

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?