
CSE334_CA10_Lexical analysis

Quiz
•
Computers
•
University
•
Medium
Pushpendra Pateriya
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The number of tokens in the following C statement is printf("HELLO WORLD");
8
9
5
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a compiler, keywords of a language are recognized during
the lexical analysis of the program
code generation
parsing of the program
dataflow analysis
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
Finite state automata
Deterministic pushdown automata
Non-Deterministic pushdown automata
Turing Machine
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following statements: (I) The output of a lexical analyzer is groups of characters. (II) Total number of tokens in printf("i=%d, &i=%x", i, &i); are 11. (III) Symbol table can be implementation by using array and hash table but not tree. Which of the following statement(s) is/are correct?
Only (I)
Only (II) and (III)
All (I), (II), and (III)
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following statements is FALSE?
High-level language programs can be translated to different Intermediate Representations.
Context-free grammar can be used to specify both lexical and syntax rules.
Type checking is done before parsing.
Arguments to a function can be passed using the program stack.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}. T1: a?(b∣c)*a T2: b?(a∣c)*b T3: c?(b∣a)*c If the string bbaacabc is processed by the analyzer, which one of the following is the sequence of tokens it outputs?
T1T2T3
T3T3
T1T1T3
T2T1T3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of a lexical analyzer is
Machine code
A parse tree
A stream of tokens
Intermediate code
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
OS quiz

Quiz
•
University
10 questions
FOP - CHAPTER 3

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
11 questions
Basic HTML & HTML5

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
20 questions
C Quest 2.0

Quiz
•
University
20 questions
HTML

Quiz
•
KG - University
20 questions
Computer Architecture

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University