Python Institute PCAP - Certified Associate in Python Programming Exam
Page: 2 / 29
Total 141 questions
Question #6 (Topic: Single Topic)
What is the output of the following piece of code?


A. antג€™ batג€™ camel
B. antג€batג€ camel
C. antbatcamel
D. print (a, b, c, sep= ג€˜ ג€ ג€™)
Answer: B
Question #7 (Topic: Single Topic)
What is the expected output of the following snippet?


A. the code is erroneous
B. 3
C. 7
D. 15
Answer: A
Question #8 (Topic: Single Topic)
How many lines does the following snippet output?


A. three
B. one
C. two
D. four
Answer: B
Question #9 (Topic: Single Topic)
Which of the following literals reflect the value given as 34.23? (Choose two.)
A. .3423e2
B. 3423e-2
C. .3423e-2
D. 3423e2
Answer: AB
Question #10 (Topic: Single Topic)
What is the expected output of the following snippet?


A. 3
B. 1
C. 2
D. the code is erroneous
Answer: D