Compiler Design -Lexical analysis and Syntax analysis

Quiz
•
Computers
•
University
•
Medium
Suganya Ram
Used 4+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which phase of a compiler is responsible for converting source code into tokens?
Syntax analysis
Semantic Analysis
Lexical analysis
Code Generation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the syntax analysis phase of a compiler produce?
Intermediate code
Token streams
Symbol table
Parse tree
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In compiler design, which of the following is NOT a type of intermediate representation (IR)?
Abstract syntax tree
machine code
Three address code
Context free grammar
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the symbol table in a compiler?
To optimize code
To generate machine code
To store information about identifiers
To parse tokens
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of parsing, what does the 'Follow' set of a non-terminal symbol contain?
All terminal symbols that can appear at the beginning of the non-terminal's productions
All terminal symbols that can follow the non-terminal in the grammar's rules
All terminal symbols that can appear immediately after the non-terminal in any valid string
All symbols that can be derived from the non-terminal
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a grammar, how do you compute the First() set for a non-terminal?
it contains all terminal symbols that can appear at the beginning of any string derived from the non-terminal.
It contains all terminal symbols that can follow the non-terminal in the grammar.
It contains all symbols that can be derived from the non-terminal
It contains all symbols that can be produced by the non-terminal in the grammar’s rules.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an LL(1) parsing table, what does a conflict at a table entry indicate?
The grammar is left recursive
The parser has successfully parsed the input
The grammar is ambiguous
The table is complete and correct
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Instalación Android Studio

Quiz
•
University
8 questions
Basic Linux(L1)

Quiz
•
University
15 questions
Parser - unit 2 and 3

Quiz
•
University
10 questions
Teknik Parsing

Quiz
•
University
13 questions
CS201: Chapter 2

Quiz
•
University
12 questions
FASE 4 IMPLEMENTACION SERVICIO IMS

Quiz
•
University
15 questions
Compiler Design Quiz CSE 1

Quiz
•
University
10 questions
Compiler Parsing Techniques

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University