Search Header Logo

Quiz II

Authored by Mrs. Muthulakshmi

Computers

University

Used 7+ times

Quiz II
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?