FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In creating production rule using BNF, this part is where any set of combinations of terminals which usually presented by capital letters or inside of “< >".
A
Terminals
B
Non-Terminals
C
Recursive Case
D
Base Case
Explanation: 

Detailed explanation-1: -A production rule simply states that the symbol on the left-hand side of the := must be replaced by one of the alternatives on the right hand side. The alternatives are separated by |s. (One variation on this is to use ::= instead of :=, but the meaning is the same.)

Detailed explanation-2: -A BNF definition is called a production. So, the key difference between a terminal and a nonterminal is that a terminal cannot be broken into smaller parts-in fact, every terminal is a single token (see Tokens). On the other hand, nonterminals are composed of a (possibly empty) sequence of terminals and nonterminals.

There is 1 question to complete.