Java collection quizz 2

Java collection quizz 2

Professional Development

19 Qs

quiz-placeholder

Similar activities

Q1: DATABASE SYSTEM

Q1: DATABASE SYSTEM

Professional Development

18 Qs

Cybersecurity Scenarios and Solutions

Cybersecurity Scenarios and Solutions

Professional Development

20 Qs

Quiz Penggunaan Bootstrap untuk Layout Web

Quiz Penggunaan Bootstrap untuk Layout Web

Professional Development

14 Qs

Frontend - CTO Cup

Frontend - CTO Cup

Professional Development

20 Qs

Evaluation in Java

Evaluation in Java

Professional Development

21 Qs

CSF-PT05Q1

CSF-PT05Q1

Professional Development

15 Qs

Regular Expressions

Regular Expressions

Professional Development

20 Qs

Análise do Código React Native

Análise do Código React Native

Professional Development

15 Qs

Java collection quizz 2

Java collection quizz 2

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Medium

Created by

Hoang Khoa

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Giao diện Set trong Java thuộc gói nào?

java.lang

java.io

java.awt

java.util

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

HashSet trong Java cho phép lưu trữ bao nhiêu giá trị null?

Nhiều hơn một

Không có giá trị null

Chỉ một giá trị null

Tùy thuộc vào cấu hình

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Phương thức nào sau đây được sử dụng để thêm một phần tử vào HashSet?

put()

add()

addElement()

insert()

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Điểm nào sau đây không đúng về HashSet?

HashSet cho phép các phần tử trùng lặp

HashSet sử dụng cơ chế hashing để lưu trữ

HashSet không duy trì thứ tự chèn

HashSet cho phép giá trị null

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

TreeSet trong Java không cho phép lưu trữ loại giá trị nào?

Giá trị null

Giá trị số

Giá trị chuỗi

Giá trị đối tượng

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Phương thức nào sau đây không có trong lớp HashSet?

remove()

size()

clear()

pollFirst()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Cách nào để khởi tạo một TreeSet trong Java?

Set s = new TreeSet();

TreeSet s = new TreeSet();

TreeSet s = new TreeSet<>();

Set s = new TreeSet();

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?