SLR 12 - Coding Text & Graphics Flashcards

(24 cards)

1
Q

What is a character set?

A

A defined list of characters recognised by software and hardware, with each character represented by a unique binary code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many characters can be stored with 1 bit? Give an example.

A

2 characters. Example: 0 = A, 1 = B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many characters can be stored with 2 bits? Give an example.

A

4 characters. Example: 00 = A, 01 = B, 10 = C, 11 = D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is ASCII?

A

An early standard 7-bit character set representing 128 characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Extended ASCII?

A

An 8-bit character set representing 256 characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Unicode and why was it introduced?

A

A multilingual character set covering characters in every language, emojis, and symbols. Introduced to support global and multilingual use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How many bits did Unicode originally use and how many now?

A

Originally 16-bit, now typically 24-bit (over 16 million characters).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Compare ASCII and Unicode in terms of file size.

A

Unicode uses more bits per character, so files take more space compared to 7-bit ASCII.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between character code and pure binary representation of digits?

A

Character code represents a digit using binary values of characters (e.g. ‘5’ as binary of ASCII), while pure binary is the binary value of the number itself (5 = 101)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is error checking needed in data transmission?

A

To detect errors caused by interference or packet switching, where 0s and 1s may be lost or altered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name four error checking methods.

A

Parity Bits, Majority Voting, Checksums, Check Digits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a parity bit?

A

A bit added to binary data to make the number of 1s either even (even parity) or odd (odd parity).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is majority voting?

A

A method where data is sent multiple times, and the most common value for each bit is assumed to be correct.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a checksum and how does it work?

A
  1. Sender calculates checksum using algorithm, appends it to data.
  2. Data + checksum is sent.
  3. Receiver recalculates checksum using same algorithm.
  4. If checksum matches, data is correct; else, a resend is requested.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a check digit?

A

A final digit calculated from others in a code (e.g. barcodes, ISBN) to detect data entry errors like mistyping or scanning errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the two main ways of storing images in binary?

A

Bitmap and Vector.

17
Q

What is a bitmap image?

A

An image made of pixels, each pixel having a binary value representing its colour

18
Q

What is a vector image?

A

An image stored as shapes with mathematical properties like coordinates, colour, radius etc.

19
Q

Define resolution in bitmaps.

A

Number of dots (pixels) per inch (dpi).

20
Q

Define colour depth.

A

Number of bits used to store each pixel. More bits = more colours.

21
Q

Give an example of colour depth values.

A

1-bit = 2 colours
2-bit = 4 colours
24-bit = ~16 million colours

22
Q

How is file size of a bitmap calculated?

A

Colour depth × height (px) × width (px)

23
Q

What is metadata in a bitmap file?

A

Data about the image e.g. width, height, colour depth, format info.

24
Q

How are vector graphics stored?

A

As lists of objects with properties, e.g. Circle(Centre=9,13, Radius=6, Stroke=Blue, StrokeWidth=10px)