Search Header Logo

Week 13 - Quizz

Authored by IO IO

Computers

Professional Development

Used 9+ times

Week 13 - Quizz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

COLLECTIONS FRAMEWORK
Between ArrayList and LinkedList, which collection would you choose for fast random access to elements?

ArrayList

LinkedList

2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

COLLECTIONS FRAMEWORK
What is the primary characteristic of a HashMap in Java?

It sorts the keys in natural order.

It allows duplicate keys.

It maintains the order of its keys in the order they were inserted.

It provides constant-time performance for basic operations (get and put).

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

OBJECTS
Which of the following statements is true about the relationship between equals() and hashCode()?

hashCode() and equals() are independent and do not affect each other.

Two objects with the same hash code must be equal.

Two objects that are equal must have the same hash code.

If two objects are unequal according to the equals() method, they must have the same hashCode().

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

EXCEPTIONS

Which of the following is a checked exception?

NullPointerException

IOException

ArithmeticException

ArrayIndexOutOf
BoundsException

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

I/O STREAMS
Which class should be used to improve the performance of character input stream?

BufferedReader

FileReader

FileInputStream

InputStreamReader

6.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

NETWORKING
What identifies a running process in a machine and helps direct network traffic to it?

Port Number

IP Address

MAC address

Ethernet Frame

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

NETWORKING
What is the primary advantage of using UDP over TCP?

Reliable delivery

Faster data transmission

Data encryption

Data recovery features

Access all questions and much more by creating a free account

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?