JAVA Quiz 4

JAVA Quiz 4

Professional Development

25 Qs

quiz-placeholder

Similar activities

Sec+ | 1.4 Encryptions | 701

Sec+ | 1.4 Encryptions | 701

Professional Development

20 Qs

Unit4_Servlets_Exam1

Unit4_Servlets_Exam1

Professional Development

24 Qs

Java AWT Swings Quiz 1

Java AWT Swings Quiz 1

Professional Development

24 Qs

Interfaces Web II - 3ºBimestre

Interfaces Web II - 3ºBimestre

Professional Development

20 Qs

WCF Training Test II

WCF Training Test II

Professional Development

20 Qs

Java Fundamentals

Java Fundamentals

Professional Development

20 Qs

Pre-Assessment: Java Basics

Pre-Assessment: Java Basics

Professional Development

20 Qs

3TH sem GAT 2023

3TH sem GAT 2023

Professional Development

22 Qs

JAVA Quiz 4

JAVA Quiz 4

Assessment

Quiz

Computers

Professional Development

Medium

Created by

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?