ASCII Flashcards

1
Q

ord()

A

Function it takes a character and returns the ASCII decimal value (an integer) of the character.You can show this with the type() function.

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

chr()

A

Converts the ASCII decimal value and converts the character it represents.

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

Encryption

A

Is the process of encoding information for security purposes

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

What is ASCII?

A

ASCII (American Standard Code for Information Interchange) is a character encoding standard used in computers and other devices to represent text.

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

How many bits does ASCII use?

A

ASCII uses 7 bits to represent 128 characters.

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

What types of characters does ASCII include?

A

ASCII includes control characters (non-printable) and printable characters such as uppercase and lowercase English letters, digits, punctuation marks, and special characters.

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

What is the ASCII code for the letter ‘A’?

A

The ASCII code for the letter ‘A’ is 65.

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

What is the ASCII code for the number ‘1’?

A

The ASCII code for the number ‘1’ is 49.

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

What is the limitation of ASCII?

A

ASCII is limited to basic characters used in English, prompting the development of other encoding systems like Unicode.

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

What is Unicode?

A

Unicode is a universal standard character set, with the first 128 characters being the same as ASCII.

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

What is UTF-8?

A

UTF-8 (Unicode Transformation Format - 8-bit) is a character encoding system that encodes all possible characters in the Unicode character set.

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

What are the key features of UTF-8?

A

Key features of UTF-8 include variable-length encoding, backward compatibility with ASCII, efficiency for English, and universal support.

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

How does UTF-8 encode ASCII characters?

A

UTF-8 encodes all ASCII characters (values 0–127) as a single byte.

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

How many bytes does UTF-8 use for other characters?

A

UTF-8 uses 2 to 4 bytes for characters beyond ASCII, including symbols and letters from other languages.

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

Why is UTF-8 efficient for English?

A

UTF-8 is efficient for representing text in English since ASCII characters only require 1 byte.

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

Why is UTF-8 widely used?

A

UTF-8 is the most common encoding format used on the web and in modern systems because it can handle any character from the Unicode standard.

17
Q

What is an example of UTF-8 encoding?

A

The letter ‘A’ (ASCII value 65) is encoded as 01000001 in UTF-8 (1 byte).