Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Language Processors
»
Parsing
Language Processors
unfold_more
double_arrow
Assemblers
double_arrow
Code Generation and Optimization
double_arrow
Compiler Design
double_arrow
Lexical Analysis
double_arrow
Linkers
double_arrow
Loaders
double_arrow
Parsing
quiz
Parsing
Parsing and Types of Parsers
1.
What is parsing?
A)
The process of dividing a string into individual words
B)
The process of analyzing a string of symbols according to the rules of a formal grammar
C)
The process of generating machine code from source code
D)
The process of debugging code for errors
Answer
keyboard_arrow_down
keyboard_arrow_up
B) The process of analyzing a string of symbols according to the rules of a formal grammar
Explanation
2.
Which of the following is a widely used compiler-compiler tool for generating parsers?
A)
Lex
B)
GCC
C)
Yacc
D)
Make
Answer
keyboard_arrow_down
keyboard_arrow_up
C) Yacc
Explanation
3.
Which type of grammar is typically used to define the syntax of programming languages for parsers?
A)
Regular Grammar
B)
Context-Free Grammar
C)
Context-Sensitive Grammar
D)
Unrestricted Grammar
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Context-Free Grammar
Explanation
4.
In what type of parsing are lexical analysis and parsing combined?
A)
Recursive parsing
B)
Context-sensitive parsing
C)
Scannerless parsing
D)
Syntactic parsing
Answer
keyboard_arrow_down
keyboard_arrow_up
C) Scannerless parsing
Explanation
5.
Which algorithm is commonly used for parsing context-free grammars in polynomial time?
A)
CYK algorithm
B)
Dijkstra's algorithm
C)
A* algorithm
D)
Kruskal's algorithm
Answer
keyboard_arrow_down
keyboard_arrow_up
A) CYK algorithm
Explanation
Posts navigation
1
2
chevron_right
Quick Links
Geography
chevron_right
Climatology
chevron_right
Oceanography
chevron_right
Geopolitics and Global Issues
chevron_right
Geomorphology
Agriculture
chevron_right
Major Crops and Classification
chevron_right
Processes and Factors of Soil Formation
chevron_right
Green Revolution
chevron_right
Mutations and Crop Improvement
Physics
chevron_right
Electricity and Magnetism
chevron_right
Thermodynamics
chevron_right
Waves and Optics
chevron_right
Geometrical Optics
Sports
chevron_right
Olympics
chevron_right
Football
chevron_right
Cricket
chevron_right
Common Wealth Games