JAVA WEEK 7-12

JAVA WEEK 7-12

University

25 Qs

quiz-placeholder

Similar activities

Kuis 1 Dasar Pemrograman

Kuis 1 Dasar Pemrograman

University

20 Qs

Bridge course with C

Bridge course with C

University

20 Qs

C++ Assesment 1

C++ Assesment 1

University

20 Qs

ARRAY

ARRAY

University

22 Qs

Control Structures  C#

Control Structures C#

University

20 Qs

PROGRAMMING CAMP

PROGRAMMING CAMP

University

20 Qs

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

EIT Quiz 2

EIT Quiz 2

University

20 Qs

JAVA WEEK 7-12

JAVA WEEK 7-12

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

KAVIARASU K

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

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

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?