Theory Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
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
11
Q

(a) The following assignment statements are invalid. Give the reason in each case. (i) xy = xy ^ c4 Reason ……………………………………………………………………………………………………………… ………………………………………………………………………………………………………………………[1] (ii) zy = zy \ 10 Reason ……………………………………………………………………………………………………………… ………………………………………………………………………………………………………………………[1] (iii) yy := xz ^ − 6 Reason ……………………………………………………………………………………………………………… ………………………………………………………………………………………………………………………[1] (b) Complete the Backus-Naur Form (BNF) for the syntax diagrams on the opposite page. ::= ………………………………………………………………………………………………………………………………… ::= ………………………………………………………………………………………………………………………………… ::= ………………………………………………………………………………………………………………………………… ::= ………………………………………………………………………………………………………………………………… [4] (c) Rewrite the BNF rule for a variable so that it can be any number of letters. ::= ……………………………………………………………………………………………………………………………..[2]

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