Implementing and Operating Cisco Enterprise Network Core Technologies (ENCOR) — Question 607
What does the statement print(format(0.8, '.0%')) display?
Answer options
- A. 8.8%
- B. .08%
- C. 8%
- D. 80%
Correct answer: D
Explanation
The correct answer is D, as the format function converts the decimal 0.8 to a percentage, resulting in 80%. Option A is incorrect because it incorrectly adds a decimal point, while option B misrepresents the value as .08%. Option C is close but does not account for the percentage conversion.