Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
238 views

Programming Languages With Compiler MQuiz 2 PDF

The document is a review of a student's attempts on a midterm quiz about parsing techniques. It shows that the student answered 10 questions correctly, receiving full marks and a grade of 100%. The quiz covered topics like bottom-up parsing, predictive parsing, lookahead, terminals, and top-down parsing.

Uploaded by

Jr Cialana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
238 views

Programming Languages With Compiler MQuiz 2 PDF

The document is a review of a student's attempts on a midterm quiz about parsing techniques. It shows that the student answered 10 questions correctly, receiving full marks and a grade of 100%. The quiz covered topics like bottom-up parsing, predictive parsing, lookahead, terminals, and top-down parsing.

Uploaded by

Jr Cialana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

9/5/2020 Midterm Quiz2: Attempt review

Home / My courses / UGRD-CS6207-2013T / Week #8: Bottom-up Parsing(Part 2) / Midterm Quiz2

Started on Saturday, 5 September 2020, 7:06 PM


State Finished
Completed on Saturday, 5 September 2020, 7:09 PM
Time taken 2 mins 48 secs
Marks 10.00/10.00
Grade 100.00 out of 100.00

Question 1 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-down

b. Bottom-up Parsing  

c. Top-Down  

d. Middle-up 

Your answer is correct.

The correct answer is: Bottom-up Parsing 

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


Correct

Mark 1.00 out of Select one:


1.00
a. Analytical Parser 

b. Predictive Parser  

c. Historical Parser

d.  Comparative Parser
a.      Comparative Parser

e. None of the Above

Your answer is correct.

The correct answer is: Predictive Parser 

Question 3 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'.

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

https://www.coursehero.com/file/103146007/Programming-Languages-with-Compiler-MQuiz-2pdf/

https://trimestral.amaesonline.com/mod/quiz/review.php?attempt=511600&cmid=36514 1/3
9/5/2020 Midterm Quiz2: Attempt review

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


Correct

Mark 1.00 out of Select one:


1.00
a. None of the above

b. Successor

c. Lookahead 

d. Predecessor

Your answer is correct.

The correct answer is: Lookahead

Question 5 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 6 These are seen in order appearance in the token stream.


Correct

Mark 1.00 out of Select one:


1.00
a. Nodes

b. Terminal 

c. Leaves

d. None of the above

e. Segments

Your answer is correct.


The correct answer is: Terminal

Question 7 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. Comparative Parser

b. None of the above

c. Predictive Parser  

d. Analytical Parser 

e. Historical Parser 

Your answer is correct.


The correct answer is: Predictive Parser 

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

https://www.coursehero.com/file/103146007/Programming-Languages-with-Compiler-MQuiz-2pdf/

https://trimestral.amaesonline.com/mod/quiz/review.php?attempt=511600&cmid=36514 2/3
9/5/2020 Midterm 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 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 10 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. Middle-up 

c. Bottom-down

d. Bottom-up Parsing 

e. None of the Above

Your answer is correct.

The correct answer is: Top-Down  

◄ Bottom Up Parsing (Part 2-B) Jump to... Bottom Up Parsing (Part 3) ►

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

https://www.coursehero.com/file/103146007/Programming-Languages-with-Compiler-MQuiz-2pdf/

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

You might also like