Back to marketplace

1.4.1 Data Types

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

1.4.1 A) What is the need for data types

Back (Answer)

Data stores in binary stored in right data type so right operations can be preformed

#2
Front (Question)

5 data types with brief expiation

Back (Answer)

Integer - whole number real / float - decimal point number character- single symbol string - collection of character Boolean - True or False

#3
Front (Question)

1.4.1 B) Whats a single binary digit called 8 bits 4 bits

Back (Answer)

bit 1 byte 1 nibble

#4
Front (Question)

Bases for binary, decimal , hexadecimal

Back (Answer)

2 , 10 ,16

#5
Front (Question)

1.4.1 C) What is sign and magnitude

Back (Answer)

Leading 1 = negative Leading 0 = positive Example binary 173 10101101 sign and magnitude +173 010101101 sign and magnitude -173 110101101

#6
Front (Question)

Twos complement

Back (Answer)

flip +1

#7
Front (Question)

1.4.1 D) adding and subtracting

Back (Answer)

0 + 0 = 0 1 + 0 = 1 1 + 1 = 10 1 + 1 + 1 = 11 1 = 2 on coluemm to the right

#8
Front (Question)

1.4.1 E/F) Hexadecimal conversion

Back (Answer)

Hex 0-9 = 0-9 10-15 = A-F base 16 split into digit convert hex into dec convert dec > binary combine nibbles

#9
Front (Question)

1.4.1 g) normalisation

Back (Answer)

must start with 10 or 01 (shift the exponents and mantissa )

#10
Front (Question)

floating point

Back (Answer)

exponent use two complement move decimal point + right - left decimal starts between 1st and 2nd digit in mantissa

#11
Front (Question)

(h) Floating point arithmetic, positive and negative numbers, addition and subtraction.

Back (Answer)

Too add fp exponent must be the same must normalize too sub make exponent same (mantissa twos complement > add > normalise

#12
Front (Question)

(i) Bitwise manipulation and masks: shifts, combining with AND, OR, and XOR.

Back (Answer)

Shift right n =2^n increase Shift left n =-2^n increase masks can be applied to binary number combined with logic gated AND 1 + 1 = 1 , 0 + 1 = 0 , 0 + 0 = 0 OR 1 + 1 = 1 , 0 + 1 = 1 , 0 + 0 = 0 XOR 1 + 1 = 0 , 1+0 = 1 , 0 + 0 = 0

#13
Front (Question)

j) How character sets (ASCII and UNICODE) are used to represent text

Back (Answer)

ASCII 7 bits 128 diff char A-Z 65-90 , a-z 97-122 ASCII cant represnt diff languages unicode solved this problem using varying number of bits allowing over 1m diff char