0% found this document useful (0 votes)
9 views4 pages

JRII Worksheet

The document is a test for a computer class focusing on data representation, including binary to denary conversion, binary addition, and image storage in binary code. It covers concepts such as the maximum decimal number for 8-bit binary, ASCII representation, and includes practical exercises for students. The test also features examples of binary calculations and explanations of how images can be represented in binary format.

Uploaded by

Sobia Shabbir
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)
9 views4 pages

JRII Worksheet

The document is a test for a computer class focusing on data representation, including binary to denary conversion, binary addition, and image storage in binary code. It covers concepts such as the maximum decimal number for 8-bit binary, ASCII representation, and includes practical exercises for students. The test also features examples of binary calculations and explanations of how images can be represented in binary format.

Uploaded by

Sobia Shabbir
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/ 4

BAHRIA COLLEGE ANCHORAGE

CAMBRIDGE WING
TEST

Subject: Computer Class/Section: JR II A/B


Time: ___________________
Topic: Data Representation 1.1
Name: ___________________

[1]
(b) A binary value is stored in a register.
128 64 32 16 8 4 2 1

Convert this binary into its denary number.


Show working here:
(128 x 0) + (64 x 1) + ( 32 x 0) + (16 x 1) + ( 8 x 0 ) + ( 4 x 0 ) + ( 2 x 1) + ( 1 x 0)
………………………………………………………………………………………………………………………
0 + 64 + 0 + 16 + 0 + 0 + 2 + 0
………………………………………………………………………………………………………………………
82
…………………………………………………………………………………………………………………[2]
(c) Explain what happens when you add these two binary values:
01101010 + 10011000

………………………………………………………………………………………………………………………
0 1 1 0 1 0 1 0

1 0 0 1 1 0 0 0
………………………………………………………………………………………………………………………
1 0 0 0 0 0 0 1 0 This addition causes and OVERFLOW error.
………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………..[2]
(d) Explain how simple images can be stores ad binary code in a digital file using the sample black

and white image below:

0 0 0 0 1 0 0 0 0
0 0 0 1 1 1 0 0 0
0 0 1 1 1 1 1 0 0
0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 0 0
0 0 1 1 1 1 1 0 0
0 0 1 1 0 1 1 0 0
0 0 1 1 0 1 1 0 0 [2]
0 0 1 1 0 1 1 0 0

Representing Black with 0 and White with 1. Also create a bitmap image on the space provided.

A simple image can be stored as binary code by converting it into a bitmap image. If
………………………………………………………………………………………………………………………

we have a black and whote image, means a two coloured image then we’ll calculate the
………………………………………………………………………………………………………………………

colour depth as 2^1=2 so 1 bit will be used to represent each pixel (colour) 1 bit for
………………………………………………………………………………………………………………………

black and 1 bit for white.


………………………………………………………………………………………………………………… [2]

(e) What is the largest decimal number that can be stored as an 8-bit binary?

255 as 2^ 8=256 and range is 0-255


………………………………………………………………………………………………………………… [1]

(f) What does 74 looks a like when it is stores as when A=63, a =97

01001010
Binary ……………………….

L
ASCII ………………………. [2]
BAHRIA COLLEGE ANCHORAGE
CAMBRIDGE WING
TEST

Subject: Computer Class/Section: JR II A/B


Time: ___________________
Topic: Data Representation 1.1
Name: ___________________

[1]
(b) A binary value is stored in a register.

1 1

Convert this binary into its denary number.


Show working here:
(128 x 0) + (64 x 1) + ( 32 x 1) + (16 x 1) + ( 8 x 0 ) + ( 4 x 1 ) + ( 2 x 1) + ( 1 x 0)
………………………………………………………………………………………………………………………
0 + 64 + 32 + 16 + 0 + 4 + 2 + 0
………………………………………………………………………………………………………………………
118
…………………………………………………………………………………………………………………[2]
(c) Explain what happens when you add these two binary values:
01101010 + 10011000

………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………..[2]
(d) Explain how simple images can be stores ad binary code in a digital file using the sample black

and white image below:

0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0
0 0 0 0 1 1 0 0 0
0 0 0 0 1 1 1 0 0
0 0 0 0 1 1 1 0 0
1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 0 0 [2]
0 0 0 0 0 0 0 0 0
Representing Black with 0 and White with 1. Also create a bitmap image on the space provided.

………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………… [2]

(e) What is the largest decimal number that can be stored as an 8-bit binary?

………………………………………………………………………………………………………………… [1]

(f) What does 80 looks a like when it is stores as when A=63, a =97

01010000
Binary ……………………….

R
ASCII ………………………. [2]

Convert the following decimal number in binary:

178
10110010
………………………………………………………..…………………………………………………………[1]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy