Search Header Logo

CC module 2

Authored by Anil Chinchawade

Computers

University

Used 15+ times

CC module 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?