Data Types Flashcards

OCR GCSE J277 Computer Science specification

Integer

A whole number data type, e.g., 5, -3, 42.

1 / 10

Ready to master these flashcards?

Sign in to study with spaced repetition and track your progress.

Sign In to Track Progress

Terms in this set (10)

1

Integer

A whole number data type, e.g., 5, -3, 42.

2

Real/Float

A data type used for numbers with decimal points, e.g., 3.14, -0.5.

3

Boolean

A data type with only two possible values: true or false.

4

Character

A single alphanumeric symbol, e.g., 'A', '7', '?'.

5

String

A sequence of characters, e.g., 'Hello', '123abc'.

6

Casting

The process of converting a variable from one data type to another, e.g., integer to string.

7

Purpose of data types

To define the kind of data a variable can store and how it can be used.

8

Comparison operators

Used to compare data types, e.g., ==, !=, <, >.

9

Arithmetic operators

Used for calculations with numeric data types, e.g., +, -, *, /, MOD, DIV, ^.

10

Why use data types?

To ensure variables are used correctly and efficiently in a program.

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Start Learning