Coding Text Flashcards

1
Q

What does each memory circuit in a computer represent?

A

Each memory circuit can be ON or OFF, represented as 1 or 0.

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

How many combinations are possible with:
(i) 2 bits (ii) 3 bits (iii) 4 bits (iv) 8 bits?

A

2 bits: 4

3 bits: 8

4 bits: 16

8 bits: 256

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

How many characters can ASCII represent with 7 bits?

A

128 characters.

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

What is the ASCII code in binary and decimal for the character ‘0’?

A

Binary: 00110000
Decimal: 48.

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

What is the purpose of a parity bit?

A

It is used for error detection by ensuring a correct number of 1s in a byte.

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

What are the rules for even parity?

A

Add a parity bit:

If odd number of 1s → Parity bit = 1

If even number of 1s → Parity bit = 0

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

How does the majority voting method detect and correct errors?

A

Each bit is transmitted three times, and the most common value in the triplet is used.

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

What is the role of a check digit in error detection?

A

It is calculated from other digits in the code to identify human errors during data entry.

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

What are two advantages of Unicode compared to ASCII?

A
  1. Represents a larger set of characters, including various languages.
  2. Standardized globally for better data compatibility.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name a disadvantage of Unicode compared to ASCII.

A

Unicode uses more memory as it has a larger range.

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

What is the binary for character ‘A’ in ASCII?

A

Binary: 01000001
Decimal: 65.

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

What will the parity bit be for ‘P’ (ASCII: 01010000) with even parity?

A

: 1 (making it 101010000).

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

What is a single binary digit called?

A

A bit (Binary Digit).

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

How many bits are in a byte, and what does a byte represent?

A

byte has 8 bits and typically represents one character in memory.

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

What is the decimal value of the ASCII code for the letter ‘B’ and how is it represented in 7-bit binary?

A

Decimal: 66
Binary: 1000010.

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

What is the pattern for numeric characters in ASCII, starting from ‘0’?

A

Numeric ‘0’ starts at 48, with each subsequent digit incrementing by 1.
E.g., ‘1’ = 49, ‘2’ = 50, etc.

17
Q

What is the difference between ASCII codes for uppercase and lowercase letters?

A

Lowercase letters are 32 more than their corresponding uppercase letters.
Example: ‘A’ = 65, ‘a’ = 97.

18
Q

What is a primary advantage of the ASCII system?

A

It is compact, using only 7 bits to represent 128 characters.

19
Q

What is a limitation of ASCII compared to Unicode?

A

ASCII cannot represent characters beyond the basic English alphabet, numbers, and symbols.

20
Q

What is the difference between even and odd parity?

A

Even parity ensures the total number of 1s is even.

Odd parity ensures the total number of 1s is odd.

21
Q

In a transmitted bit sequence 010, what correction is made by majority voting?

A

The sequence is corrected to 000, assuming the error occurred in one bit.

22
Q

How is the check digit calculated in a weighted number system?

A

Multiply each digit by its weight, sum the results, divide by 11, subtract the remainder from 11.

23
Q

What is Unicode, and how does it differ from ASCII?

A

Unicode is a character encoding standard capable of representing characters from all languages, while ASCII is limited to 128 or 256 characters.

24
Q

How does parity bit error detection differ from majority voting?

A

Parity detects single-bit errors but cannot correct them, while majority voting can both detect and correct errors.

25
Q

Calculate the parity bit for the sequence 1001010 using even parity.

A

Parity bit = 1; the sequence becomes 11001010.

26
Q

What is the binary for the ASCII character ‘&’?

A

00100110

27
Q

How many characters can Unicode represent compared to ASCII?

A

Unicode can represent over 1 million characters, compared to 128 or 256 for ASCII.