PCAP: Certified Associate in Python Programming
PCAP: Certified Associate in Python Programming practice questions, page 2 of 6, with answer review and explanations.
Question 6
What is the output of the following piece of code?
- ant' bat' camel
- antג€batג€ camel
- antbatcamel
- print (a, b, c, sep= ' ג€ ')
Question 7
What is the expected output of the following snippet?
- the code is erroneous
- 3
- 7
- 15
Question 8
How many lines does the following snippet output?
- three
- one
- two
- four
Question 9
Which of the following literals reflect the value given as 34.23? (Choose two.)
- .3423e2
- 3423e-2
- .3423e-2
- 3423e2
Question 10
What is the expected output of the following snippet?
- 3
- 1
- 2
- the code is erroneous