The number of tokens in the following C statement isprintf("i = %d, &i = %x", i, &i);

Quiz II

Quiz
•
Computers
•
University
•
Easy

Mrs. Muthulakshmi
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
3.
26
10
21
2.
MULTIPLE CHOICE QUESTION
45 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
45 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
45 sec • 1 pt
The process of forming tokens from an input stream of characters is called
Liberalisation
Characterisation
Tokenization
None
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When expression sum=3+2 is tokenized then what is the token category of 3?
Identifier
Assignment operator
Integer Literal
Addition Operator
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which grammar defines Lexical Syntax?
Regular Grammar
Syntactic Grammar
Context free Grammar
Lexical Grammar
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Two Important lexical categories are
White Space
Comments
White Space & Comments
None
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Computer Language Quiz

Quiz
•
9th Grade - University
15 questions
Understanding Lexical Analyzer

Quiz
•
University
20 questions
Compiler Design

Quiz
•
University
20 questions
Compiler Design

Quiz
•
University
10 questions
Automata theory Q1

Quiz
•
University
15 questions
NFA Vs DFA

Quiz
•
University
15 questions
FLAT QUIZ

Quiz
•
University
20 questions
Compiler - Intro

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