Set of multiple choice questions for programming with prizes
- Question 1. Let the grammar G = {Σ, ∆, P, S}, analyze the string according to the analysis method LL (1), the success state is:
-
Stack: $ S, Input: $
- Stack: $, Input: $
- Stack: $ S, Input: S $
- Stack: $ S, Input: a $
-
- Question 2. Give grammar G = {E → EE * | EE + | a | b} ∑ = {a, b, *, +} ∆ = {E} Which of the following is generated by G
-
a ++ b *
-
ab ++ a *
-
ab + three *
- No sentence correctly
-
- Question 3. Give grammar G = {E → EE * | EE + | a | b} ∑ = {a, b, *, +} ∆ = {E} Sequence of abb ++ a * in G includes many steps of deduction (how many times apply the law of birth)
- 7
- 8
- 9
- ten
-
- Sentence 4. Give grammar G = {E → EE * | EE + | a | b} ∑ = {a, b, *, +} ∆ = {E} 5th sentence form (the first sentence is E) in The most left-out sequence of the abb ++ a * string in G is:
-
abE + E * +
-
aEE * +
- aEE + + E *
-
Abb + E * +
-
- Question 5. For grammar G = {E → EE * | EE + | a | b} ∑ = {a, b, *, +} ∆ = {E} Sequence of abb ++ a * in G includes many leads (how many times apply the law of birth)
-
abE + E * +
-
aEE * +
-
aEE + E * +
-
Abb + E * +
-
- Question 6. For grammar G = {S → aSb | bSa | SS | a |} ∑ = {a, b} ∆ = {S} Which of the following strings is generated by G:
-
abbaa
-
aaba
-
bbaaaa
- All right
-
- Question 7. For grammar G = {S → aSb | bSa | SS | a |} ∑ = {a, b} ∆ = {S} Which of the following is NOT generated by G:
-
abbaab
-
baabab
-
abbaabb
-
babbaaa
-
- Question 8. Which of the following grammar does NOT perform analysis by topdown analysis method?
-
G = {S ® aaA | abA;A®bA | A®bA |a} a}
-
G = {S ® Aa | b;A®Ab | A®Ab |Sa} Sa}
-
G = {S ® Aa | b;A® aA | A® aA |a} a}
-
G = {S ® Aa | b;A®bA | A®bA |b} b}
-
- Question 9. Which of the following grammar is analyzed by analytical method LL (1)?
-
G = {S ® aaA | abA;A®bA | A®bA |a} a}
-
G = {S ® Aa | b;A®Ab | A®Ab |Sa} Sa}
-
G = {S ® Aa | b;A® aA | A® aA |a} a}
-
G = {S ® Aa | b;A®bA | A®bA |b} b}
-
- Question 10. Given the grammar G = {,, P, S}, analyze the string according to the bottom-up analysis method, the success state is:
-
Stack: $ S, Input: $
-
Stack: $, Input: $
- Stack: $ S, Input: S $
-
Stack: $ S, Input: a $
-
5 ★ | 1 Vote
You should read it
- Multiple choice questions about programming with P1 prize
- Set of multiple choice questions for programming with P15 prize
- Set of multiple choice questions about programming with P10 prize
- Set of multiple choice questions about programming with P7 prize
- Set of multiple-choice questions on award-winning programming P5
- Set of multiple choice questions about programming with P6
- P13 programming set of multiple choice questions
- Set of multiple choice questions on programming with P16 prize
May be interested
- Set of multiple choice questions about programming with P12the programming test questions below will provide you with useful knowledge on this topic. if you want to study programming, you should not ignore the series of programming tests of network administration.
- Set of multiple-choice questions on award-winning programming P5serializing programming tests, in the following article, readers will be able to expand their knowledge with more interesting questions. let's start.
- Set of multiple choice questions about programming with P6the following network administrators will continue to send you interesting questions about programming. if you love this topic, then try your knowledge.
- Set of multiple choice questions about programming with P10 prizethe programming questions below will give you lots of useful information. if you are interested in learning programming languages, the series of programming language topics will be very helpful for you.
- Set of multiple choice questions for programming with P15 prizeprogramming is a discipline that attracts many young people interested. not only that job opportunities after graduation with this job are extremely open. so, if you love programming, you should not ignore the following quiz series of network administrator.
- Multiple choice questions about Javascript languageif you are a beginner of these programming languages, the following multiple-choice questions of network administrator will be very suitable for you to support knowledge.
- Guide to creating multiple choice questions on VnEduone of the outstanding features of vnedu is to create multiple choice questions quickly. using vnedu, teachers will not worry about test questions that are identical to multiple choice questions, can add and edit questions easily to make midterm or final exam questions, ...
- P13 programming set of multiple choice questionsyou are a fan of programming languages and want to learn more about this topic. to give you an interesting reading about programming, in this article, the network administrator will send you a good quiz about this topic. invite your reference.
- A set of JavaScript multiple-choice questions has P4 answersplease read your knowledge and multiple choice questions around the javascript topic that the network administrator has edited below. the set of questions includes 10 sentences to try.
- A set of JavaScript multiple-choice questions with P2 answerslocated in the series of tests on programming languages, in the basic knowledge test below network administrators will send you questions with javascript topics.