CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In context free grammar, terminal symbols refers to _____________.

A
Tokens
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Keywords for a programming language
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Productions rule
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Start symbol
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Keywords for a programming language

In context free grammar, terminal symbols refer to keywords for a programming language.

Terminal symbols are literal symbols which may appear in the outputs of the production rules of a formal grammar and which cannot be changed using the rules of the grammar.

A context-free grammar (CFG) is a set of recursive rewriting rules used to generate patterns of strings. A CFG consists of the following components: a set of terminal symbols, which are the characters of the alphabet that appear in the strings generated by the grammar.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Organised Data
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon