
CD Quiz Batch B2 1a and 1 b programs

Quiz
•
Computers
•
University
•
Medium
Sneha M
Used 8+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Yacc implements which parser?
LALR
CLR
SLR
LR(0)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part produces the target code from the intermediate representation of source code?
Lexical Analysis
Synthesis
Analysis
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Phase of the compiler identifies the error(if present) in the following C code:
a+b=c;
Lexical analysis
Syntax analysis
Semantic analysis
There are no errors in the code
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Calculate the FIRST set for the following grammar
S → aBDh | C
B → cC
C → bC / ∈
D → EF
E → g / ∈
F → f
First(S) = { a,b,∈} First(B) = { c } First(C) = { b , ∈ } First(D) = { g , f } First(E) = { g , ∈ } First(F) = { f}
First(S) = { a,b} First(B) = { c } First(C) = { b , ∈ } First(D) = { g , f, ∈} First(E) = { g , ∈ } First(F) = { f}
First(S) = { a,b} First(B) = { c } First(C) = { b , ∈ } First(D) = { g , f } First(E) = { g} First(F) = { f }
None of the above
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Compute Follow set for the following grammar for constructing the predictive parsing table:
S → AB
A → aB / AdC
B → b | ∈
C → g
Fo(S) = { $ }
Fo(A) = { $,d,b}
Fo(B) = { $,d,b}
Fo(C) = { $,d,b }
Fo(S) = { $ }
Fo(A) = { d,b,∈}
Fo(B) = { b,d,b}
Fo(C) = { d,b,∈ }
Fo(S) = { $ }
Fo(A) = { ∈,d,b}
Fo(B) = { $,d,b}
Fo(C) = { $,d,b }
First(S) ={ a, b} First(A) = { a } First(A’) = { d , ∈ } First(B) = { b ,∈} First(C) = { g }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a predictive parsing table in compiler design?
To store the parsing rules for each non-terminal symbol
To generate the intermediate code from the source code
To optimize the lexical analysis phase
To execute the target code directly
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the role of a syntax analyzer in the compilation process.
To convert the source code into tokens
To check the syntax of the source code based on the grammar rules
To generate the final executable code
To perform optimization on the intermediate code
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of the LR(0) parser in compiler construction?
It is used to perform lexical analysis
It is a type of shift-reduce parser
It is capable of handling left-recursive grammars
It is used to generate the abstract syntax tree
Similar Resources on Wayground
12 questions
Introduction to Computing

Quiz
•
University
10 questions
Pre Test - Introduction to Python Programming Quiz

Quiz
•
12th Grade - University
10 questions
JavaScripting

Quiz
•
University
8 questions
Operating System - Chapter 4

Quiz
•
University
10 questions
WINTER 24-25 CD

Quiz
•
University
10 questions
Python Basics

Quiz
•
12th Grade - University
13 questions
Chap 1: What is a program made of?

Quiz
•
University
13 questions
CSE_A1_QUIZ 6(15-05-23)

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University