CHAPTER 1 (BINARY DENERY HEXA, COMPRESSION ...) Flashcards

(34 cards)

1
Q

hexadecimal (IF YOU DONT UNDERSTAND THIS DONT WORRIE THIS INFO WILL JUST BE GOOD TO MAKE THE EXAMINER THINK YOUR SMART YOU DONT NEEDA NEEDA KNOW THIS BUT THIS WILL GET YOU AN A*)

state the number base and number of values or other shit

A

a base-16 number system
uses values from 0-9 and charecters from A-F
to symbalize data
F E D C B A 9 8 7 6 5 4 3 2 1 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Binary (IF YOU DONT UNDERSTAND THIS DONT WORRIE THIS INFO WILL JUST BE GOOD TO MAKE THE EXAMINER THINK YOUR SMART YOU DONT NEEDA NEEDA KNOW THIS BUT THIS WILL GET YOU AN A*)
?

what base system and and the number of values

A

base -2 system
2 values DUH dumbass base-2 means it can repersent through 3 numbers
1 and 0’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does a base system/number mean in cs

in data repersentation

A

the number of values in a data representation type that can be used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Denary? (IF YOU DONT UNDERSTAND THIS DONT WORRIE THIS INFO WILL JUST BE GOOD TO MAKE THE EXAMINER THINK YOUR SMART YOU DONT NEEDA NEEDA KNOW THIS BUT THIS WILL GET YOU AN A*)

base system? AND VALUES

A

base -10
values 0-9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TF a bit? like 4 bit binary

A

a bit his a number of 1 or 0
like when they say a 8 bit binary number
it means there are 8 values like
4 4 = 8
0101 0010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

converting a binary number to a denery (QUESTION HERE AWNSER IT THEN FLIP THE FLASH CARD)

BINARY= 1010

A

AWNSER
BINARY= 1010 DENARY=10

how? here ill explain
when you get a binary number to convert to denary alway and always js write the number done on a paper
1010
next make a table we know that the values of a binary number in denary multiply but 2 right so above the binary number write this
8,4,2,1
1,0,1,0 and where ever the 1 over laps the number count it like in this case 8 and 2… now add the two number for the denary = 10
WHAT IF ITS MORE THAN 4 BIT LIKE 8?
then keep multiplying by 2
64,32,16,8,4,2,1 (the paper will be non calc so try to learn this)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

convert the denary number to binary
denary = 13

A

AWNSER
denary= 13
binary= 1101
(look at flash card 6 if you dont understand how to do this or js message me ill teach you)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

hexadecimal (DONT LEARN THIS I AM JS SHOWING YOU THE DENARY TO HEXA CONV)

A

denary: 0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14,15
Hxadecimal: 0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Binary addition rules

A

1+0=1
1+1=10
1+1+1=11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

LOGICAL LEFT BINARY SHIFT?!(always comes)

A

when you hear left shift JS know that that means the VALUE ON THE LEFT IS REMOVED
like this binary = 0010 1100
left shift by 1= (d)010 1100
(d)= means deleted dont write this in the exam this is refrence
NOW since one value on the left has been removed logicaly all the values will move to the left to fill in the gap LEFT so
left shift by 1 = (d)010 1100
logical move= 0101 100(d)
now we are missing on value on the RIGHT WHICH WILL ALWAYS BE REPLACE BY 0 (NO MATTER IF THE VALUE THAT WAS REMOVED WAS A 1 OR A 0)
so IT WILL THEN = 0101 1000
(before = 0010 1100)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

logical RIGHT SHIFT?(always comes)

A

when you hear right shift JS know that that means the VALUE ON THE RIGHT IS REMOVED
like this binary = 0010 1100
RIGHT shift by 1= 0010 110(d)
(d)= means deleted dont write this in the exam this is refrence
NOW since one value on the RIGHT has been removed logicaly all the values will move to the RIGHT to fill in the gap right so
RIGHT shift by 1 = 0010 110(d)
logical move= (d)001 0110
now we are missing on value on the LEFT WHICH WILL ALWAYS BE REPLACE BY 0 (NO MATTER IF THE VALUE THAT WAS REMOVED WAS A 1 OR A 0)
so IT WILL THEN = 0001 0110
(before = 0010 1100)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what happens to the value after RIGHT SHIFT

A

eg the dinary num 44 gets devided to 22
SO THE NUMBER IS DEVIDED IN HALF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

negitive binary / 2’S COMPLEMENT
35 DENARY TO -35 DENARY?

A

CONVERT 35 TO BINARY
0010 0011
NEXT STEP INVERT THE NUMBERS (1=0 AND 0=1)
1101 1100
NOW JS ADD 1 TO IT BUT REMEMBER THE ADDITION RULES (1+1=10 1+0 = 1 and 1+1+1=11)
SO
1101 1100
+ 1
———–
1101 1101 = -35

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

negitive binary / 2’S COMPLEMENT
-35 DENARY TO 35 DENARY?

A

-35 denary = 1101 1101
first INVERT THE NUMBERS
1101 1101= 0010 0010
AND FINNALY ADD 1
0010 0010
+ 1
———-
0010 0011 = 35 that easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

charecter sets?

A

a type of spread sheet in a computer
where each charector is repersented by a binary number
EXAMPLE
A =1011 (MAKING THIS UP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

name the two main type of charecter sets?

A

ASCII AND UNICODE

17
Q

ASCII?

A

repersents through an 8-BIT binary
256 charecters
not alot from many language

18
Q

UNICODE?

A

16-bit binary number
larger bit = more charectors
65,000 CHARECTORS
can be used for emojies symbols etc…

19
Q

pixels

A

a small dot of colours that is displayed with many others to create an image

20
Q

resolution

A

the dimensions of an image

21
Q

metadata?

A

additional data that is stored in the image
LIKE DIMENSIONS, TIME AND DATE the image was taken

22
Q

colours depth

A

the number of bit that are used to create each colour in an image

23
Q

sound sampling

A

a little piece of sound that is rocorded at regular time intervals

24
Q

sample rate

A

the number of sample recorded each ecound

25
sample resolution
the number of bits used to record each sound sample
26
smallest unit of data storage
BIT
27
nibble?
4 bits
28
bytes?
8 bits
29
Formula for size of an image
size= width x height x colour depth x number of images in the file
30
data compression?
a methord that uses an algorithm to reduce the size of a file
31
lossy compression
a compression methord that reduces the size of a file PERMANENTLY BY REMOVING EXTRA DATA
32
lossless
compression method that reduces the size of a file with out removing ANY data
33
perceptual music shaping
a process of lossy compression that removes sound of a frequancy humans cant hear 20-20,000 hz to reduce the size
34