Exception Handling & I/O Streams

Exception Handling & I/O Streams

Professional Development

10 Qs

quiz-placeholder

Similar activities

Câu hỏi ôn tập HKII_Tin học 6

Câu hỏi ôn tập HKII_Tin học 6

8th Grade - Professional Development

11 Qs

04 JavaScript Einführung

04 JavaScript Einführung

Professional Development

10 Qs

JAVA Quiz

JAVA Quiz

Professional Development

10 Qs

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

POO - P2

POO - P2

Professional Development

10 Qs

Python Collections Quiz

Python Collections Quiz

Professional Development

12 Qs

introduction to visual programming

introduction to visual programming

Professional Development

8 Qs

Deci- Session 1- Time Machine

Deci- Session 1- Time Machine

Professional Development

12 Qs

Exception Handling & I/O Streams

Exception Handling & I/O Streams

Assessment

Quiz

Computers

Professional Development

Hard

Created by

SOBHANBABU SOBHANBABU

Used 10+ 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

45 sec • 1 pt

What is Stream

It is a sequence of Bytes

It is flow of input data

It a flow of only output data

It is not related to Java

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many Streams are there in JAVA

2

3

8

1

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code:

import java.io.*;

class File1

{

static public void main(String...args)

{

FileOutputStream f=new FileOutputStream("gec.txt");

f.write(67);

f.close();

}}

This program writes ASCII character into file

Compile time error

Runtime error

This program writes 67 into file

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code:

class A

{

void display() throws IOException

{

System.out.println("I am class A");

}

static public void main(String...args)

{

A r=new A();

r.display();

}}

Compile time error

Runtime error

I am class A

either compile time or runtime error

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Predict the output of the following code:

class A

{

public static void main(String...args)

{

try{

System.out.println(23/0);

}

catch(Exception e){

System.out.print("hai it is an error");

}

catch(Throwable e)

{

System.out.print("hello it is an error ");

}}}

hai it is an error

hello it is an error

compile time error

runtime error

both hai it is an error and hello it is an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Streams are belongs to

import java.io.*;

import java.lang.*;

import java.util.*

import java.awt.*;

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Reader and Writer classes belongs to

Byte Streams

Character Streams

InputStream

OutputStream

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

Already have an account?