Comprehensive and Detailed Explanation From Exact Extract:
Body temperature in Fahrenheit typically includes decimal precision (e.g., 98.6°F). According to foundational programming principles, a floating-point type is suitable for values with decimal components.
Option A: "Integer." This is incorrect. Integers cannot store decimal values, and body temperature often requires precision (e.g., 98.6 ≠ 99).
Option B: "String." This is incorrect. While a string could store "98.6" as text, it’s not suitable for numerical calculations (e.g., averaging temperatures).
Option C: "Float." This is correct. A floating-point type (float) can store decimal values like 98.6, making it ideal for body temperature. For example, in C: float temp = 98.6;.
Option D: "Boolean." This is incorrect. Booleans store true/false values, not numerical temperatures.
Certiport Scripting and Programming Foundations Study Guide (Section on Data Types).
Python Documentation: “Floating Point Types” (https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex).
W3Schools: “C Data Types” (https://www.w3schools.com/c/c_data_types.php).
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit