Hexadecimal | CIE IGCSE Computer Science Revision Notes 2023 (2024)

Revision Note

Test yourselfFlashcards

Hexadecimal

Why Use Hexadecimal?

  • Hexadecimal numbers are often used as a beneficial method of data representation in computer science
  • It takes fewer digits to represent a given value in hexadecimal than in binary
  • One hexadecimal digit can represent four bits of binary data
  • It is beneficial to use hexadecimal over binary because:
    • The more bits there are in a binary number, the harder it is to read
    • Numbers with more bits are more prone to errors when being copied

Worked example

The following binary number has 24 bits: 101110110011101011101010. Write the number in hexadecimal and explain why it is better to write the number in hexadecimal rather than in binary.

  • This number can be represented with only 6 digits in hexadecimal:
  • B B 3 A E AMark for each character[6]
  • This number is:
    • Much shorter and a more efficient way of representing numbers [1]
    • Easier to spot any errors in [1]

How is Hexadecimal used in Computers?

  • Using hexadecimal allows computer scientists to represent large amounts of binary data in a more manageable and readable format
  • There are many uses of hexadecimal in computers:
    • Memory addresses and other hardware related values
    • Representation of colour values
    • Error messages
    • Memory dump
    • Debugging
    • IP addresses
    • ASCII / Unicode
    • Assembly language
    • URLs
  • Representation of colour values in HTML/CSS and in computer graphics: eg. RGB (red-green-blue) colour values can be represented in a compact and readable format. E.g. #FF0000
  • Error messages & debugging: eg. 0x80070643 to give technicians/developers information about what the error is in relation to
  • Memory dump: this is a record of what happened in the computer's memory at the time of an error. These are often difficult to read because they contain a lot of technical information, but computers can use hexadecimal values in memory dumps to identify specific memory locations and values.
    • Eg. A video game on a computer crashes and a memory dump is created. A technician analyses the memory dump and looks for hexadecimal values to identify the cause of the crash. They might look for specific memory addresses and values that relate to the game being played or the graphics card in the computer.
  • IP addresses:
    • Hexadecimal values can be used to represent each set of numbers in an IP address
    • Each set of numbers can be converted into a two-digit hexadecimal value, giving a total of eight digits in the IP address
    • Eg. the IP address "192.168.0.1" could be represented in hexadecimal as "C0A80001"
    • The hexadecimal values can make IP addresses easier to work with in some cases, such as when configuring network devices or writing scripts that interact with IP addresses, however, they are not commonly used in everyday applications or browsing the internet
  • ASCII / Unicode: eg. The letter "A" is represented in ASCII as the decimal value 65, which is equivalent to the binary value 01000001. This binary value can also be represented in hexadecimal as the value 41
  • Assembly language:
    • Hexadecimal values are used in assembly language to represent the binary code for the instructions and data
    • Each instruction or data value is represented by a specific sequence of hexadecimal digits, which can make it easier for programmers to read and understand the code
    • Eg. "MOV AX, 5" instruction is represented by the hexadecimal value "B805", which tells the computer to move the value 5 into register AX
  • URLs:
    • To encode a space in a URL using hexadecimal, the space character is replaced by a percent sign ("%") followed by the hexadecimal value of the space character. In ASCII, the space character has a decimal value of 32, which can be represented in hexadecimal as "20".
    • So, to encode the URL "my website.com/page one" using hexadecimal, it would look like this: my%20website.com/page%20one

Exam Tip

  • When a question is asked which asks you to name a certain number of uses of hexadecimal, ensure you write the number asked for and no more. E.g. name 3 uses of hexadecimal - if you write more than 3, the last ones will be ignored by the examiner, even if they’re correct
  • If you're asked to name any uses of hexadecimal, don't write down any given in the question as you won't get marks for this

Hexadecimal | CIE IGCSE Computer Science Revision Notes 2023 (2)

You've read 0 of your 10 free revision notes

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

    Test yourselfFlashcardsNext topic

    Did this page help you?

    Hexadecimal | CIE IGCSE Computer Science Revision Notes 2023 (2024)
    Top Articles
    Authorized Transfer Definition | Law Insider
    What’s a Nest Egg?
    Moon Stone Pokemon Heart Gold
    Tesla Supercharger La Crosse Photos
    Falgout Funeral Home Obituaries Houma
    Craigslist Parsippany Nj Rooms For Rent
    DL1678 (DAL1678) Delta Historial y rastreo de vuelos - FlightAware
    Which Is A Popular Southern Hemisphere Destination Microsoft Rewards
    What Was D-Day Weegy
    ATV Blue Book - Values & Used Prices
    Chicken Coop Havelock Nc
    Moparts Com Forum
    Huge Boobs Images
    Drago Funeral Home & Cremation Services Obituaries
    Walgreens Tanque Verde And Catalina Hwy
    Arre St Wv Srj
    Pinellas Fire Active Calls
    Grimes County Busted Newspaper
    Timeforce Choctaw
    Minnick Funeral Home West Point Nebraska
    If you have a Keurig, then try these hot cocoa options
    3 2Nd Ave
    Https E22 Ultipro Com Login Aspx
    Die 8 Rollen einer Führungskraft
    Star Wars Armada Wikia
    Wolfwalkers 123Movies
    San Jac Email Log In
    "Pure Onyx" by xxoom from Patreon | Kemono
    Eaccess Kankakee
    Baddies Only .Tv
    MethStreams Live | BoxingStreams
    Stolen Touches Neva Altaj Read Online Free
    Bus Dublin : guide complet, tarifs et infos pratiques en 2024 !
    Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
    Jewish Federation Of Greater Rochester
    State Legislatures Icivics Answer Key
    Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
    888-333-4026
    Why I’m Joining Flipboard
    Noaa Duluth Mn
    ESA Science & Technology - The remarkable Red Rectangle: A stairway to heaven? [heic0408]
    Unveiling Gali_gool Leaks: Discoveries And Insights
    Paul Shelesh
    Professors Helpers Abbreviation
    New Zero Turn Mowers For Sale Near Me
    Okta Login Nordstrom
    Mail2World Sign Up
    Where Is Darla-Jean Stanton Now
    Loss Payee And Lienholder Addresses And Contact Information Updated Daily Free List Bank Of America
    Gainswave Review Forum
    Qvc Com Blogs
    Latest Posts
    Article information

    Author: Msgr. Benton Quitzon

    Last Updated:

    Views: 6016

    Rating: 4.2 / 5 (63 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Msgr. Benton Quitzon

    Birthday: 2001-08-13

    Address: 96487 Kris Cliff, Teresiafurt, WI 95201

    Phone: +9418513585781

    Job: Senior Designer

    Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

    Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.