
Syntax Directed Definition
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
ALDO STALIN J L
Used 19+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What data structure in a compiler is used for managing information about variables and their attributes?
Abstract syntax tree
Symbol table
Semantic stack
Parse table
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value does the variable a have after ALL of the code above executes?
int a;
int b;
a=1;
b=a++;
1
2
3
None
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a syntax directed translation scheme, if value of an attribute of a node is a function of the values of the attributes of its children, then it is called
synthesized attribute
inherited attribute
canonical attribute
None of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Inherited attribute is a natural choice in
keeping track of variable declaration
checking for the correct use of L-values and R-values
both (a) and (b)
None of these
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Syntax directed translation scheme is desirable because
it is based on the syntax
its description is independent of any implementation
it is easy to modify
all of these
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is not true about syntax and semantic parts of a computer language?
Syntax is generally checked by the programmer.
Semantics is the responsibility of the programmer
Semantics is checked mechanically by a computer.
Both (b) and (c)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Type checking is normally done during
lexical analysis
syntax analysis
syntax directed translation
code optimization
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
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
11 questions
SCM and Logistics
Quiz
•
University
15 questions
UIT 2221 MALWARE (COPTPA)
Quiz
•
University
10 questions
UTILITY PROGRAM
Quiz
•
University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
