Classic Quiz
Quiz General knowledge

A2 Computing - BNF revision quiz

6 played - 9 yrs ago

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

 

Medium QUIZ 7 QUESTIONS
medium
 
Question 1 / 7

In BNF, what does '|' mean?

 
Question 2 / 7

What does 'BNF' stand for?

 
Question 3 / 7

What is the need for BNF?

 
Question 4 / 7

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?

 
Question 5 / 7
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?

 
Question 6 / 7

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

 
Question 7 / 7

Which of the following stack codes are invalid?

Quiz General culture (11)
81 played - 1 mth ago
Quiz Numbers in CG (2)
160 played - 3 mths ago
Quiz General culture (12)
163 played - 3 mths ago
Quiz General culture supreme! (3)
102 played - 3 mths ago
Quiz Elephants in all their states!
114 played - 4 mths ago
Quiz Quit your bellyaching!
124 played - 4 mths ago
Quiz Logos and trademarks
135 played - 4 mths ago
Quiz The lions in all their states!
128 played - 5 mths ago
Quiz A little knowledge about dogs (2)
80 played - 5 mths ago
Quiz General culture aims low!
56 played - 5 mths ago
Quiz Original general culture!
145 played - 5 mths ago