Classic Classic Quiz Syntax Diagram by Jakobho Jakobho 18 played - 10 yrs ago A popular method way of defining grammatical rules of a language or data type is to use a graphical method called Syntax Diagrams QUIZ 7 QUESTIONS medium 1 State the Purpose of Syntax Diagrams : To define terms ambiguouslyTo define terms unambiguously for a computer languageIt is an unambiguous method of writing mathematical expressions without brackets 2 The syntax diagram is used to define a variable in the language. Why is the expression %xy2 NOT a variable? Only 1 letter allowed, this has 2Only 2 letters allowed, this has 1It has a % at the start 3 The syntax diagram is used to define a variable in the language. Why is the expression %34 NOT a variable? There are too many numbersIt has a % at the startLetter missing, there must be one letter 4 In a Syntax Diagram, what does an arrow indicate? The direction in which you are allowed to read the overall diagramYou can go both waysTo define terms unambiguously for a computer language 5 What is this symbol called? An Arrow SymbolA Square SymbolTerminal Symbol 6 In a Syntax Diagram, what does this show? A Terminal SymbolYou should read it from left to rightYou should read it from right to left 7 Assuming Letters and Digits are defined as normal, a 'Thingy' is defined using the following syntax diagram. Which of the following are valid Thingies according to this definition? 5AA2999923232A0293OO4 A mistake in this Quiz ? Contact the author Commentaires