
Language Theory: Context-Free Grammar
Authored by REMECITO CAPIN
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a context-free grammar?
A context-free grammar is a formal grammar that describes a formal language in terms of production rules that define how strings of symbols can be formed.
A context-free grammar is a data structure.
A context-free grammar is a mathematical equation.
A context-free grammar is a type of programming language.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the four components of a context-free grammar?
Non-terminal symbols, Terminal symbols, Production rules, Start symbol
Non-terminal symbols, Terminal symbols, Production rules, End symbol
Non-terminal symbols, Terminal symbols, Derivation rules, Start symbol
Non-terminal symbols, Terminal symbols, Production rules, Final symbol
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a production rule in a context-free grammar?
A production rule in a context-free grammar is a rule that defines how a nonterminal symbol can be replaced by a sequence of terminal and/or nonterminal symbols.
A production rule in a context-free grammar is a rule that defines how a terminal symbol can be replaced by a sequence of nonterminal symbols.
A production rule in a context-free grammar is a rule that defines how a nonterminal symbol can be replaced by another nonterminal symbol.
A production rule in a context-free grammar is a rule that defines how a nonterminal symbol can be replaced by a sequence of terminal symbols.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a terminal symbol and a non-terminal symbol in a context-free grammar?
A terminal symbol represents a basic unit of the language, while a non-terminal symbol represents a group of terminal or non-terminal symbols.
A terminal symbol represents a specific rule in the grammar, while a non-terminal symbol represents a basic unit of the language.
A terminal symbol represents a basic unit of the language, while a non-terminal symbol represents a specific rule in the grammar.
A terminal symbol represents a group of terminal or non-terminal symbols, while a non-terminal symbol represents a basic unit of the language.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the start symbol in a context-free grammar?
A terminal symbol
A production rule
A regular expression
A non-terminal symbol
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the language generated by a context-free grammar?
A context-free grammar generates a context-free language.
A context-free grammar generates a context-sensitive language.
A context-free grammar generates a regular language.
A context-free grammar generates a regular expression.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Chomsky normal form for a context-free grammar?
A -> BC or A -> b
A -> BC or A -> a
A -> B or A -> C
A -> a or A -> b
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?
Similar Resources on Wayground
10 questions
Hombre y Naturaleza
Quiz
•
University
16 questions
TEXTOS FUNCIONALES
Quiz
•
University
15 questions
Léxico general
Quiz
•
University
10 questions
Competencias Ciudadanas
Quiz
•
University
20 questions
Pendidikan Bahasa Indonesia
Quiz
•
University
12 questions
Alberta Natural Resources #2
Quiz
•
KG - University
13 questions
Accounting 100
Quiz
•
University
15 questions
FNSINC612 Practice 3
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University