PCAP: Certified Associate in Python Programming
PCAP: Certified Associate in Python Programming practice questions, page 6 of 6, with answer review and explanations.
Question 26
What is the expected output of the following code?
- abcef
- The program will cause a runtime exception/error
- acdef
- abdef
Question 27
What is the expected output of the following code?
- 21
- 2
- 3
- 12
Question 28
What is the expected behavior of the following snippet? It will:
- cause a runtime exception on line 02
- cause a runtime exception on line 01
- cause a runtime exception on line 03
- print 3