Which term describes a real number with a whole part and a fractional part, such as 3.14?

Prepare for the 241 Computer Science Certification Exam with comprehensive flashcards and multiple choice questions. Enhance knowledge with explanations and hints to excel in your test journey!

Multiple Choice

Which term describes a real number with a whole part and a fractional part, such as 3.14?

Explanation:
Decimals are real numbers written with a decimal point that separates a whole part from a fractional part. In 3.14, the whole part is 3 and the digits after the decimal (14) represent 0.14, so the number is a decimal. This distinguishes it from an integer, which has no fractional part. A floating point is a computer storage format for real numbers, not the inherent type of a number with a fractional part, and a string is not numeric. Therefore, the term that describes such a real number is decimal.

Decimals are real numbers written with a decimal point that separates a whole part from a fractional part. In 3.14, the whole part is 3 and the digits after the decimal (14) represent 0.14, so the number is a decimal. This distinguishes it from an integer, which has no fractional part. A floating point is a computer storage format for real numbers, not the inherent type of a number with a fractional part, and a string is not numeric. Therefore, the term that describes such a real number is decimal.