quiz2

quiz2

University

15 Qs

quiz-placeholder

Similar activities

Word Processing Lesson 1 and 2 Review

Word Processing Lesson 1 and 2 Review

KG - University

20 Qs

Final Keamanan Komputer / Sistem Keamanan Jaringan

Final Keamanan Komputer / Sistem Keamanan Jaringan

University

11 Qs

Nmap Options, Host Discovery, and Port Scanning

Nmap Options, Host Discovery, and Port Scanning

6th Grade - University

16 Qs

IWP Digital Assignment 3

IWP Digital Assignment 3

University

15 Qs

AP CSP Review

AP CSP Review

9th Grade - University

14 Qs

Tech Together Tuesday: Google Sheets

Tech Together Tuesday: Google Sheets

4th Grade - Professional Development

20 Qs

Excel Basics for PYP 4

Excel Basics for PYP 4

4th Grade - University

20 Qs

Java IOStreams

Java IOStreams

University

10 Qs

quiz2

quiz2

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?