Explore

Data Types Flashcards
OCR GCSE J277 Computer Science specification
Ready to master these flashcards?
Sign in to study with spaced repetition and track your progress.
Sign In to Track ProgressTerms in this set (10)
Integer
A whole number data type, e.g., 5, -3, 42.
Real/Float
A data type used for numbers with decimal points, e.g., 3.14, -0.5.
Boolean
A data type with only two possible values: true or false.
Character
A single alphanumeric symbol, e.g., 'A', '7', '?'.
String
A sequence of characters, e.g., 'Hello', '123abc'.
Casting
The process of converting a variable from one data type to another, e.g., integer to string.
Purpose of data types
To define the kind of data a variable can store and how it can be used.
Comparison operators
Used to compare data types, e.g., ==, !=, <, >.
Arithmetic operators
Used for calculations with numeric data types, e.g., +, -, *, /, MOD, DIV, ^.
Why use data types?
To ensure variables are used correctly and efficiently in a program.

Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Start Learning