...
Question 10276 – Theory-of-Computation
March 6, 2024
Question 10303 – Theory-of-Computation
March 6, 2024
Question 10276 – Theory-of-Computation
March 6, 2024
Question 10303 – Theory-of-Computation
March 6, 2024

Question 10278 – Theory-of-Computation

Which of the following features cannot be captured by context-free grammars?

Correct Answer: C

Question 2 Explanation: 
Context free grammars are used to represent syntactic rules while designing a compiler.
Syntactic rules not checking the meaningful things such as if a variable is declared before it use (or) not.
Like this, things are handled by semantic analysis phase.
A
Syntax of if-then-else statements
B
Syntax of recursive procedures
C
Whether a variable has been declared before its use
D
Variable names of arbitrary length
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!