Certified Associate in Python Programming (PCAP) — Question 67
Which of the following literals reflect the value given as 34.23? (Choose two.)
Answer options
- A. .3423e2
- B. 3423e-2
- C. .3423e-2
- D. 3423e2
Correct answer: A, B
Explanation
The literals .3423e2 and 3423e-2 correctly represent the value 34.23 in scientific notation. The first option, .3423e2, equals 34.23, while 3423e-2 equals 34.23 as well when converted. Options C and D do not represent the correct value, as C results in 3.423 and D results in 342300.