Character Codes Flashcards

1
Q

Describe BCD

A

BCD stands for Binary Coded Decimal
It is one of the early computer codes
It uses 6 bits to represent a symbol
It can represent 64 (2^6) different characters

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

Describe EBCDIC

A

EBCDIC stands for Extended Binary Coded Decimal Interchange Code
It uses 8bits to represent a symbol
It can represent 256(2^8) different characters

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

What are Zoned Decimal Numbers

A

ZDN are used to represent numeric values(positive, negative or unsigned) in EBCDIC

A sign indicator(C for plus, D for minus, and F for unsigned) is used in the zone position of the rightmost digit.

Zones for all other digits remain as F, the zone value for numeric characters in EBCDIC

In zoned format, there is only digit per byte.

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

Describe ASCII

A

ASCII stands for American Standard Code for Information Interchange

ASCII is of two types - ASCII-7 and ASCII-8

ASCII-7 uses 7 bits to represent a symbol and can represent 128(2^7) characters

ASCII-8 uses 8 bits to represent a symbol and can represent 256(2^8) characters

First characters in ASCII-7 and ASCII-8 are the same.

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

Why Unicode

A

No single encoding system supports all languages
Different encoding systems conflict

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

Features of unicode

A
  1. Provide a consistent way of encoding multilangual plain text.
  2. Defines code for characters used in all major languages of the world
  3. Defines codes for special character, mathematical symbols, technical symbols, and diacritics.
  4. Capacity to encode as many as a million characters
  5. Assigns each character a unique numeric value and name.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Encoding forms

A

UTF-8, UTF-16, UTF-32

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

How does sorting in EBCDIC work

A

Numeric characters are treated to be greater than alphabetic characters. Hence A1, 1A, 23

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

How does sortin in ASCII work

A

Numeric charaters are treated to be less than alphabetic characters. Hence 1A,23,2

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