BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU Scripting and Programming Foundations (D278) Exam - Topic 1 Question 19 Discussion

Posted by Sean on Oct 21, 2026 at 12:41 AM

Which data type should be used to hold the value of a person's body temperature in Fahrenheit?

Suggested Answer: C

Comprehensive and Detailed Explanation From Exact Extract:

Body temperature in Fahrenheit typically includes decimal precision (e.g., 98.6F). 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).


Get Premium Scripting and Programming Foundations (D278) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
7 comments · newest first
AN
Angelica 4 days ago
C) Float is the best choice, no doubt!
LE
Leatha 10 days ago
I think A) Integer could work, but not ideal.
BR
Brigette 15 days ago
Definitely C) Float, temperatures can have decimals.
CY
Cyndy 20 days ago
I’m leaning towards Float too, since temperatures can vary like 98.6°F, but I hope I’m not mixing it up with something else!
BR
Brice 25 days ago
I feel like String is definitely not the right choice, but I can't remember if Float or Integer is better.
AB
Abel 1 month ago
I remember practicing a question like this, and I chose Integer, but now I'm not so sure.
YO
Yolande 1 month ago
I think it might be a Float because body temperature can have decimal points, right?
0/2000 characters

Save Cancel