Data Types and Number Systems

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 44

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

45 Terms

1

Primitive data type

A type provided by a programming language.

New cards
2

Integer

A whole number such as 34, 0, -1, 567432.

New cards
3

Real/Float

A number with a fractional part such as 3.142, 7.0, -67.5.

New cards
4

Boolean

Can only take the value True or False.

New cards
5

Character

A letter, number or special symbol such as 'a', 'A', '6', '&', '%'.

New cards
6

String

Anything enclosed in quote marks, for example 'Jason', '01798 158794', 'This is a string'.

New cards
7

Binary number system

Uses only two digits, 0 and 1.

New cards
8

Denary number system

Uses a combination of ten symbols to represent any number.

New cards
9

Base

The number of symbols used to construct values in a number system.

New cards
10

Base 10

Denary number system.

New cards
11

Base 2

Commonly referred to as binary numbers.

New cards
12

Place value

The position of the value determines its contribution to the overall total.

New cards
13

Binary conversion

The process of converting from denary to binary using a place value table.

New cards
14

18310

Represents the value of one hundred, eight tens and three units.

New cards
15

1 0 1 1 0 1 1 1

Represents 128 + 32 + 16 + 4 + 2 + 1 which is equivalent to 18310.

New cards
16

Converting from denary

Using the place value table to aid conversion from denary to binary.

New cards
17

Bit pattern

Without knowing the data type, it is not possible to say what a particular bit pattern represents.

New cards
18

Number systems

Referred to by their base; the number of symbols used.

New cards
19

Digit value

The product of the base position and the digit.

New cards
20

Base position

The power of the base corresponding to the position of the digit.

New cards
21

Example of binary numbers

0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011.

New cards
22

Hexadecimal

A base 16 number system.

New cards
23

Hexadecimal

Base 16 number system that uses letters for values 10 to 15.

New cards
24

Hexadecimal values

Values in hexadecimal are calculated using place value similar to decimal.

New cards
25

Denary to hex conversion

Process of converting a denary number to a two-digit hexadecimal number by dividing by 16 and adding the remainder.

New cards
26

Significant powers of 2

Powers of 2 are important in computing, with 2^0 = 1, 2^1 = 2, 2^2 = 4, 2^3 = 8, and 2^4 = 16.

New cards
27

Significance of 16

16 is the fourth power of 2, allowing base 16 numbers to be translated from 4 bits of binary.

New cards
28

Hex colour codes

Hexadecimal representation of colors, such as 36 4D B2.

<p>Hexadecimal representation of colors, such as 36 4D B2.</p>
New cards
29

Why use hex?

Hexadecimal values are easier to read, quicker to write, and less error-prone compared to binary.

New cards
30

Plenary

Denary is easy to understand but not practical in electronics; binary is simple for circuitry but hard for humans, while hexadecimal bridges this gap.

New cards
31

Hexadecimal digit

A single character in hexadecimal that represents a value from 0 to 15.

New cards
32

Binary

A base 2 number system using only 0s and 1s.

New cards
33

Decimal (Denary)

A base 10 number system that is easy for humans to understand.

New cards
34

Base position

The positional value of a digit in a number system, such as 256, 16, and 1 in hexadecimal.

New cards
35

Place value

The value of a digit based on its position in a number.

New cards
36

Equivalent of 3F5 in denary

The calculation (256x3) + (16x15) + 5 = 1013.

New cards
37

Hexadecimal representation of 11

In hexadecimal, the decimal number 11 is represented as B.

New cards
38

Hexadecimal representation of 27

The decimal number 27 is represented as 1B in hexadecimal.

New cards
39

Hexadecimal representation of 43

The decimal number 43 is represented as 2B in hexadecimal.

New cards
40

Hexadecimal representation of 16

The decimal number 16 is represented as 10 in hexadecimal.

New cards
41

Hexadecimal representation of 15

The decimal number 15 is represented as F in hexadecimal.

New cards
42

Hexadecimal representation of 10

The decimal number 10 is represented as A in hexadecimal.

New cards
43

Hexadecimal representation of 12

The decimal number 12 is represented as C in hexadecimal.

New cards
44

Hexadecimal representation of 13

The decimal number 13 is represented as D in hexadecimal.

New cards
45

Hexadecimal representation of 14

The decimal number 14 is represented as E in hexadecimal.

New cards
robot