
CD Quiz Batch B2 1a and 1 b programs
Authored by Sneha M
Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Information systems concepts
Quiz
•
University
10 questions
Soal SKD
Quiz
•
University - Professi...
13 questions
L1 - Computer Networks
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
Quiz
•
University
11 questions
NHÓM 3: XÁC ĐỊNH DỰ ÁN
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University