CS Flashcards

1
Q

What is unicode?

A

A universal encoding of all text characters. There’s over 140k characters encoded in Unicode represented by code points like U+0041.

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

What are UTF encodings?

A

Encodings like UTF-8 and UTF-16 are encoding schemes that specify how code points like U+0041 are represented in bytes. For example, UTF-8 specified that unicode characters are represented in 1 (the range of ASCII characters) to 4 bytes.

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

What is BOM in the context of Unicode?

A

A byte order mark. It is required in UTF-16 and UTF-32 to indicate endieanness - big endian being most significant byte first and little endian being the least significant byte first.

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

What is parsing?

A

Parsing is the process of checking if textual input is syntactically correct according to some grammar.

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

What is recursive descent parsing?

A

Recursive-descent parsing is one of the simplest parsing techniques that is used in practice. Recursive-descent parsers are also called top-down parsers, since they construct the parse tree top down (rather than bottom up).

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

What is a grammar?

A

A grammar is a definition of the syntax of a language.

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

What is a statement?

A

A group of expressions or other statements that you design to carry out an action.

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

What is an expression?

A

Anything that evaluates to a value.

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