2.3 Characters Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How are characters represented and stored in binary?

A

Each character is represented by a binary value

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

Do uppercase characters have different values from lowercase characters?

A

Yes, even punctuation symbols have their own character code

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

How many characters are there on a standard keyboard?

A
  • 26 lowercase letters
  • 25 uppercase letters
  • 10 numbers
  • around 36 other characters

which all sum up to around 98 characters

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

How many bits would you need to represent the combinations of each character?

A

7 bits which can store up to 128 different combinations (aka 128 different characters)

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

What are character sets?

A

A set of letters, symbols and digits that can be represented by a computer

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

What are the 2 major character sets in use today?

A

ASCII, Unicode

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

What is ASCII

A

American Standard Code for Information Interchange has become the standard code used worldwide

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

What was ASCII developed for and when?

A

In the 1960’s representing the English alphabet

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

How many characters can ASCII encode?

A

128 (7 bits) characters

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

What are the characters used in ASCII?

A
  • numbers 0-9
  • Upper and lower case characters from a-z
  • Punctuation symbols
  • Space character
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the ASCII set, why is the character ‘7’ not the same in the binary value for ‘7’?

A

ASCII is a character set, which is used to represent language, whereas the binary number 7 is an integer which is represented in programming

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

ASCII groups and sequences

A

Characters are commonly grouped and run in sequence
- Numeric characters run 0-9 run consecutively from 48-57 on the ASCII table

A-Z characters are from 65-90
a-z characters are from 97-122

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

What are the differences between 7 bit and 8 bit ASCII?

A

7 bit ASCII has 128 different characters that can be encoded

8 bit ASCII can have up to 256 different characters that can be encoded

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

Can you do arithmetic with characters?

A

No

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

What is called when changing a data type from ASCII to binary in a program?

A

Casting

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

How many bits was Unicode developed to use?

A

16 or 32