Comprehensive and Detailed Explanation From Exact Extract:
A string is a data type used to store sequences of characters, such as text or words. According to foundational programming principles (e.g., Certiport Scripting and Programming Foundations Study Guide), strings are ideal for textual data but not for numerical or boolean values, which have specific data types (e.g., integers, floats, booleans).
Option A: "A true/false indication of whether a number is composite." This is incorrect. A true/false value is a boolean, not a string. In most languages (e.g., Python’s True/False, C’s 0/1), booleans are a distinct type.
Option B: "A positive number between 2 and 3." This is incorrect. A number between 2 and 3 (e.g., 2.5) is a floating-point value, not a string. Strings could represent numbers as text (e.g., "2.5"), but this is not the primary use.
Option C: "The word 'positive'." This is correct. The word "positive" is a sequence of characters, perfectly suited for a string data type (e.g., char[] in C, str in Python).
Option D: "A positive whole number." This is incorrect. Whole numbers are stored as integers (e.g., int in C or Python), not strings, unless represented as text (e.g., "123"), which is not implied here.
Certiport Scripting and Programming Foundations Study Guide (Section on Data Types).
Python Documentation: “Strings” (https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str).
W3Schools: “C Strings” (https://www.w3schools.com/c/c_strings.php).