You are on page 1of 3

10/4/2020 Final Quiz2: Attempt review

Home / My courses / UGRD-CS6207-2013T / Week #12: Runtime Environments (Part 1) / Final Quiz2

Started on Sunday, 4 October 2020, 4:45 PM


State Finished
Completed on Sunday, 4 October 2020, 4:47 PM
Time taken 1 min 42 secs
Marks 10.00/10.00
Grade 100.00 out of 100.00

Question 1 Placing some restrictions on how to process the input is done in creating a parser for a compiler.
Correct

Mark 1.00 out of Select one:


1.00
True 

False

The correct answer is 'True'.

Question 2 Bottom-down and Top-up are the two major parsing approaches in parsing.
Correct

Mark 1.00 out of Select one:


1.00
True

False 

The correct answer is 'False'.

Question 3 Another approach in parsing that starts with the string and reduce it to the start symbol by applying
Correct the productions backwards
Mark 1.00 out of
1.00 Select one:
a. Bottom-up Parsing  

b. Middle-up 

c. Bottom-down

d. Top-Down  

Your answer is correct.

The correct answer is: Bottom-up Parsing 

This study source was downloaded by 100000806178292 from CourseHero.com on 11-04-2022 00:38:46 GMT -05:00

https://www.coursehero.com/file/103146815/Programming-Languages-with-Compiler-FQuiz-2pdf/

https://trimestral.amaesonline.com/mod/quiz/review.php?attempt=810987&cmid=36539 1/3
10/4/2020 Final Quiz2: Attempt review

Question 4 It’s a way to implement a non-backtracking top-down parser.


Correct

Mark 1.00 out of Select one:


1.00
a. Historical Parser

b. Predictive Parser  

c. Analytical Parser 

d. None of the Above

e.  Comparative Parser
a.      Comparative Parser

Your answer is correct.

The correct answer is: Predictive Parser 

Question 5 The lexical analysis phase of a compiler verifies that the sequence of tokens extracted by the scanner
Correct represents a valid sentence in the grammar of the programming language
Mark 1.00 out of
1.00 Select one:
True

False 

The correct answer is 'False'.

Question 6 It is characterized by its ability to choose the production to apply solely on the basis of the next input
Correct symbol and the current non-terminal being processed.
Mark 1.00 out of
1.00 Select one:
a. Analytical Parser 

b. Predictive Parser  

c. Comparative Parser

d. Historical Parser 

e. None of the above

Your answer is correct.


The correct answer is: Predictive Parser 

Question 7 An approach in parsing that starts with the start symbol and apply the productions until it arrives at the
Correct desired string.
Mark 1.00 out of
1.00 Select one:
a. Top-Down   

b. None of the Above

c. Bottom-up Parsing 

d. Middle-up 

e. Bottom-down

Your answer is correct.


This study source was downloaded by 100000806178292 from CourseHero.com on 11-04-2022 00:38:46 GMT -05:00
The correct answer is: Top-Down  
https://www.coursehero.com/file/103146815/Programming-Languages-with-Compiler-FQuiz-2pdf/

https://trimestral.amaesonline.com/mod/quiz/review.php?attempt=810987&cmid=36539 2/3
10/4/2020 Final Quiz2: Attempt review

Question 8 A top-down parser is that a parse tree created by bottom to top.


Correct

Mark 1.00 out of Select one:


1.00
True

False 

The correct answer is 'False'.

Question 9 These are seen in order appearance in the token stream.


Correct

Mark 1.00 out of Select one:


1.00
a. Terminal 

b. None of the above

c. Segments

d. Nodes

e. Leaves

Your answer is correct.


The correct answer is: Terminal

Question 10 It is the next symbol coming up in the input.


Correct

Mark 1.00 out of Select one:


1.00
a. Lookahead 

b. Successor

c. None of the above

d. Predecessor

Your answer is correct.


The correct answer is: Lookahead

◄ Runtime Environments (Part 1) Jump to... Runtime Environments (Part 2) ►

This study source was downloaded by 100000806178292 from CourseHero.com on 11-04-2022 00:38:46 GMT -05:00

https://www.coursehero.com/file/103146815/Programming-Languages-with-Compiler-FQuiz-2pdf/

https://trimestral.amaesonline.com/mod/quiz/review.php?attempt=810987&cmid=36539 3/3
Powered by TCPDF (www.tcpdf.org)

You might also like