Discussion
State whether the following is true or false.
Every property a programming language requires can be checked by its context free grammar.
Answer: C
Correct answer: False
A context free grammar can describe the shape of a program but not conditions that depend on what has been declared elsewhere: that a variable is declared before use, that the types of an assignment agree, that a function is called with the right number of arguments. All of these are checked by semantic analysis, using the symbol table.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development