Quiz II

Quiz II

University

15 Qs

quiz-placeholder

Similar activities

FSA,DFA dan NFA

FSA,DFA dan NFA

University

15 Qs

Introduction to TOC

Introduction to TOC

University

10 Qs

UTS PEMROGRAMAN KOMPUTER DAN ALGORITMA 1

UTS PEMROGRAMAN KOMPUTER DAN ALGORITMA 1

University

10 Qs

Finite Automata

Finite Automata

University

10 Qs

Grammer and PDA

Grammer and PDA

University

10 Qs

QUIZ CD S5 7-4-22

QUIZ CD S5 7-4-22

University

10 Qs

Tugas TBO

Tugas TBO

University

11 Qs

TOC Quiz-3

TOC Quiz-3

University

14 Qs

Quiz II

Quiz II

Assessment

Quiz

Computers

University

Easy

Created by

Mrs. Muthulakshmi

Used 7+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?