COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
TRUE
|
|
FALSE
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -Terminal symbols are the elementary symbols of the language defined by a formal grammar. Nonterminal symbols (or syntactic variables) are replaced by groups of terminal symbols according to the production rules. The terminals and nonterminals of a particular grammar are two disjoint sets.
Detailed explanation-2: -Terminal symbols represent context that appear in the strings generated by the grammar. Nonterminal symbols are placeholders for patterns of terminal symbols that can be generated by nonterminals. A start symbol must be used as a special nonterminal to appear during the initial string generation.
Detailed explanation-3: -Terminal symbols are those which are the components of the sentences generated using a grammar and are represented using small case letter like a, b, c etc. Non-Terminal Symbols are those symbols which take part in the generation of the sentence but are not the component of the sentence.
Detailed explanation-4: -Context-Free Grammar Non-terminals are syntactic variables that denote sets of strings. The non-terminals define sets of strings that help define the language generated by the grammar. A set of tokens, known as terminal symbols (). Terminals are the basic symbols from which strings are formed.