SA2 Computer Science Revision
SA2 Computer Science Revision
0000 0 0
0001 1 1
0010 2 2
0011 3 3
0100 4 4
0101 5 5
0110 6 6
0111 7 7
1000 8 8
1001 9 9
1010 A 10
1011 B 11
1100 C 12
1101 D 13
1110 E 14
1111 F 15
7. What are some basic functions of a web browser? (you all know this, but
you need to look at the textbook definitions).
● Web browser - software that connects to a domain name server (DNS) to locate IP
addresses.
● A browser interprets HTML web pages sent to a user’s computer so that the user
can read documents and watch multimedia.
8. How a parity block check might detect an error and how a parity byte
check works.
Parity block check: The data is stored in a virtual table with parity bits added to each row
and column, and a single corrupted bit can be detected at the intersection.
Parity byte check: The server can detect an error if it detects a byte with an odd number of
1s, contrary to its expectation of every byte to contain an even number of 1s.
Example:
1. A photograph is 1024 x 1080 pixels and uses a colour depth of 32 bits. How many
photographs of this size would fit onto a memory stick of 64 GiB?
2. A camera detector has an array of 2048 by 2048 pixels and uses a colour depth of
16. Find the size of an image taken by this camera in MiB.
15. Be able to define pixel and resolution.
● Pixel: derived from the term ‘picture element’, this is the smallest element used to
make up an image on a display.
● Image resolution: the number of pixels in the X-Y direction of an image, for
example, 4096 x 3192 pixels.
16. RAM - what gets stored in it?
● Store data, files, and part of an application or part of the operating system
currently in use.
17. Binary denominations - nibbles, mebibytes, pebibytes...
● Nibble: 4 binary digits/half of an 8-bit byte
1 kibibyte (1 KiB) 2
10
1 mebibyte (1 MiB) 2
20
1 gibibyte (1 GiB) 2
30
1 tebibyte (1 TiB) 2
40
1 pebibyte ( 1 PiB) 2
50
1 exbibyte (1 EiB) 2
60
Compiler Interpreter
Translates a high-level language program into Executes a high-level language program one
machine code. statement at a time.
One high-level language statement can be One high-level language program statement
translated into several machine code may require several machine code instructions
instructions. to be executed.
Compiled programs are run without the Interpreted programs cannot be run without
compiler. the interpreter.
A compiled program is usually distributed for An interpreter is often used when a program is
general use. being developed.