100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Discrete Structures Exam 2 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
18-06-2024
Written in
2023/2024

Discrete Structures Exam 2 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
June 18, 2024
Number of pages
9
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Discrete Structures Exam 2
Give a production grammar for the language L = {x | x ∈ (a,v)*, the number of a's in x is
a multiple of 3} - ANS-S -> bS | b | aA | bA
A -> aB
B -> bB
B -> aS

The production grammar {S -> aSbb | abb} is - ANS-Type 2 grammar

Which string can be produced by S->aS | bA, A->d | ccA?
a)aabccd
b)adabcca
c)abcca
d)abababd - ANS-a)aabccd

Which of the following statements is wrong?
a) The regular sets are closed under intersection
b) The class of regular sets is closed under substitution
C) The class of regular sets is closed under homomorphism
d)Context Sensitive Grammar(CSG) can be recognized by FSM - ANS-d

The Union of CFL and regular languages
a) is always regular
b) is always context free
c) both a and b
d) need not be regular - ANS-c

Which of the following is undecidable?
a) Membership problem of CFG
b) ambiguity problem for CFG
c)Finiteness problem for FSA
d)Equivalence problem for FSA - ANS-b

Pushdown Automata represents a
a) type 0 grammar
b) type 1 grammar
c) type 2 grammar
d) type 3 grammar - ANS-c

, If every string of a language can be determined whether it is legal or illegal in finite time
the language is called
a) Decidable
b) undecideable
c) Interpretive
d) non deterministic - ANS-a

A context free language can be recognized by
a) Finite State Automaton
b) Linear Bound Automaton
c) Pushdown Automaton
d) both B and C - ANS-d

Which of the following is the most general phase structured grammar?
a) Regular
b) Context sensitive
c) Context free
d) None of the above - ANS-b

The following grammar
S->bS | b
is a
a) type-3 grammar
b) type-2 grammar
c) type-1 grammar
d) type-0 grammar - ANS-a

All strings having equal number of a and b can be recognized by
a) DFA
b) NDFA
c) PDA
d) All of the above - ANS-c

Which of the following statements is false?
a) Context-free languages are closed under union
b) Context-free languages are closed under concatenation
c) Context-free languages are closed under intersection
d) Context-free languages are closed under Kleene closure - ANS-c

Get to know the seller

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.
DoctorHkane Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
732
Member since
4 year
Number of followers
168
Documents
22476
Last sold
1 week ago

Explore my Stuvia collection for essential study aids: test banks, exams, summaries, and cases. With five years of expertise as an academic writer, I have honed my skills in crafting top-notch essays, exams, and research dissertations. My proficiency lies in producing well-structured and thoroughly researched content that meets academic standards. I am adept at handling various subjects and ensuring a seamless flow of ideas. Whether it's delivering compelling arguments in essays, creating challenging yet fair exam questions, or delving into in-depth research for dissertations, my experience equips me to excel in diverse academic writing tasks. I pride myself on meeting deadlines and maintaining the highest quality in every piece I produce. REACH ON iamnjokikelvin1@gmail

Read more Read less
4.6

386 reviews

5
308
4
29
3
21
2
10
1
18

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions