
JAVA Quiz 4

Quiz
•
Computers
•
Professional Development
•
Medium

Nitin Gupta
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
City & Guilds Level 3 Apprenticeship Coding and Logic

Quiz
•
Professional Development
20 questions
CySa+ PT 4: 2/3

Quiz
•
9th Grade - Professio...
30 questions
Java Quiz 2- Classes, Collections, Threads

Quiz
•
Professional Development
29 questions
PC FE Quiz

Quiz
•
Professional Development
25 questions
Playwright Quiz 1

Quiz
•
Professional Development
26 questions
UD1. Características de los lenguajes de marcas

Quiz
•
Professional Development
20 questions
SPBE cybersecurity

Quiz
•
Professional Development
20 questions
Synergy BCA | Chapter 5

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development