
CD VIVA

Quiz
•
Computers
•
University - Professional Development
•
Hard
Praveena T
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The number of tokens in the following C statement is
printf("i = %d, &i = %x", i, &i);
3
26
10
21
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a compiler, keywords of a language are recognized during
parsing of the program
the code generation
the lexical analysis of the program
dataflow analysis
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following statements is FALSE?
Context-free grammar can be used to specify both lexical and syntax rules.
Type checking is done before parsing
High-level language programs can be translated to different Intermediate Representations.
Arguments to a function can be passed using the program stack.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon- and unit-production (i.e., of type A -> є and A -> a) to parse a string with n tokens?
n/2
n-1
2n-1
2n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The grammar S → aSa | bS | c is
LL(1) but not LR(1)
LR(1)but not LR(1)
Both LL(1)and LR(1)
Neither LL(1)nor LR(1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Match all items in Group 1 with correct options from those given in Group 2.
Group 1 Group 2
P. Regular expression 1. Syntax analysis
Q. Pushdown automata 2. Code generation
R. Dataflow analysis 3. Lexical analysis
S. Register allocation 4. Code optimization
P-4. Q-1, R-2, S-3
P-3, Q-1, R-4, S-2
P-3, Q-4, R-1, S-2
P-2, Q-1, R-4, S-3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is a top-down parser?
Recursive descent parser.
Operator precedence parser.
An LR(k) parser
An LALR(k) parser
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python debugging

Quiz
•
University
10 questions
PLSQL and Cursor Quiz

Quiz
•
Professional Development
10 questions
Compiler Design

Quiz
•
University
5 questions
Leading and Trailing

Quiz
•
University
15 questions
HTML

Quiz
•
Professional Development
10 questions
TSSR - S14 - Journalisation et supervision

Quiz
•
University
10 questions
I Can Code!

Quiz
•
KG - University
15 questions
Exam 1 Practice

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade