
quiz2

Quiz
•
Computers
•
University
•
Hard

sarala vinayagam
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of the following is NOT a characteristic of Java Streams?
Option_a: Immutable
Option_b: Lazy evaluation
Option_c: Parallelizable
Option_d: Modifiable
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which method is used to create a sequential stream from a collection in Java?
Option_a: Stream.of()
Option_b: stream()
Option_c: parallelStream()
Option_d: toStream()
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
In a Stream pipeline, which operation must be terminal?
Option_a: filter()
Option_b: map()
Option_c: reduce()
Option_d: flatMap()
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which functional interface is used for the filter operation in a Stream pipeline?
Option_a: Consumer
Option_b: Predicate
Option_c: Supplier
Option_d: Function
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of these is a primitive variant of the Consumer functional interface?
Option_a: IntFunction
Option_b: IntSupplier
Option_c: IntConsumer
Option_d: IntPredicate
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What does the BiFunction interface represent?
Option_a: A function that takes one argument and returns a result
Option_b: A function that takes two arguments and returns a result
Option_c: A function that takes three arguments and returns a result
Option_d: A function that takes two arguments and returns no result
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which stream operation is used to perform filtering of elements?
Option_a: filter()
Option_b: map()
Option_c: collect()
Option_d: reduce()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Test Automation

Quiz
•
University
12 questions
Archivos en JAVA

Quiz
•
University
15 questions
Microsoft Word - Shortcut Keys

Quiz
•
4th Grade - University
10 questions
Pertemuan 4_PSI

Quiz
•
University
15 questions
MS Paint Quiz Ch6

Quiz
•
3rd Grade - University
14 questions
Java Reactive Programming: Test Your FlatMap Knowledge

Quiz
•
University
10 questions
Cloud Computing

Quiz
•
University
10 questions
Cloud Computing

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University