Which of the following lambda function definitions are correct? (Select two answers)
Suggested Answer: A, B
Get Premium PCAP-31-03 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
21 comments · newest first
JU
Justine
1 day ago
I think A and B are correct. Simple and valid.
TA
Tasia
7 days ago
I feel like A and B are the safest choices.
FL
Florinda
12 days ago
A and B make sense. Lambda should return something.
VE
Venita
17 days ago
D is just confusing. No way that's correct.
JI
Jimmie
22 days ago
C is wrong. Can't define a function inside a lambda.
AL
Alyce
27 days ago
I agree, A is definitely right. B is tricky but valid.
EL
Eloisa
1 month ago
I think A and B are correct. Simple and clear.
YO
Youlanda
1 month ago
I agree, A and B are the only valid ones here!
AZ
Azzie
1 month ago
Wait, D looks weird, can you even have nested lambdas like that?
TI
Tiffiny
2 months ago
C is definitely incorrect, can't define a function inside a lambda.
FE
Felton
2 months ago
I think B is wrong, it needs to return a single value.
VI
Virgie
2 months ago
A is correct, it’s a valid lambda function.
DO
Domitila
2 months ago
I agree with you, C is definitely wrong!
GE
German
2 months ago
Wait, D looks super weird. Is that even allowed?
WI
Willodean
2 months ago
C is a no-go, can't define a function inside a lambda.
LE
Lemuel
3 months ago
I think B is also valid, right?
TI
Tish
3 months ago
A is definitely correct!
CH
Cherrie
3 months ago
D looks really confusing; I don't think you can have nested lambdas like that, but I might be mixing it up with something else we practiced.
UL
Ula
3 months ago
I think C is definitely wrong because you can't define a function inside a lambda like that.
SH
Shasta
3 months ago
I'm not sure about B; it looks like it might be trying to return a float, but isn't it missing a return statement?
SA
Samira
3 months ago
I remember that lambda functions should have a single expression, so A seems correct.