CC module 2

CC module 2

University

20 Qs

quiz-placeholder

Similar activities

cd quiz

cd quiz

University

20 Qs

SQL Quiz

SQL Quiz

University

19 Qs

Assignment for MSE+CIE-2

Assignment for MSE+CIE-2

University

20 Qs

MongoDB Quiz

MongoDB Quiz

University

20 Qs

Quiz 142 - Python inputs and outputs

Quiz 142 - Python inputs and outputs

9th Grade - University

15 Qs

ATCD - MCQ - IAE1 Portions

ATCD - MCQ - IAE1 Portions

University

15 Qs

Python Strings

Python Strings

University

20 Qs

Compiler and Interpreter

Compiler and Interpreter

University

20 Qs

CC module 2

CC module 2

Assessment

Quiz

Computers

University

Medium

Created by

Anil Chinchawade

Used 15+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the reason behind the division of compiling into lexical analysis & parsing?
Simple Design
Efficiency 
Portability
All of above 

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In compiler, grouping of characters into token is done by
Scanner
Parser
Code generator
Code optimizer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Table     created   by  lexical  analysis   to  describe   all  literals  used  in  source        program is
Terminal table
Literal table
Identifier table 
Reductions 

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The  table   created   by   lexical   analysis   to   describe   all   identifiers  used   in   the         source program is
Terminal table
Literal table
Symbol table 
Reductions 

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Two DFAs are equivalent if they
Have same number of states
Have same number of edges
Have same number of states & edges
Recognize the same set of tokens

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Whether give pattern constitute a token or not depends on
Source language 
Target language
Compiler 
All of these 

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The lexeme for the token “identifier” in the following example is:                          
const pi = 3.14;
pi
 3.14
Const
None of above

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?