A2 Computing - BNF revision quiz  

created by 046050 on 5 May 16, enabled by MWAPOLENI
Medium level (79% of success)    7 questions - 6 players
This quiz contains questions on BNF and syntax diagrams for the OCR A2 computing course.
 
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?
   
   
   

All comments (0)


Add in a Facebook