• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

Cfl Final Exam Questions And Answers With Verified Solutions 100% Correct!!!

Document preview thumbnail
Preview 2 out of 6 pages

Cfl Final Exam Questions And Answers With Verified Solutions 100% Correct!!!

Content preview

Cfl Final Exam Questions And Answers
With Verified Solutions 100% Correct!!!
If a grammar can be defined as:
G=(V, ∑, P, S), what does S represents?
a) Accepting State
b) Starting state
c) Sensitive Grammar
d) starting alphabet - ANSWER✔✔b) Starting State


A CFG is ambiguous if:
a) It has more than one rightmost derivations
b) It has more than one leftmost derivations
c) No parse tree can be generated for the CFG
d) The parse tree is always a binary tree - ANSWER✔✔b) It has more than one
leftmost derivations


A push down automaton employs ________ data structure.


a) Queue
b) Linked List
c) Hash Table
d) Stack - ANSWER✔✔d) Stack


The instantaneous description of a PDA has the following elements

, a) State
b) Unconsumed input
c) Stack content
d) All of the above
e) a & c only - ANSWER✔✔d) All of the above


Which among the following cannot be accepted by a finite state machine?
a) L is a set of numbers which begins with a 1 and ends with a 0
b) L is a set of numbers which contain at least three 1s
c) L is a set of strings with odd number of 0
d) L is a set of strings where 0^n*1^n - ANSWER✔✔d) L is a set of strings where
0^n*1^n


Which of the following statement is correct?
a) All Regular languages are context free but not vice versa
b) All context free languages are regular languages but not vice versa
c) Regular grammar and context free grammar are the same entity
d) Answer depends on the language - ANSWER✔✔a) All Regular languages are
context free but not vice versa


Can an ambiguous grammar be context free?


a) Yes


b) No - ANSWER✔✔a) Yes

Document information

Uploaded on
March 27, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$14.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TESTSMASTER
3.8
(23)
Sold
114
Followers
2
Items
12302
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions