PCAP Exam QuestionsBrowse all questions from this exam

PCAP Exam - Question 130


Which of the following lines of code will work flawlessly when out independently inside the inc() method in order to make the snippet's output equal to 3?

(Choose two.)

Show Answer
Correct Answer: CD

CD

Discussion

2 comments
Sign in to comment
macxszOptions: CD
May 4, 2022

C. self.put(self.get() + val) D. self.put(self.prop + val)

CC_DC
Jul 13, 2023

Missing the dot between MyClass and Var. Yuckity, yuck, yuck!