Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 6

Hexis College

Computer Science 9618


Chapter 1 – Test
Name: ____________________________. Class: AS Level
Marks: 50 Time : 1 hr
______________________________________________________________________

1 a) What is meant by lossless and lossy file compression?

_____________Lossy file compression is when a file size is permenataly reduced. This is done in JPEG and
MP3. In jepg images the amount of pixels in the image remains the same and the size is reduced by removing
features which cannot be noticed by human eyes. In MP3 sound outside of human hearing range are removed
to reduce the file size.
____________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

______________________________________________________________________________________[2]

2 a) Describe how music picked up by a microphone is turned into a digitised music file in a computer.

Analogue date cannot be stored in a computer. So the microphone has a analogue to digital converter which
converts the sound waves into a binary value which can be stored in the
computer._________________________________________________________________________________
________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

______________________________________________________________________________________[2]

b) Explain why it is often necessary to compress stored music files.


Describe how the music quality is essentially retained.

Files are compressed so the take up less space and they can be uploaded and downloaded faster.
Music quality is retained by removing the sound frequencies which are not in the human hearing range
_________________________________________________________________________________________

_________________________________________________________________________________________

1
_________________________________________________________________________________________

______________________________________________________________________________________[2]

3 a) What is meant by run length encoding?

__run length encoding is a way of loseless file compression, in which repeating data is stored. The first value is
the number of times the data is being repeated and the second value is the ASCII code of the data.
_______________________________________________________________________________________

_________________________________________________________________________________________

______________________________________________________________________________________[2]

4 a) Describe the differences between bit-map images and vector graphics.

_________________________________________________________________________________________

_________________________________________________________________________________________

_file size difference


_Different uses
Difference in image clarity
_____________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

______________________________________________________________________________________[4]

b) A software designer needs to incorporate images into her software to


add realism.

Explain what she needs to consider when deciding between using


bit-map images and vector graphics in her software.

_________________________________________________________________________________________

Image clarity
File size

______________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

2
_________________________________________________________________________________________

______________________________________________________________________________________[6]

1 a) The following bytes represent binary integers using the two’s complement
form. State the equivalent denary values.
i) 0 1 0 0 1 1 1 1

____79___________________________________________________________________________________
__

______________________________________________________________________________________[1]

ii) 1 0 0 1 1 0 1 0

______154________________________________________________________________________________
___

______________________________________________________________________________________[1]

iii) Write the integer −53 in two’s complement form.

___11000101______________________________________________________________________________
________

______________________________________________________________________________________[1]

iv) Write the maximum possible range of numbers using the two’s
complement form of an 8-bit binary number.

___1_____________________________________________________________________________________
_

______________________________________________________________________________________[1]

Give your answers in denary.

_________________________________________________________________________________________

______________________________________________________________________________________[2]

b) i) Write the denary integer 798 in binary-coded decimal (BCD) format.

___________________0111 1001 1000


___________________________________________________________________[1]

ii) Write the denary number that is represented by the following BCD number.

3
9776
_________________________________________________________________________________________

________________________________________________________________________________________

2 A software developer is using a microphone and a sound editing app to


collect and edit sounds for his new game.
When collecting sounds, the software developer can decide on the sampling
resolution he wishes to use.
a) i) State what is meant by sampling resolution. [1]
number of bits in a sample
_________________________________________________________________________________________

________________________________________________________________________________________

ii) Describe how sampling resolution will affect how accurate the
stored digitised sound will be. [2]

__if the sampling resolution is higher more bits will be sotred and clarity will be better
_______________________________________________________________________________________

________________________________________________________________________________________

b) The software developer will include images in his new game.


i) Explain the term image resolution. [1]

______number of pixels in a
image___________________________________________________________________________________

________________________________________________________________________________________

ii) One of the images is 16 384 pixels wide and 512 pixels high.
The developer decides to save it as a 256-colour bit-map image.
Calculate the size of the image file in gibibytes. [3]

_16384*512=______________________________________________________________________________
__________

4
________________________________________________________________________________________

________________________________________________________________________________________

3 a) Write the denary numbers 60, 27 and −27 in 8-bit binary two’s
complement form. [3]

_______00111100__________________________________________________________________________
_00011011
11100101______

________________________________________________________________________________________

________________________________________________________________________________________
b

d) Give the result of the following addition. [2]


01011001
+
01100001
1 1 1 1 1 0 1 0

Explain why the expected result is not obtained. [2]


________________________________________________________________________________________

________________________________________________________________________________________

________________________________________________________________________________________

4. a) Convert the denary number 95 into binary coded decimal (BCD). [2]
____1001 0101
____________________________________________________________________________________

________________________________________________________________________________________

________________________________________________________________________________________

b) Using two’s complement, carry out the binary subtraction:


00100011–01000100
and convert your answer into denary. [3]
____00100011=____23______________________________________________________________________
__________

0 1 0 0 0 1 0 0=44
________________________________________________________________________________________

__23-44 = -21
______________________________________________________________________________________

5
________________________________________________________________________________________

________________________________________________________________________________________

You might also like