A Level Computer Science OCR Practice Exam 2026 - Free Practice Questions and Study Guide

Question: 1 / 400

What type of numbers can an integer data type store?

Only positive whole numbers

Only negative whole numbers

Positive and negative whole numbers

The integer data type is designed to store whole numbers, which include both positive and negative values. This capability means that integers can represent a range of values from negative infinity to positive infinity, excluding any decimal or fractional components. Because of this, the integer data type is particularly useful for situations where whole values are necessary, such as counting items, indexing arrays, or performing discrete calculations.

The other options specify either positive or negative whole numbers only or include decimal numbers, which is not characteristic of the integer data type. Thus, the ability to represent both positive and negative whole numbers encompasses the full spectrum of what integers can convey, making it the correct answer.

Get further explanation with Examzify DeepDiveBeta

Decimal numbers

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy