Classic Classic A2 Computing - BNF revision quiz by 046050 046050 6 played - 8 yrs ago This quiz contains questions on BNF and syntax diagrams for the OCR A2 computing course. QUIZ 7 QUESTIONS medium 1 In BNF, what does '|' mean? AndOrNot 2 What does 'BNF' stand for? Backus-Naur FormBig Normal FormBinary Normal Form 3 What is the need for BNF? To unambiguously define the algorithms of computer language.To unambiguously define the syntax of computer language.None of the above 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? T is not3 is notIt is too short 5 Rules : < LETTER > : : = A|B|C < DIGIT > : : = 0|1|2|3|4|5|6|7|8|9 Which of the following are valid? E@9F55C@9956 6 A value has at least 3 digits. Using BNF, define "value". < VALUE > : : = < DIGIT >< DIGIT >< DIGIT< VALUE > : : = < DIGIT >< DIGIT >< DIGIT > | < VALUE > < DIGIT >< VALUE > : : = < DIGIT > 7 Which of the following stack codes are invalid? A : 0Z : ANone, they are all valid A mistake in this Quiz ? Contact the author Commentaires