0% found this document useful (0 votes)
23 views

1.1.2 Assignment 3

The document discusses hexadecimal systems and contains questions about converting between binary, hexadecimal, and decimal numbers. It also contains questions about encrypting letters by shifting their binary representations and converting to hexadecimal.

Uploaded by

Huzaifa Qamari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

1.1.2 Assignment 3

The document discusses hexadecimal systems and contains questions about converting between binary, hexadecimal, and decimal numbers. It also contains questions about encrypting letters by shifting their binary representations and converting to hexadecimal.

Uploaded by

Huzaifa Qamari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Science Assignment

1.1 Information Representation

1.1.2 Hexadecimal Systems


Q1) Express the following binary numbers into hexadecimal and denary numbers:

(a) 0101 1111


(b) 0101 0101
(c) 1111 1111
(d) 01111 0011
(e) 0111 1111
(f) 0000 1100 0000 1110
(g) 0111 0000 1111 0101
(14)

Q2) Letters from the alphabet are represented in a computer by the following denary (base 10) values:

A = 97

G = 103

I = 105

L = 108

N = 110

The word “A L I G N” is stored as: 97 108 105 103 110

(a) Convert each of the five values to binary. The first one has been done for you
Letters Denary Value
A(97): 0 1 1 0 0 0 0 1
L (108):
I (105):
G (103):
N (110):
(2)
(b) An encryption system works by shifting the binary value for a letter one place to the left. “A” then becomes:
1 1 0 0 0 0 1 0
This binary value is then converted to hexadecimal; the hexadecimal value for “A” will be:
C2
For the two letters “L” and “G”, shift the binary values one place to the left and convert these values into
hexadecimal:

Page 1 of 2
Computer Science Assignment
1.1 Information Representation

1.1.2 Hexadecimal Systems


(4)

Page 2 of 2

You might also like