Data Types (OCR A-Level Computer Science): Flashcards

📚Flashcards
Primitive Data Types
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

What are primitive data types?

Most basic data types provided by a programming language

What is an integer data type?

Whole numbers (positive, negative, or zero) with no decimal points

What is a real/floating-point data type?

Numbers with fractional parts (decimals)

What are the Boolean data type values?

Two possible values: true or false

What is a character data type?

Stores a single character (letter, digit, or symbol)

What is a string data type?

A sequence of characters used to store text

How much memory does Boolean use?

Uses a single bit of memory

Real/float memory vs integer

Uses more memory than integers

Boolean True to integer conversion

True becomes 1

Boolean False to integer conversion

False becomes 0

Float to integer conversion effect

Truncates decimals (e.g., 4.5 becomes 4)

When do precision errors occur?

Using floats where exact values needed (e.g., finance)

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.