
JAVA WEEK 7-12
Authored by KAVIARASU K
Computers
University
25 Questions

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which of these exception is thrown in cases when the file specified for writing is not found?
IOException
FileException
FileNotFoundException
FileInputException
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the purpose of a ByteArrayOutputStream in Java?
To write binary data to an output stream
To read binary data from an input stream
To convert characters to bytes
To store binary data in memory
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which method is used to read b length bytes from the input stream into an array?
public void read(int b)throws IOException{{
public int read(byte[ ] b)throws IOException{}
public void read(byte[ ] b)throws IOException{}
public int read(int b)throws IOException{}
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which method is used to create a directory with fileattributes?
Path.create()
Path.createDirectory()
Files.createDirectory(path, fileAttributes)
Files.create(fileAttributes)
5.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which class is used to write primitive data types to an output stream in Java?
DataOutputStream
ObjectOutputStream
OutputStream
PrintWriter
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
In Java, what is the purpose of a Card Layout?
To create a card game interface
To arrange components in a card-like fashion
To manage multiple panels within a single container
To display images of cards
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which layout manager divides the container into five regions: North, South, East, West, and Center?
Border Layout
Grid Layout
Flow Layout
Card Layout
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
20 questions
Control Structures C#
Quiz
ā¢
University
20 questions
QUIZ/PH1 Kelas X SMT II
Quiz
ā¢
University
20 questions
BRAIN TEASER [ROUND-1]
Quiz
ā¢
University
20 questions
Understanding Desktop Publishing
Quiz
ā¢
University
20 questions
Insert, Delete data & using Images
Quiz
ā¢
University
20 questions
Quizz Arquitectura de Computadoras I
Quiz
ā¢
University
20 questions
POO_BasicoyJava
Quiz
ā¢
University
20 questions
FREE TEST FULLSTACK PRAKTIKUM 2
Quiz
ā¢
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
ā¢
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
ā¢
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
ā¢
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
ā¢
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
ā¢
3rd Grade
14 questions
Christmas Trivia
Quiz
ā¢
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
ā¢
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
ā¢
8th Grade - Professio...
20 questions
christmas songs
Quiz
ā¢
KG - University
20 questions
Holiday Trivia
Quiz
ā¢
9th Grade - University
15 questions
Holiday Movies
Quiz
ā¢
University
14 questions
Christmas Trivia
Quiz
ā¢
3rd Grade - University
20 questions
Christmas Trivia
Quiz
ā¢
University
8 questions
5th, Unit 4, Lesson 8
Lesson
ā¢
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
ā¢
University