CS606 Midterm Grand Quiz Solution

  CS606 All Midterm Papers Quizzes  + Mcqz   LR parsers can handle ________________ grammars. Left-recursive Page no: 163 file-recursive End...

 CS606 All Midterm Papers Quizzes + Mcqz


 

LR parsers can handle ________________ grammars.
Left-recursive Page no: 163
file-recursive
End-recursive
Start-recursive
_____ convert the reloadable machine code into absolute machine code by
linking library and reloadable object files.
Assembler
Loader/link-editor
Compiler
Preprocessor
Consider the grammar A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon
Follow of B is _____________ .
h
g, h, i, $
g, i
g
Consider the grammar A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon
Follow of C is _____________ .
g, h, i, $ Page no : 47
g, h, $
h, i, $
h, g, $
An important component of semantic analysis is __________________ .
code checking
type checking page no : 6
flush checking
None of the given
In PASCAL ___________ represent the inequality test.
:=
=
<>
None of the given
Lexical Analyzer generator ________________ is written in Java.
Flex
Jlex Page no : 26
Complex
None of given
____________avoid hardware stalls and interlocks.
Register allocation
Instruction scheduling Page no : 10
Instruction selection
None of given
Consider the following grammar,
A --> B C D
B --> h B | episilon
C --> C g | g | C h | i
D --> A B | episilon
First of A is _______________ .
h, g, i
g h
None of the given
Recursive ____________ parsing is done for LL(1) grammar.
Decent Page no : 47
Ascent
Forward
Backward
One of the core tasks of compiler is to generate fast and compact executable
code.
True
False
Left factoring of a grammar is done to save the parser from back tracking.
True Page no:61
False
Responsibility of ______________ is to produce fast and compact code.
Instruction selection
Register allocation
Instruction scheduling
None of given Page no: 9
________________ algorithm is used in DFA minimization.
James’s
Robert’s
Hopcroft’s Page no:25
None of given
Compilers are sometimes classified as.
Single pass
Multi pass
Load and go
All of the given
In multi pass compiler during the first pass it gathers information
about ___________________ .
Select correct option:
Declaration
Bindings
Static information
None of the given **
Question # 9 of 10 ( Start time: 06:40:30 PM ) Total Marks: 1
Flex is an automated tool that is used to get the minimized DFA (scanner).
Select correct option:
True
False
In compilation process Hierarchical analysis is also called
Select correct option:
Parsing
Syntax analysis
Both Parsing and Syntax analysis
None of given
For each language to make LL(1) grammar, we take two steps, 1st is removing
left recurrence and 2nd is applying fin sequence.
True
False
_____________is evaluated to yield a value.
Command
Expression
Declaration
Declaration and Command
LR parsers can handle ________________ grammars.
Left-recursive page no : 63
file-recursive
End-recursive
Start-recursive
Optimal registers allocation is an NP-hard problem.
True
False Page no : 10
Parser takes tokens from scanner and tries to generate _______________ .
Binary Search tree
Parse tree
Syntax trace Page no : 6
None of the given
Front end of two pass compiler takes_________________ as input.
Source code Page no: 5
Intermediate Representation (IR)
Machine Code
None of the Given
In DFA minimization we construct one _______________ for each group of
states from the initial DFA.
State Page no : 25
NFA
PDA
None of given
In Three-pass compiler _____________ is used for code improvement or
optimization.
Front End
Middle End Page no : 10
Back End
Both Front end and Back end
________________ of a two-pass compiler is consists of Instruction selection,
Register allocation and Instruction scheduling.
Back end Page no : 9
Front end
Start
None of given
NFA is easy to implement as compared to DFA.
True
False Page no : 19
We can get an LL(1) grammar by ________________ .
Removing left recurrence
Applying left factoring
Removing left recurrence and Applying left factoring
None of the given
Parser always gives a tree like structure as output
True page no : 37
False
Intermediate Representation (IR) stores the value of its operand in
Registers
Memory
Hard disk
Secondary storage
In Back End module of compiler, optimal register allocation
uses_______________ .
O(log n)
O(n log n)
N P-Complete Page no : 10
None of the given
CS 606 Quizez
Can a DFA simulate NFA?
Yes
No
Sometimes
Depend upon nfa
____________________ phase which supports macro substitution and conditional
compilation.
Semantic
Syntax
Preprocessing
None
Which of the statement is true about Regular Languages?
Regular Languages are the most popular for specifying tokens.
Regular Languages are based on simple and useful theory.
Regular Languages are easy to understand.
All of the given
Lexer and scanner are two different phases of compiler
True
False Page no :13
Lexical Analyzer generator ________________ is written in Java.
Flex
Jlex Page no :26
Complex
None of the given
In a transition table cells of the table contain the ________ state.
Reject state
Next state Page no 18
Previous state
None of the given
The transition graph for an NFA that recognizes the language ( a | b)*abb will have
following set of states.
{0}
{0,1}
{0,1,2}
{0,1,2,3} not sure
Front end of two pass compiler takes_________________ as input.
Source code
Intermediate representation
Machine code
None
Functions of Lexical analyzer are?
Removing white space
Removing constants, identifiers and keywords
Removing comments
All of the given
Question # 1 of 10 ( Start time: 07:25:59 PM ) Total Marks: 1
Front-end of a two pass compiler is consists of Scanner.
Select correct option:
True
False
Question # 2 of 10 ( Start time: 07:26:40 PM ) Total Marks: 1
LL(1) parsing is called non-predictive parsing.
Select correct option:
True
False
Question # 3 of 10 ( Start time: 07:28:09 PM ) Total Marks: 1
Recursive ______________ parsing is done for LL(1) grammar.
Select correct option:
Backward
Forward
Ascent
Decent
Question # 4 of 10 ( Start time: 07:29:35 PM ) Total Marks: 1
In predictive parsing table the rows are ____________________ .
Select correct option:
Non-terminals
Terminals
Both non-terminal and terminals
None of the given
Question # 5 of 10 ( Start time: 07:30:38 PM ) Total Marks: 1
We can get an LL(1) grammar by ________________ .
Select correct option:
Removing left recurrence
Applying left factoring
Removing left recurrence and Applying left factoring
None of the given
Question # 6 of 10 ( Start time: 07:31:48 PM ) Total Marks: 1
________________ of a two-pass compiler is consists of Instruction selection,
Register allocation and Instruction scheduling.
Select correct option:
Backend
Frontend
Start
Question # 7 of 10 ( Start time: 07:32:26 PM ) Total Marks: 1
Consider the grammar
A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon First of C is _______________ .
Select correct option:
g, I look down for reference
g
h i
i
Quiz Start Time: 07:25 PM
Time Left 81
sec(s)
Question # 8 of 10 ( Start time: 07:33:12 PM ) Total Marks: 1
Alternative of the backtrack in parser is Look ahead symbol in _______________ .
Select correct option:
input
output
input and output
none
Question # 9 of 10 ( Start time: 07:34:09 PM ) Total Marks: 1
AST summarizes the grammatical structure with the details of derivations.
Select correct option:
True
False
Quiz Start Time: 07:25 PM
Time Left 81
sec(s)
Question # 10 of 10 ( Start time: 07:35:06 PM ) Total Marks: 1
One of the core tasks of compiler is to generate fast and compact executable code.
Select correct option:
True
False
Left factoring is enough to make LL1 grammar
True
False
In LL1() parsing algorithm _________ contains a sequence of grammar
symbols.
Stack
Link list
Array
None

