Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PCAP All Questions

View all questions & answers for the PCAP exam

Exam PCAP topic 1 question 111 discussion

Actual exam question from Python Institute's PCAP
Question #: 111
Topic #: 1
[All PCAP Questions]

Which of the following lambda definitions are correct? (Choose two.)

  • A. lambda x,y: (x,y)
  • B. lambda x,y: return x//y - x%y
  • C. lambda x,y: x//y - x%y
  • D. lambda x,y = x//y - x%y
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
macxsz
Highly Voted 2 years, 6 months ago
Selected Answer: AC
A. lambda x,y: (x,y) C. lambda x,y: x//y - x%y
upvoted 5 times
...
seaverick
Most Recent 10 months, 1 week ago
#question 111 #lambda x,y = x//y - x%y#SyntaxError: invalid syntax lambda x,y: (x,y) #lambda x,y: return x//y - x%y#SyntaxError: invalid syntax lambda x,y: x//y - x%y Tested: A,C
upvoted 1 times
...
DezzoPalYeah
1 year, 1 month ago
The answer is A,C
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...