Prepare for the A Level Computer Science OCR Exam with engaging quizzes, detailed explanations, and effective study tips. Maximize your readiness and boost your confidence for exam day!

Practice this question and more.


What type of number is classified as Real/Float?

  1. An integer number without fractions

  2. A number with a fractional part

  3. A number that represents a logical statement

  4. A complex number combining real and imaginary parts

The correct answer is: A number with a fractional part

The classification of a Real/Float number encompasses any number that can include a fractional component, making option B the most accurate. In computing and mathematics, real numbers are those that can be found on the number line, which includes all the integers, fractions, and decimal values. When distinguishing between integer numbers and float numbers, the key attribute of float numbers is their ability to represent values with a decimal point. This feature allows them to express varying quantities, such as measurements or probabilities, much more accurately than whole numbers. Other types of numbers, such as integers, are strictly whole numbers without fractions, and thus are not classified as floats. Logical statements typically refer to data types that hold true/false values rather than numerical values, and complex numbers consist of both a real part and an imaginary part, which place them in a different classification entirely. Hence, the distinguishing feature of float numbers, which is their fractional aspect, prominently aligns with the designation of B as the correct choice.