COMMENTS

Read More Here ⇙
Read More Here ⇙
Name

ACC,1,Announcements,3,Assignments,17,bif,7,BIF602,1,BIF731,1,BIF732,1,BIF733,1,bio,23,BIO201,1,BIO202,1,BIO203,1,BIO204,1,BIO301,1,BIO302,1,BIO303,1,BIO401,1,BIO502,1,BIO731,1,BIO732,1,BIO733,1,BIO734,1,BNK,6,BNK601,1,BNK603,1,BNK610,1,BNK611,1,BNK612,1,BNK613,1,bt,34,BT101,1,BT102,1,BT301,1,BT302,1,BT404,1,BT406,1,BT501,1,BT503,1,BT504,1,BT603,1,BT605,1,BT731,1,BT732,1,BT733,1,BT734,1,BT735,1,che,3,CHE301,1,Cisco,1,CS,65,cs101,2,CS201,1,CS202,1,CS205,1,CS206,1,CS301,1,CS302,1,CS304,1,CS311,1,CS312,1,CS315,1,CS401,1,CS402,1,CS403,1,CS405,1,CS407,1,CS408,1,CS410,1,CS411,1,CS432,1,CS435,1,cs501,6,CS502,1,CS504,1,CS506,1,CS507,1,CS508,1,cs601,2,CS602,1,CS603,1,CS604,1,CS605,1,CS606,3,CS607,1,CS609,1,CS610,1,CS611,1,CS614,1,CS615,1,CS620,1,CS701,1,CS702,1,CS703,1,CS704,1,CS706,1,CS707,1,CS708,1,CS709,1,CS710,1,CS711,1,CS712,1,CS713,1,CS716,1,CS718,1,CS721,1,CS723,1,CS724,1,CS725,1,CS726,1,Cybersecurity,1,ECO,11,ECO401,1,ECO402,1,ECO403,1,ECO404,2,ECO501,1,ECO601,1,ECO603,1,ECO606,1,ECO615,1,EDU,30,EDU101,1,EDU201,1,EDU301,1,EDU303,1,EDU304,1,EDU305,1,EDU401,1,EDU402,1,EDU403,2,EDU404,1,EDU405,1,EDU406,1,EDU410,1,EDU411,1,EDU430,1,EDU431,1,EDU501,1,EDU505,1,EDU510,1,EDU512,1,EDU515,1,EDU516,1,EDU601,1,EDU602,1,EDU603,1,EDU604,1,EDU654,1,EDU705,1,EDU712,1,ENG,21,ENG001,1,ENG101,1,ENG201,1,ENG301,1,ENG501,1,ENG502,1,ENG503,1,ENG504,1,ENG505,1,ENG506,1,ENG507,1,ENG508,1,ENG509,1,ENG510,1,ENG511,1,ENG512,1,ENG513,1,ENG515,1,ENG516,1,ENG518,1,ENG519,1,ETH,1,ETH202,1,extension,1,FIN,7,FIN611,1,FIN621,1,FIN622,1,FIN623,1,FIN625,1,FIN630,1,FIN701,1,GDB Solution,1,GEN,2,GEN731,1,GEN732. Mahar Waqas,1,grand quiz,20,GSC,2,GSC101,1,GSC201,1,Handouts,1,HRM,6,HRM613,1,HRM617,1,HRM624,1,HRM626,1,HRM627,1,HRM713,1,Important Question,4,ISL,1,isl201,2,IT,1,IT430,1,Mahar Waqas,309,MCD,8,MCD401,1,MCD402,1,MCD403,1,MCD404,1,MCD501,1,MCD502,1,MCD503,1,MCD504,1,MCM,16,MCM101,1,MCM301,1,MCM304,1,MCM310,1,MCM311,1,MCM401,1,MCM404,1,MCM411,1,MCM501,1,MCM511,1,MCM514,1,MCM515,1,MCM516,1,MCM604,1,MCM610,1,Mega files,334,MGM,1,MGMT,15,MGMT611,1,MGMT614,1,MGMT615,1,MGMT617,1,MGMT622,1,MGMT623,1,MGMT625,1,MGMT627,1,MGMT628,1,MGMT629,1,MGMT630,1,MGMT631,1,MGMT715,1,MGMT727,1,MGMT731,1,MGT,19,MGT101,1,MGT111,1,MGT201,1,MGT211,1,MGT301,2,MGT401,1,MGT402,1,MGT404,1,MGT411,1,MGT501,1,MGT502,1,MGT503,1,MGT504,1,MGT510,1,MGT513,1,MGT520,1,MGT522,1,MGT601,1,MGT602,1,MGT603,1,MGT604,1,MGT610,1,MGT611,1,MGT612,1,MGT613,1,MGT621,1,MGT703,1,MGT705,1,MKT,13,MKT501,1,MKT529,1,MKT530,1,MKT603,1,MKT610,1,MKT611,1,MKT621,1,MKT624,1,MKT625,1,MKT626,1,MKT627,1,MKT630,1,Moazz,333,moazz and Mahar Waqas,1,mth,4,MTH Mahar Waqas,24,MTH001,1,MTH100,1,MTH101,1,MTH102,1,MTH201,1,MTH202,1,MTH301,1,MTH302,1,MTH303,1,mth401,2,MTH501,2,MTH601,1,MTH603,1,MTH621,1,MTH622,1,MTH631,1,MTH632,1,MTH633,1,MTH634,1,MTH641,1,MTH701,1,MTH706,1,MTH7123,1,MTH718,1,MTH721,1,PAD,1,PAD603,1,PAK,2,PAK301,1,PAK302,1,past Papers,399,Phy,3,PHY101,1,PHY301,1,Pk,1,PSC,2,PSC201,1,PSC401,1,psy,20,PSY101,1,PSY401,1,PSY403,1,PSY404,1,PSY405,1,PSY406,1,PSY407,1,PSY408,1,PSY409,1,PSY502,1,PSY504,1,PSY510,1,PSY511,1,PSY512,1,PSY513,1,PSY514,1,PSY610,1,PSY631,1,PSY632,1,Quiz Solution,18,screenshot,2,SEC,1,SEC001,1,SOC,8,SOC101,1,SOC301,1,SOC302,1,SOC401,1,SOC402,1,SOC403,1,SOC601,1,SOC603,1,STA,11,STA100,1,STA301,1,STA621,1,STA630,1,STA631,1,STA632,1,STA642,1,STA643,1,STA644,1,STA730,1,URD,1,URD101,1,Video,6,vu,26,vu toolkit,5,Waqar Siddhu,334,zoo,18,ZOO301,1,ZOO502,1,ZOO503,1,ZOO504,2,ZOO505,1,ZOO731,1,
ltr
item
VU Grand Quiz Assignment GDB past Papers exam: CS606 Midterm Grand Quiz Solution
CS606 Midterm Grand Quiz Solution
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLEDOinTYOaFp3odCcBlBpLKeFrjVIZVyJYycXXWyWC0BiNR8bfnIJbp44xMCaCyrPydLDklF9l1QZEmJCqXrfrMStA-PpwWRX3X1OEsCE-rbOIyJRo0sgKR4A5gQGlFCyqyetJJlFFJlx/w640-h360/Rotated+Script+Camping+YouTube+Thumbnail.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLEDOinTYOaFp3odCcBlBpLKeFrjVIZVyJYycXXWyWC0BiNR8bfnIJbp44xMCaCyrPydLDklF9l1QZEmJCqXrfrMStA-PpwWRX3X1OEsCE-rbOIyJRo0sgKR4A5gQGlFCyqyetJJlFFJlx/s72-w640-c-h360/Rotated+Script+Camping+YouTube+Thumbnail.jpg
VU Grand Quiz Assignment GDB past Papers exam
https://vueducationhub.blogspot.com/2020/12/cs606-midterm-grand-quiz-solution.html
https://vueducationhub.blogspot.com/
https://vueducationhub.blogspot.com/
https://vueducationhub.blogspot.com/2020/12/cs606-midterm-grand-quiz-solution.html
true
2817428684875374465
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content