What is the lowest-level syntactic unit of a language, i.e. most basic units that you can see in a source code?

PL Chapter 03 04

Quiz
•
Computers
•
University
•
Hard

Murat Ak
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Sentence
Language
Lexeme
Token
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Is a context-free grammar (CFG) a recognizer or a generator?
Recognizer
Generator
Both
None
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If we can generate two different parse trees for the same sentence, it means the language is:
a context-free language
in BNF form
ambiguous
infinite
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In a language when we say x=4.56 x becomes a double automatically. So, the type here is a ... attribute.
synthesized
inherited
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = b + 3 {a > 1}
what is the weakest precondition for this statement?
b>-2
b>2
b<-2
b<2
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which are the most common top-down parsing algorithms?
Recursive descent
LR parsers
LL parsers
RR parsers
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is this?
Recursive descent parsing table
LL parsing table
LR parsing table
RR parsing table
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
IoT & Applications

Quiz
•
University
10 questions
TSSR - S14 - Journalisation et supervision

Quiz
•
University
10 questions
Compiler Parsing Techniques

Quiz
•
University
10 questions
Compiler Design

Quiz
•
University
15 questions
Parser - unit 2 and 3

Quiz
•
University
15 questions
Compiler Design Quiz CSE 1

Quiz
•
University
15 questions
SMART CARD 2 Get Started With AI

Quiz
•
University
10 questions
Android

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade