Which option lists four basic data types?

Study for the End of Year 8 Computer Science Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Get ready for your exam!

Multiple Choice

Which option lists four basic data types?

Explanation:
Data types describe what kind of value a variable stores. The four basic built-in types usually taught are text (string), whole numbers (integer), numbers with decimals (real/float), and true/false values (boolean). The option that lists String, Integer, Real/Float, Boolean matches these standard categories exactly, providing a text type, a whole-number type, a decimal-number type, and a boolean type. Other choices mix in concepts that aren’t data types, such as storage units (byte, kilobyte, megabyte, gigabyte) or concepts like characters or spaces that aren’t part of the basic foundational set.

Data types describe what kind of value a variable stores. The four basic built-in types usually taught are text (string), whole numbers (integer), numbers with decimals (real/float), and true/false values (boolean). The option that lists String, Integer, Real/Float, Boolean matches these standard categories exactly, providing a text type, a whole-number type, a decimal-number type, and a boolean type. Other choices mix in concepts that aren’t data types, such as storage units (byte, kilobyte, megabyte, gigabyte) or concepts like characters or spaces that aren’t part of the basic foundational set.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy