Recent questions tagged goclasses-cs-dpp-day-316

2 2 votes
2 2 answers
240
240 views
The set of reachable state(s) for the string $1101$ for the below NFA is:$\{q_0, q_1\}$ $\{q_1, q_3\}$ $\{q_3\}$ $\{q_2, q_1, q_3\}$
2 2 votes
4 4 answers
219
219 views
Consider the following two NFAs $A_1$ and $A_2$. Which one of the following is true?Any string accepted by $A_1$ is also accepted by $A_2$ Any string accepted by $A_2$ is...
3 3 votes
3 3 answers
198
198 views
4 4 votes
4 4 answers
281
281 views
What is the language accepted by the following NFA?The set of strings containing $baba$ as substring The set of strings ending with $abab$ The set of strings beginning wi...
4 4 votes
2 2 answers
296
296 views
What is the set of final states in the following NFA?$\{q_2, q_4\}$ $\{q_1, q_2, q_3, q_4\}$ $\{q_0,q_1,q_2, q_3, q_4\}$ $\{q_1, q_3, q_4\}$
9 9 votes
4 4 answers
302
302 views
Convert the following infix expression into postfix expression:$$\texttt{a + (b - c) - d * ((e - f) / g + h)}$$Which of the following is correct?$\texttt{a b c - + d e f ...
6 6 votes
2 2 answers
266
266 views
Which of the following statements is true about arithmetic expressions?Parentheses are needed in all arithmetic expressions. Infix expressions do not require precedence r...
5 5 votes
2 2 answers
247
247 views
Which of the following permutations can be obtained in the same order using a stack, assuming the input sequence is:$$5, 6, 7, 8, 9$$$7, 8, 9, 5, 6$ $5, 9, 6, 7, 8$ $7, 8...
4 4 votes
2 2 answers
250
250 views
If the following sequence of operations is performed on an initially empty stack:push(1), push(2), pop, push(1), push(2), pop, pop, pop, push(2), popwhat is the sequence ...
5 5 votes
3 3 answers
251
251 views
An initially empty stack undergoes the following operations:push(40) push(10) push(10) push(pop() + pop()) push(20) push(5) push(pop() / pop())Assume the division operati...
To see more, click for the full list of questions or popular tags.