IGCSE Computer Science 2023-25 - (1) Data Representation - Number Systems 1.1(b) Hexadecimal — Transcript
Full transcript
- 0:00welcome back to the second video
- 0:03which looks at igcse computer science um
- 0:07for the cambridge exam board
- 0:09we're going to look at chapter one or
- 0:10topic one which is data representation
- 0:13but in this video we're going to be
- 0:15looking at the hexadecimal number system
- 0:18looking at converting between idenary
- 0:20and binary but also looking at what is
- 0:23the point and why we use hexadecimal
- 0:27for this course we will need to
- 0:28understand four different uses for
- 0:29exodecimal including error codes mac
- 0:33addresses ip addresses and the html
- 0:37color system how hexadecimal is used to
- 0:39color
- 0:40web pages
- 0:42now as you know from the previous
- 0:44chapter a computer can only work with
- 0:46binary digits
- 0:47the digits represent the um transistors
- 0:50on the cpu and whether they're in an on
- 0:52or off state
- 0:55computer scientists can work with binary
- 0:57but they find hexadecimal a more
- 0:59convenient thing to use
- 1:01this is because one x digit represents
- 1:04four binary digits so something really
- 1:07long like the number below
- 1:09this number here can be represented and
- 1:11the 16 bits
- 1:13can be represented as four different
- 1:15digits in this case d2af
- 1:19it's easier for a person to remember
- 1:22before we begin let's have a little look
- 1:24at what exactly is the x decimal number
- 1:26system it is a number system based on 16
- 1:30different digits
- 1:32the same digits that are in base 10 0 to
- 1:359 but because of 16 different digits or
- 1:38characters we also include a
- 1:41for representing 10
- 1:43b11 c12 d13 e14 and f15
- 1:49in base 16 we're going to start with the
- 1:51units column
- 1:53and then when we get 16 times it by 16
- 1:56times it by 16. so we have 1 16 times 16
- 2:00is 256
- 2:01times 16 is 4096
- 2:04and so on and so forth
- 2:06now since 16 is two to the four
- 2:10this means that the there are four
- 2:12binary digits or a nibble as we've
- 2:15covered before
- 2:16that are equivalent to only one
- 2:18hexadecimal digit
- 2:20well what does that mean
- 2:22well if we look here we've we have
- 2:25a two digit accessible number
- 2:28five f
- 2:30now we can break those two numbers down
- 2:32into into two nibbles
- 2:34for example as you can see there we've
- 2:35got the nibble on on the left
- 2:37representing the five
- 2:39has a value of four and one
- 2:41four plus one is five and on the other
- 2:43side on the right hand column we've got
- 2:45f which is represented by eight plus
- 2:47four plus two plus one which is fifteen
- 2:49so 5 f equals
- 2:520 1 0 1
- 2:541 1 1 1
- 2:56in binary
- 2:59to take that a step further if we forget
- 3:02about the two nibbles for the time being
- 3:04and go back to the old system that we
- 3:05know one two four eight and then
- 3:07doubling every time up to one to eight
- 3:10or a byte of information we can see that
- 3:12we've got one lot of 64
- 3:14a 16 an eight a four a two and a one and
- 3:18we add all those numbers together and we
- 3:19have a base 10 number
- 3:22a decimal number of 95.
- 3:27we can take this a stage further
- 3:30we'll look at a bigger number now
- 3:32one a five f so that would be um f would
- 3:36be
- 3:38the unit so 15 lots of ones
- 3:41five would be the 16 column so 16 loss
- 3:44sorry five lots of 16.
- 3:46a would be the two five six columns so
- 3:48ten lots of two five six and one would
- 3:50be the 4096 column so one lot of four
- 3:54zero nine six
- 3:55so let's break that number down into
- 3:57four parts
- 3:58a nibble for each of the numbers in in
- 4:00the um
- 4:01in the in those four digits
- 4:03we've got a one in the in the first
- 4:05nibble
- 4:06we've got ten
- 4:08or a
- 4:09for the second nibble five four plus one
- 4:12for the third nibble and then 1 1 1 1 or
- 4:1515 which would be f
- 4:17for the um for the last digit
- 4:20remove the lines remove the nibbles
- 4:22we can see there we have a number
- 4:25adding all the
- 4:274096 plus 2048
- 4:31add them all together where the ones are
- 4:34we have a number a decimal number of six
- 4:36thousand seven hundred
- 4:38and fifty one
- 4:40we can go the other way
- 4:43if we start with the base 10 number
- 4:45i'm going to convert this into binary
- 4:48so as you can see there one lot of one
- 4:49two eight a sixty four a sixteen a four
- 4:52two and a one would all add up to two
- 4:54two one five 215
- 4:58i put the line back in to split it into
- 5:00two nibbles
- 5:01so
- 5:02the left hand column we have a plus four
- 5:04plus one
- 5:05which would equal 13 which we know is is
- 5:08d in x hexadecimal
- 5:10and we then we have a 4 a 2 and a 1 on
- 5:13the other side which equals 7. so 215 in
- 5:18base 10 converted into hexadecimal would
- 5:21be d7
- 5:27what do we use x decimal for well let's
- 5:29start with mac addresses now mac address
- 5:32or a media access control address is a
- 5:34unique number that identifies a
- 5:36particular device
- 5:38that is connected to the internet or the
- 5:40network any device it could be um
- 5:44apple tv it could be your your macbook a
- 5:47computer
- 5:49anything at all that's connected to the
- 5:50internet we've got here
- 5:52a picture of a y way
- 5:55a router in your house that's connected
- 5:58that you connect to in order to
- 6:00get onto the internet
- 6:02[Music]
- 6:04the mac address doesn't change when you
- 6:06connect to the internet it is unique to
- 6:08that particular device so in your
- 6:10computer you have a network card a nic
- 6:12card and on
- 6:14that card or part of that card is its
- 6:17unique identity
- 6:20um as an example of it here there's also
- 6:22some confusion between mac addresses and
- 6:25ip addresses um an ip address is the
- 6:27location of your device where it is on
- 6:29the internet
- 6:30whereas the mac address is actually what
- 6:32the product what the thing is that is
- 6:34connecting to the internet
- 6:38you can see some examples of 48-bit mac
- 6:40addresses here and you can see it's
- 6:42broken down into two parts the first
- 6:44part the um n
- 6:48it refers to the manufacturer be the
- 6:51apple be it cisco dell or whether and
- 6:54the second six characters refer to the
- 6:57um the actual serial number the unique
- 6:59serial number of the product
- 7:01and there's an example at the bottom
- 7:07next is the ip address the internet
- 7:10protocol address
- 7:12this is a unique identification number
- 7:14that every device has that is connected
- 7:17to the internet so this is where the
- 7:19confusion might lie in terms of this and
- 7:21the the mac address
- 7:23it it represents the unique location on
- 7:25which you are connected to the internet
- 7:27allowing devices all over the world to
- 7:29communicate with each other
- 7:32it works a little bit like a postal
- 7:34address if the post office has some
- 7:36letters to deliver to you they need to
- 7:38know where you live and this is exactly
- 7:41the same for the internet you the
- 7:43internet needs to know where you are in
- 7:44order for you to receive emails and for
- 7:48devices to communicate with each other
- 7:52and when you connect to the internet you
- 7:53were assigned an ip address to use for
- 7:55your particular session um this is
- 7:58issued by your network
- 8:00or your your isp something like vodafone
- 8:03or
- 8:04illiad or whoever you use for your
- 8:07internet service provider
- 8:11to give you a real world example um if
- 8:14you were to take your laptop to
- 8:15mcdonald's and connect to the internet
- 8:17then your device would be given an ip
- 8:20address
- 8:22if you decided that after you'd added
- 8:24mcdonald's and you wanted to have a
- 8:26coffee but you didn't like the coffee
- 8:28mcdonald's so you want to go to
- 8:29starbucks so if you got up and walked to
- 8:32starbucks
- 8:33um and then connect to the internet
- 8:35there then you would be assigned or your
- 8:38device would be assigned a different
- 8:40ip address
- 8:42[Music]
- 8:46if we move on to error codes
- 8:49error codes is a very very short part of
- 8:52this error codes are often shown as
- 8:55external values um windows uses them a
- 8:58lot you may be familiar with
- 9:00404
- 9:01page not found and various things but
- 9:04they're also used for things like
- 9:05printers
- 9:07even washing machines devices that have
- 9:09a micro controller
- 9:11that might may have a little little
- 9:13screen and if something goes wrong then
- 9:15an error message might pop up
- 9:18it's great for people service engineers
- 9:21if they need to fix a problem they can
- 9:23see the little error message and they
- 9:26can they know what's what the problem is
- 9:28for example with a printer if you get a
- 9:30certain message
- 9:32it might just mean that there's a paper
- 9:34jam or it might mean that the printer
- 9:36is out of toner or something like that
- 9:42finally we need to look at
- 9:44how color is represented using
- 9:46hexadecimal for websites for web pages
- 9:50so html
- 9:52hypertext markup language is used when
- 9:55writing and developing web pages
- 9:57um it's a markup language rather than a
- 9:59programming language and it's used for
- 10:01present the presentation
- 10:03of these web pages you may have also
- 10:05come across style sheets css
- 10:09html uses tags and there's an example at
- 10:11the bottom here of a header tag
- 10:14where the color red has been chosen for
- 10:17that particular heading we know it's red
- 10:19because it's
- 10:21ff000 but what does that mean
- 10:24well
- 10:25an accessible number is is um
- 10:27is six digits
- 10:30and the first two digits represent red
- 10:32the second two represent green and the
- 10:34third two represent blue so an example
- 10:37here to make orange we've used
- 10:39ff so basically full red
- 10:42um and then we've used 99 for the green
- 10:45so a shade of green and 66 for a shade
- 10:48of blue
- 10:50here are some more examples if we're
- 10:52combining um full red
- 10:54and and full
- 10:55um blue we have fuchsia
- 10:58and then ff and 80 and this time is it
- 11:01is a different type of orange you can
- 11:03see there
- 11:04and no lots of blue for that
- 11:07html colors x decimal colors rather
- 11:10always start with a hashtag to show that
- 11:13it is actually a color that we're
- 11:15representing
- 11:16and
- 11:18because it's 16 times 16 for the red
- 11:20values there's two values we end up with
- 11:23two five two five six
- 11:25it's the same for the blue and it's the
- 11:26same for the green so if we multiply all
- 11:29those together two five six two five six
- 11:31two five six we end up with over 16
- 11:33million close to 17 million possible
- 11:36colors we can use on our websites
- 11:41that is it for html i hope you've gained
- 11:44something from that and i hope it's
- 11:46helped you with your studying of this
- 11:47particular um computer science course
- 11:51please subscribe because there will be
- 11:52more videos along the way for each of
- 11:54the chapters that are in the book and as
- 11:57part of the syllabus but until next time
- 12:00thank you very very much indeed bye for
- 12:02now
About this transcript
This page contains the full transcript of IGCSE Computer Science 2023-25 - (1) Data Representation - Number Systems 1.1(b) Hexadecimal by Mr Bulmer's Learning Zone, generated from the public captions YouTube serves with the video. The transcript has 1,862 words across 302 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.