Compiler design -Quiz2

Compiler design -Quiz2

University

15 Qs

quiz-placeholder

Similar activities

Variables and Functions

Variables and Functions

KG - University

10 Qs

2022-2023 HDL Prelim Part 1

2022-2023 HDL Prelim Part 1

University

16 Qs

Computer programming for 2nd chap.

Computer programming for 2nd chap.

10th Grade - Professional Development

12 Qs

compiler design quiz

compiler design quiz

University

15 Qs

EECE 1313 Quiz#2 Sem 1, 2018/2019

EECE 1313 Quiz#2 Sem 1, 2018/2019

University

10 Qs

321 - Quiz07

321 - Quiz07

University

10 Qs

ITP  Quiz

ITP Quiz

University

10 Qs

Quiz 10 Susulan  Teori Bahasa dan Otomata 2022-1

Quiz 10 Susulan Teori Bahasa dan Otomata 2022-1

University

10 Qs

Compiler design -Quiz2

Compiler design -Quiz2

Assessment

Quiz

Computers

University

Hard

Created by

Pitchaimanickam B

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The regular expression represents

part of the language

can not represent any language

Constituent string of a language

None of the other options

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The output of the lexical analyzer is

A set of RE

Syntax Tree

set of tokens

String char

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Two Important lexical categories are

White Space

Comments

None of the mentioned

White Space & Comments

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

when the expression sum=3+2 is tokenized then what is the token category of 3

Identifier

Assignment operator

Integer integral

Addition operator

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A DFA cannot have

Epsilon transitions

An isolated state

More than one transition from a state on same in out

All of the other options

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A regular expression for accepting strings with exactly one 1 more than 0’s is

0*1

(0|1)*1(0|1)*

(0|1)*1(0|1)*|1(0|1)*

Not possible

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Number of possible epsilon transitions from a state in an NFA is

One

At most one

Many

Zero

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?