Recitation

Recitation

University

7 Qs

quiz-placeholder

Similar activities

Additional Excercise (Network Layer) - Router, IPv4 and IPv6

Additional Excercise (Network Layer) - Router, IPv4 and IPv6

University

12 Qs

ROUND 2

ROUND 2

University

10 Qs

CNTT

CNTT

University

10 Qs

Servlets & JSP

Servlets & JSP

University

10 Qs

MS Excel - Day 04

MS Excel - Day 04

University

10 Qs

Chapter 2 Testing Throughout the SDLC

Chapter 2 Testing Throughout the SDLC

University

9 Qs

Basic on Operating System

Basic on Operating System

University

10 Qs

Lourdes Amaranta Ayala Gracia

Lourdes Amaranta Ayala Gracia

8th Grade - University

10 Qs

Recitation

Recitation

Assessment

Quiz

Computers

University

Hard

Created by

Han Meng

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

It's a pure function.

True

False

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

It's a pure function.

True

False

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Is IntTransformer a functional interface?

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the main defining property of functional interfaces?

Functional Interfaces are more functional.

Functional Interfaces have the @FunctionalInterface annotation.

Functional Interfaces have a single abstract method.

Functional Interfaces can be implemented using a lambda function.

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following are valid lambda expressions in Java?

() -> {}

(x, y) -> x * y

(String s) -> { int length = s.length(); return length + 1; }

() -> return 0;

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

(Self-Quiz) What is the main reason for the compilation error in the line G<A, Integer> g = a::foo;?

The number of parameters does not match

Parameter types do not match

Return value types do not match

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many statements are correct?

a. Lambda expressions are not necessarily lazy.

b. Memoization makes sense when function is deterministic.

Both statements are incorrect.
Only the first statement is correct.
Both statements are correct.

Only the second statement is correct.