
JAVA Quiz 4
Authored by Nitin Gupta
Computers
Professional Development
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are lambda expressions denoted in Java?
A. =>
B. ->
C. <>
D. ::
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of Java 8 lambda expressions, what is a target type?
A. The type of the lambda expression
B. The type of the functional interface
C. The type of the argument
D. The return type of the lambda expression
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Predicate functional interface in Java 8?
A. To produce results
B. To consume values
C. To transform values
D. To filter elements based on a condition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q. Which of the following represents a Lambda Expression in Java?
A.
(int a, int b) -> a + b
B.
public int add(int a, int b) { return a + b; }
C.
(a, b) => a + b
D.
int sum = (x, y) -> x + y;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these classes is not part of Java’s collection framework?
a) Array
b) Maps
c) Stack
d) Queue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Collection in Java?
a) A group of classes
b) A group of
objects
c) A group of interfaces
d) None of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following-
a) 12885
b) 58881
c) 12845
d) 54881
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
20 questions
JavaScript
Quiz
•
Professional Development
20 questions
¿Cuánto sabes de comercio electrónico?
Quiz
•
Professional Development
20 questions
Advance Ms-Word
Quiz
•
10th Grade - Professi...
20 questions
Banco de Dados
Quiz
•
University - Professi...
20 questions
Nest JS - Parte 01
Quiz
•
Professional Development
20 questions
Tout savoir sur WINDOWS Quizz 1
Quiz
•
Professional Development
20 questions
ข้อสอบกลางภาควิชาเทคโนโลยี 3 ม.5
Quiz
•
Professional Development
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
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 Computers
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...