Lambda expressions, few more things

Lambda expressions, few more things

Professional Development

43 Qs

quiz-placeholder

Similar activities

OH MY ECMA

OH MY ECMA

University - Professional Development

44 Qs

SOLECITO

SOLECITO

Professional Development

40 Qs

Core Java Concepts Quiz (1)

Core Java Concepts Quiz (1)

Professional Development

48 Qs

5to A Lenguajes de programación

5to A Lenguajes de programación

Professional Development

39 Qs

Prueba inicial segundo DAW/ASIR

Prueba inicial segundo DAW/ASIR

Professional Development

40 Qs

Deadlock - Part 2

Deadlock - Part 2

Professional Development

40 Qs

47.Test doPost

47.Test doPost

Professional Development

48 Qs

Java Feature

Java Feature

Professional Development

42 Qs

Lambda expressions, few more things

Lambda expressions, few more things

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to add multiple statements in a lambda expression in Java?
You cannot add multiple statements in a lambda expression
By separating statements with a comma
By enclosing the statements in curly braces { }
By using semicolons to separate statements

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can a lambda expression have multiple expressions?
Yes, as many as you want
No, lambda expressions can only have one expression
Only if they are of the same type
Only if the expressions are related

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the three things that a lambda expression contains?
Arguments, body, and return type
Parameters, logic, and type
Inputs, operation, and output
Variables, code, and result

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the three main parts of a lambda expression in Java?
Parameters, body, and return type
Variables, logic, and type
Inputs, operation, and output
Arguments, code block, and result

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to add multiple string values in Java?
Use the + operator
Use the concat() method
Use the append() method
Use the join() method

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you add multiple values to a variable in Java?
By using a loop
By assigning each value one by one
By using the += operator
By using the add() method

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can a lambda have multiple inputs?
No, lambdas can only have one input
Yes, lambdas can have multiple inputs separated by commas
Only if the inputs are of the same data type
Only if the inputs are integers

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?