__ is a finite set of symbols called the alphabet.
ΣCorrect
__ is the initial state from where any input is processed (q0 ∈ Q).
q0Correct
______ is used to derive a string using the production rules of a grammar.
ParsingCorrect
“C if H” is also the same as saying _______.
“If H then ”Correct
“If C then H”
“If H then C else {}”
“If H then C else do nothing”
“If H then ” is also the same as saying _______.
“If H then C else do nothing”
“If C then H”
“If H then C else {}”
“C if H”Correct
“Whenever H holds, C follows” can also be said as _______.
H → ε and ε → C
H → CCorrect
C → H
ε → H and C → ε
{Q, Σ, q0, F, δ, Q × Σ → Q} is…
An NFA
Either DFA or NFA
There is no such tupleCorrect
A DFA
* Starts from tree leaves. It proceeds upward to the root which is the starting symbol S.
Bottom-Up ApproachCorrect
* Starts with the starting symbol S. It goes down to tree leaves using productions.
Top-Down ApproachCorrect
|-* is the _____ closure of |-
transitive and reflexiveCorrect
A __________ of a derivation is a tree in which each internal node is labeled with a nonterminal.
parse treeCorrect
A - B will contain elements in?
B not in A
A not in BCorrect
Neither A nor B
Both A and B
A ⊂ B is read as ________________.
A is less than B
A is a subset of B
B is a subset of A
A is a proper subset of BCorrect
A 2-Tape Turing Machine ___________________.
can infer that recursive languages are closed under union
can show that recursive languages are closed under unionCorrect
has two outputs
has two inputs
A compact textual representation of a set of strings representing a language.
Regular ExpressionsCorrect
A conceptual design for a machine consisting of a Mill, Store, Printer, and Readers.
Analytic EngineCorrect
A DFA can remember a finite amount of information, but a can remember an infinite amount of information.
PDACorrect
A DFA is defined ____________________.
as Department of Finite Automaton
by a 5-tuple which is {Q, Σ, q0, F, δ}Correct
by a 6-tuple which is {Q, Σ, q0, F, δ, Q × Σ → Q}
as Department of Foreign Affairs
A DFA is represented by digraphs called.
State DiagramCorrect
A DPDA is a PDA in which
No state p has two outgoing transitionsCorrect
A Finite Automaton with null moves (FA-ε) does transit not only after giving input from the alphabet set but also without any input symbol. This transition without input is called a
Null MoveCorrect
A finite number of states.
QCorrect
A finite set of input symbols.
ΣCorrect
A finite set of states
QCorrect
A formal language is a set of strings, each string composed of symbols from a finite set called.
AlphabetCorrect
A general purpose, programmable, information processor with input and output.
computerCorrect
A good regular expression for any valid real number using engineering notation is ______________.
[0-9]+[0-9]*[(E|e)[0-9]+]Correct
[0-9]*
[0-9]+[0-9]*[(E|e|∈)[0-9]+]
[0-9]+
A good regular expression for any valid whole number is ______________.
[0-9]*
[0-9]*[0-9]*
[0-9]+Correct
[0-9]+[0-9]*
A good regular expression of a person's name is ______________.
None of the given choices
[A-Z][a-z]+
[A-Z][a-z]?
[A-Z][a-z]*Correct
A grammar G is ambiguous if there is a word w Î L(G) having are least two different parse trees.
TRUECorrect
A language accepted by Deterministic Push down automata is closed under which of the following?
complementCorrect
A language is regular if and only if.
Accepted by DFACorrect
A may or may not read an input symbol, but it has to read the top of the stack in every transition.
PDACorrect
A Moore machine can be described by a tuple.
6Correct
A nested if-then statement is one of these:
If w then x if y then z
If w if x then y then z
If w then if x then y else zCorrect
All of the choices are examples of nestedness
A new symbol is added at the top.
PushCorrect
A parsing that starts from the top with the start-symbol and derives a string using a parsetree.
top-down parserCorrect
A PDA accepts a string when, after reading the entire string, the PDA is in a final state.
TRUECorrect
A PDA is already in its accept state if:
and only if it is both in the final state and the stack is empty
none of the given choices
it is either in the final state or the stack is emptyCorrect
it has no more input to process
A PDA machine configuration (p, w, y) can be correctly represented as.
Current state, Unprocessed input, Stack contentCorrect
A PDA machine configuration (p, w, y) can be ly represented as ____________
current state, unprocessed input, stack contentCorrect
A pushdown automata can be regarded as:
a ε-NFA with a stackCorrect
a DFA with a FILO queue
a NFA with a stack
a DFA with FIFO queue
A pushdown automaton is a way to implement a context-free grammar in a similar way to design DFA for a regular grammar.
TRUECorrect
A regular expression consisting of a finite set of grammar rules is a quadruple.
FALSECorrect
A right-most derivation of a sentential form is one in which rules transforming the are always applied.
ContextCorrect
A set has n elements, then the number of elements in its power set is?
2n
2 ^ nCorrect
None of the choices
2n-1
A set of accepting states (F ∈ Q).
FCorrect
A set of final state/states of Q (F⊆Q).
FCorrect
A set of rules, P: N → (N U T)*, it does have any right context or left context.
PCorrect
A set of strings of a's and b's of any length including the null string. So L= { ε, a, b, aa , ab , bb , ba, aaa.......}, the regular
(a+b)*Correct
A set of strings of a's and b's of any length including the null string. So L= { ε, a, b, aa , ab , bb , ba, aaa.......}, the regular expression is.
(a+b)*Correct
A set of terminals where N ∩ T = NULL.
TCorrect
A set on non-terminal symbols.
S & ACorrect
A stack symbols
ΣCorrect
A string is accepted by a, iff the DFA/NDFA starting at the initial state ends in an after reading the string.
NDFACorrect
A sub-tree of a derivation tree/parse tree such that either all of its children are in the sub-tree or none of them are in the
Partial Derivation Tree, Sub-TreeCorrect
A symbol X is reachable _________________________.
if S → aXβ
if X →* w, for some w ∈ Σ
if X → w, for some w ∈ Σ
if S →* aXβCorrect
A transition function δ : Q × (Σ ∪ {ε}) → 2Q.
δCorrect
A transition function: Q × (Σ∪{ε}) × S × Q × S*.
δCorrect
A' will contain how many elements from the original set A?
1
all elements in A
infinite
0Correct
According to the 5-tuple representation i.e. FA= {Q, ∑, δ, q, F} Statement 1: q ϵ Q'; Statement 2: FϵQ
Statement 1 is false, Statement 2 is trueCorrect
According to what concept is CFL a superset of RL?
Chomsky HierarchyCorrect
Chomsky Normal Form
Backus-Naur Form
None of the given choices
All functions are relations
TrueCorrect
False
All relations are functions
True
FalseCorrect
All trees contain loops.
True
FalseCorrect
An algorithms to shampoo your hair.
rinse, lather, repeatCorrect
An alphabet is any finite set of symbols.
TRUECorrect
An automaton that produces outputs based on current input and/or previous state is called.
TransducerCorrect
An English like abbreviations representing elementary computer operations.
Assembly LanguageCorrect
An example string w of a language L characterized by equal number of As and Bs is _______________.
BABAE
ABABA
ABBBAACorrect
ALIBABA
An indirect way of building a CFG is to _____________
build a regular expression and then construct a PDA from it, and then construct CDF from it
You can only build a CFG directly
build a PDA and then construct a CFG from itCorrect
none of the given choices
An initial state q0 ∈ Q
q0Correct
An order rooted tree that graphically represents the semantic information a string derived from a context-free grammar.