Let G=(V, T, P, S)
where a production can be written as:
S->aAS|a
A->SbA|ba|SS
Which of the following string is produced by the grammar?
TOC UNIT II - CFC
Quiz
•
Computers
•
KG
•
Hard
wjasmine jeya
Used 6+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let G=(V, T, P, S)
where a production can be written as:
S->aAS|a
A->SbA|ba|SS
Which of the following string is produced by the grammar?
aabbaa
aabbaab
baabab
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Simplify the given grammar:
A-> a| aaA| abBc
B-> abba| b
A-> a| aaA| ababbAc| abbc, B-> abba|b
A-> a| aaA| abbc, B->abba
None of the mentioned
A-> a| aaA| ababbAc| abbc
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the given Regular expression, the minimum number of variables including starting variable required to derive its grammar is:
(011+1)*(01)*
4
6
3
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The minimum number of productions required to produce a language consisting of palindrome strings over ∑={a,b} is
3
6
7
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The entity which generate Language is termed as:
Grammar
Automata
Data
Tokens
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which among the following cannot be accepted by a regular grammar?
L is a set of string with odd number of 0
L is a set of binary complement
L is a set of 0n1n
L is a set of numbers divisible by 2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the given Regular expression, the minimum number of terminals required to derive its grammar is:
(011+1)*(01)*
4
6
3
5
25 questions
Code.org: Web Development: Unit 2 Lessons 1 - 9
Quiz
•
6th - 9th Grade
26 questions
Code.org: Unit 2 Lesson 1-13 Test
Quiz
•
6th - 8th Grade
25 questions
Google Docs
Quiz
•
6th - 8th Grade
25 questions
ICT IGCSE Quiz
Quiz
•
11th Grade
25 questions
HTML Coding
Quiz
•
3rd - 6th Grade
25 questions
Microsoft Word: Module 2
Quiz
•
9th - 12th Grade
31 questions
CD_quiz1
Quiz
•
University
25 questions
Defensive Design
Quiz
•
9th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade