BPSC TRE – Java Programming & OOP Concepts | Test 2

Questions 31-35 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 31

MCQ · Single Correct 1 mark

Which stream operation in Java 8 is used to flatten a stream of collections (e.g. Stream<List<String>>) into a single un-nested stream (Stream<String>)?

Answers for question 31

Question 32

MCQ · Single Correct 1 mark

Which functional interface in java.util.function accepts two arguments of types T and U and produces a result of type R?

Answers for question 32

Question 33

MCQ · Single Correct 1 mark

Which functional interface in java.util.function takes a single argument of type T and returns a boolean value?

Answers for question 33

Question 34

MCQ · Single Correct 1 mark

Which functional interface in java.util.function accepts no arguments and produces a result of type T?

Answers for question 34

Question 35

MCQ · Single Correct 1 mark

Which functional interface in java.util.function accepts a single argument of type T and returns no result (void return)?

Answers for question 35
Scroll to Top