
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
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 Quizizz
20 questions
java revews

Quiz
•
Professional Development
20 questions
Pre-Assessment: Java Basics

Quiz
•
Professional Development
20 questions
Sec+ | 1.4 Encryptions | 701

Quiz
•
Professional Development
22 questions
3TH sem GAT 2023

Quiz
•
Professional Development
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
24 questions
Unit4_Servlets_Exam1

Quiz
•
Professional Development
20 questions
Assessment 1

Quiz
•
Professional Development
20 questions
Advanced JavaScript

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade