Classic
Quiz General knowledge

A2 Computing - BNF revision quiz

6 played - 8 yrs ago

This quiz contains questions on BNF and syntax diagrams for the OCR A2 computing course.

 

Medium QUIZ 7 QUESTIONS
medium
1

In BNF, what does '|' mean?

2

What does 'BNF' stand for?

3

What is the need for BNF?

4

A system uses the following definitions in BNF.
< DIGIT > : : = 0|1|2|3|4
< CHAR > : : = P|Q|R|S
< CODE > : : < DIGIT > < CHAR > | < DIGIT > < CODE >

Why is T3 not a valid code?

5
Rules : 
< LETTER > : : = A|B|C
< DIGIT > : : = 0|1|2|3|4|5|6|7|8|9

Which of the following are valid?

Rules :
< LETTER > : : = A|B|C
< DIGIT > : : = 0|1|2|3|4|5|6|7|8|9

Which of the following are valid?

6

A value has at least 3 digits. Using BNF, define "value".

7

Which of the following stack codes are invalid?