JAVA-Day4

JAVA-Day4

University

18 Qs

quiz-placeholder

Similar activities

Java_MCQ_3

Java_MCQ_3

University

15 Qs

Quiz #1

Quiz #1

University

13 Qs

Questionário sobre Inteligência Artificial

Questionário sobre Inteligência Artificial

University

15 Qs

Chapter 3 : SQL Command

Chapter 3 : SQL Command

University

15 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

PPL (QUIZ 6) Memory Management Quiz

PPL (QUIZ 6) Memory Management Quiz

University

20 Qs

LogoNOVA (FYIT Logo Quiz)

LogoNOVA (FYIT Logo Quiz)

University

20 Qs

 uji coba Strategi Algoritma dan Pemrograman

uji coba Strategi Algoritma dan Pemrograman

11th Grade - University

15 Qs

JAVA-Day4

JAVA-Day4

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Chitra Muthu

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which keyword is used to handle exceptions in Java?

try

throw

catch

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the purpose of the finally block in exception handling?

It executes only when an exception occurs.

It executes only if no exception occurs.

It always executes, regardless of exceptions.

It throws exceptions to the calling method.

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which keyword is used to throw an exception explicitly in Java?

throw

throws

catch

try

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is an ordered collection of elements in Java?

HashSet

TreeSet

LinkedList

HashMap

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which collection does not allow duplicate elements?

List

ArrayList

HashSet

LinkedList

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which collection uses a tree structure to store elements in a sorted order?

TreeSet

HashSet

ArrayList

LinkedList

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which class implements the Map interface using a hash table?

TreeMap

HashMap

LinkedHashMap

SortedMap

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?