
Java Stream API Quiz
Authored by Hoang Khoa
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Mục đích chính của Stream API trong Java là gì?
Để xử lý các tập hợp đối tượng
Để tạo ra các cấu trúc dữ liệu mới
Để xử lý ngoại lệ
Để quản lý phân bổ bộ nhớ
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Trong số các lựa chọn sau, lựa chọn nào KHÔNG phải là một thao tác kết thúc trong Stream API?
collect()
reduce()
filter()
forEach()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Phương thức filter() trong Stream làm gì?
Thu thập các phần tử vào một danh sách
Lọc các phần tử dựa trên một điều kiện
Chuyển đổi các phần tử
Sắp xếp các phần tử
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Phương pháp nào được sử dụng để tạo một Stream từ một mảng?
Stream.fromArray()
Stream.of()
Arrays.stream()
Stream.create()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Kết quả của việc sử dụng phương thức distinct() trên một Stream là gì?
Nó trả về một Stream đã được sắp xếp
Nó trả về một Stream với các phần tử duy nhất
Nó lọc các phần tử dựa trên một điều kiện
Nó thu thập các phần tử vào một danh sách
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Ví dụ nào sau đây là một phép toán trung gian?
map()
collect()
reduce()
forEach()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Phương thức sorted() trong một Stream làm gì?
Xóa các phần tử trùng lặp
Tập hợp các phần tử vào một danh sách
Sắp xếp các phần tử theo thứ tự tự nhiên
Lọc các phần tử dựa trên một điều kiện
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
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...