
Exception Handling & I/O Streams
Quiz
•
Computers
•
Professional Development
•
Hard
SOBHANBABU SOBHANBABU
Used 10+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
แบบทดสอบบทที่3
Quiz
•
Professional Development
10 questions
Módulo 2
Quiz
•
Professional Development
11 questions
Forms
Quiz
•
Professional Development
10 questions
c programming-Test 1
Quiz
•
Professional Development
15 questions
Latihan TIK
Quiz
•
Professional Development
10 questions
CodeMonkey Platform Management & Resources
Quiz
•
Professional Development
10 questions
Y9 App Lab Assessment
Quiz
•
Professional Development
15 questions
SIMKOM
Quiz
•
12th Grade - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
