

Understanding Grammar and Languages
Interactive Video
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Thomas White
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary focus of the previous lecture mentioned in the introduction?
Formal definition of grammars
Derivations from a grammar
Language generated by a grammar
Types of grammars
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is meant by 'derivations from a grammar'?
The set of all strings that can be derived from a grammar
The syntax of a language
The process of defining grammar rules
The classification of grammar types
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of grammars, what is a 'language'?
A type of grammar
A set of grammar rules
A collection of non-terminal symbols
The set of all strings derived from a grammar
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the non-terminal symbols in grammar G1?
A and B
S and B
S and A
a and b
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which production rule is used to derive the string 'aaaBBB' in grammar G1?
A gives a a a
S gives a a b
A gives Epsilon
B gives b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the start symbol in grammar G2?
A
S
B
a
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the only string that can be derived from grammar G2?
bb
ba
aa
ab
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?