Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Study Set 1
Quiz 17: Lambdas and Streams
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Which of the following statements is false?
Question 2
Multiple Choice
The basic generic functional interface ________ in package java.util.function contains method get that takes no arguments and returns a value of type T.
Question 3
Multiple Choice
Class IntStream provides terminal operations for common stream ________-count returns the number of elements, min returns the smallest int, max returns the largest int, sum returns the sum of all the ints and average returns an OptionalDouble (package java.util) containing the average of the ints as a value of type double.
Question 4
Multiple Choice
You can define your own reductions for an IntStream by calling its ________ method. The first argument is a value that helps you begin the reduction operation and the second argument is an object that implements the IntBinaryOperator functional interface.
Question 5
Multiple Choice
Which of the following statements is false?
Question 6
Multiple Choice
Which of the following statements is false?
Question 7
Multiple Choice
The basic generic functional interface ________ in package java.util.function contains method test that takes a T argument and returns a boolean. Tests whether the T argument satisfies a condition.
Question 8
Multiple Choice
IntStream method ________ (a terminal operation) performs a task on each stream element.
Question 9
Multiple Choice
An________ (package java.util.stream) is a stream that manipulates int values.
Question 10
Multiple Choice
IntStream method ________ performs the count, min, max, sum and average operations in one pass of an IntStream's elements and returns the results as an IntSummaryStatistics object (package java.util) .
Question 11
Multiple Choice
Which of the following statements is false?
Question 12
Multiple Choice
The basic generic functional interface ________ in package java.util.function contains method get that takes no arguments and produces a value of type T. Often used to create a collection object in which a stream operation's results are placed.