Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ATCD - MCQ - IAE1 Portions

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Finite State Machine is ________tuple machine

a)

4

b)

5

c)

6

d)

7

2.

Push Down Automaton is ________tuple machine

a)

4

b)

5

c)

6

d)

7

3.

Context-sensitive Grammar is accepted by

a)

Deterministic Finite Automata

b)

Non Deterministic Finite Automata

c)

Linear Bounded Automata

d)

Push Down Automata

4.

Identify the type of grammar.

S-->Xa

X-->a

X-->aX

X-->abc

X-->e

(a)  

5.

bAa-->aa, S-->s. Identify the type of Grammar

a)

Type 0

b)

Type 1

c)

Type 2

d)

Type 3

6.

Give the regular expression for {0,00,000,....}

a)

0+

b)

0*

7.

Give the regular expression for set of strings over {a,b} that has at most 1 a

a)

(a+b)* a (a+b)*

b)

b* a b*|b*

c)

a*b*c*

d)

(a.b)*a

8.

Give the regular expression for all strings that start with ab and ends with ba

a)

aba*b*ba

b)

ab(ab)*ba

c)

ab(a+b)*ba

d)

a*b*

9.

The_________ performs lexical, syntax and semantic analysis of compilation process

a)

Back End

b)

Front End

c)

Middle

d)

All of these

10.

Misspelling of an identifier falls under ___________ error

a)

Lexical

b)

Syntax

11.

In Turing Machine a->b,R represents

a)

update cell and move tape head right

b)

No update

c)

Move Tape head Right

12.

For the given DFA, identify the 2-equivalence (Minimization of DFA)

a)

{A,B,C,D} {E}

b)

{A,B,C} {D}{E}

c)

{A,C}{B}{D}{E}

d)

{A,B,C,D,E}

13.

5. The Tuples for Push Down Automata is ___________

a)

∑, Q, q0, F, δ

b)

Γ,∑, Q, q0, F, δ,z0

c)

F, Q, Δ, q0, δ

d)

F, Q, Δ, q0, δ,z0

14.

Push Down Automata is used in which phase of compilation

a)

Lexical Analysis

b)

Syntax Analysis

15.

Give the regular expression for {ε,0,00,000,....}

a)

0*

b)

0+