Let w = 100011, is w a member of a language of string with equal number of 0s and 1s?
Yes, because the number of 1s is the same as the number of 0s, which is 3Correct
It is hard to ascertain because 100011 is 35 in decimal, which is an odd number
No, because even if the symbols 1 and 0 are of the same number, they are not palindromic
This is an NP-hard problem
NFA means:
Nondeterministic Finite AutomatonCorrect
Nondeterministic Final Automaton
Nondifferentiable Final Automaton
Nondifferential Finite Automaton
Noam Chomsky gave a mathematical model in _______ which is effective for writing computer languages.
1956Correct
Non-terminal symbols
S & ACorrect
NP-Hard problems are problems that are...
Easy (they are called hard so that computer programmers can be paid more)
intractableCorrect
none of the choices
hard
Number of final state require to accept in minimal finite automata.
None of the mentionedCorrect
Number of states require to accept string ends with 10.
3Correct
One of the first programmable electronic computers in 1945.
ENIACCorrect
Production Rule: aAb->agb belongs to which of the following category?
Context Sensitive LanguageCorrect
Recursive : TM that always halt = ________________ : TM that may or may not halt
iterative
recursively enumerableCorrect
none of the choices given
iteratively enumerable
Regular expression Φ* is equivalent to.
ϵCorrect
Regular sets are closed under union,concatenation and kleene closure.
TRUECorrect
S → aAb, aA →aaAb, A→ε
PCorrect
Set of all tape symbols
ΓCorrect
Set of final or accepting states.
FCorrect
Some graphs contain cycles.
TrueCorrect
False
Start symbol, S ∈ N
SCorrect
Starting state
q0Correct
T generate recursively enumerable languages. The productions have no restrictions and phase structure grammar including all formal grammars.
Type-0 grammarsCorrect
Terminal symbols
a & bCorrect
The _____ of two sets A and B is the set containing those elements which are elements of A or elements of B.
unionCorrect
The __________ of a Turing machine depends on the current state of finite control and the tape symbol present in the input tape.
single moveCorrect
The algebraic law of regular expression described by E + E = E is _____________.
Annihilator
Identity
Additive idempotent
IdempotentCorrect
The algebraic law of regular expression described by φE = φ = Eφ is _______________.
AnnihilatorCorrect
Associative
Commutative
Identity
The basic model of a Turing machine consists of _______ and _______ , in which the finite control has finite set of states and the transition between the states.
finite control, input tapeCorrect
The body of a production in CFG is composed of:
a string of terminals only
none of the choices given because a CFG production does not have a body
a string of non-terminals only
a string of terminals and non-terminalsCorrect
The cardinality of the union of two disjoint sets is less than the sum of the cardinality of the given sets.
TrueCorrect
False
The CFG "S → (S) | SS | ε" accepts:
the string "<<>><><<>>"
the string "(((((((((())))))))))"
the string "((()))(())(())"Correct
the string "{} { {} } [[]]"
The commutativity property of set operations states that the union of any set with same set is the set itself.
True
FalseCorrect
The complement of an infinite language is necessarily finite.
FALSECorrect
The difference between DFA and NFA
DFA is where you get your passport while NFA is where you get your cheap rice
NFA can exist in only one state at a given time while DFA can exist in multiple states
DFA can exist in only one state at a given time while NFA can exist in multiple statesCorrect
DFA is also an NFA
The difference between regular expressions and finite automata is _____________.
that automata are more program syntax-like while regular expression are more machine-like
|regular expression| - |finite automata| = |Turing Machine| because you can only get the difference by computing for their respective lengths
that regular expressions are more program syntax-like while automata are more machine-likeCorrect
{regular expression} - {finite automata} = { } because they are sets and they are equivalent
The empty set is always a subset of any set.
TrueCorrect
False
The entity which generate Language is termed as regular languages.
FALSECorrect
The entity which generate Language is termed as:
GrammarCorrect
The first counting machine developed 5000 years ago in the Middle East.
AbacusCorrect
The first mechanical calculator using gears for calculation developed in 1642.
PascalineCorrect
The following are phases of C++ Programs except
ProcessCorrect
The initial stack top symbol (I ∈ S).
ICorrect
The initial state (q0 ∈ Q)
q0Correct
The intersection of sets A and B is expressed as _________________.
A - B
A / B
A x B
A ∩ BCorrect
The language L contains all strings over the alphabet {a,b} that begin with and end with
a,bCorrect
The minimum number of states required to recognize an octal number divisible by 3 are/is.
3Correct
The number of elements in the set for the Language L={xϵ(∑r) *|length if x is at most 2} and ∑={0,1} is
7Correct
The PDA has infinite memory and access in _____ order and the finite automata has ____ memory.
LIFO, finiteCorrect
The power set of a given set does not contain the set itself.
True
FalseCorrect
The recursive inference procedure determines that string w is in the language of the variable A, A being the starting variable.
TRUECorrect
The relationship between recursive and recursively enumerable languages is ________________.
∈
⊂Correct
∉
⊃
The stack content
sCorrect
The stack contents
sCorrect
The start symbol.
SCorrect
The string "0000111" is accepted by _____________.
the CFG S → 0S1 | A, A → A1 | ε
the CFG S → 1S0 | A, A → A0 | ε
the CFG S → 0S1 | A, A → 0A | εCorrect
none of the choices
The string aaaabbbccaaad is accepted by this regular expression.
a+b+c+d+
a*b*c*a*d*e+
a*b*c*a*d*Correct
a+b+c+d+e*
The string abe is accepted by this regular expression.
a*b*c*a*d*
a+b+c+d+e*
a*b*c*a*d*e+Correct
a+b+c+d+
The string acde is accepted by this regular expression.
a+b+c+d+
a+b+c+d+e*
a*b*c*a*d*
a*b*c*a*d*e+Correct
The symbol used for the empty string is ____________.
εCorrect
φ
a blank
ψ
The tape head is positioned at one of the tape cells for scanning the input symbol from the input tape and initially the tape head points at the left most cell of the input tape.
TRUECorrect
The theory of formal languages finds its applicability extensively in the fields of Computer Science. gave a mathematical model of grammar in which is effective for writing computer languages.
Noam Chomsky, 1956Correct
The top symbol is read and removed.
PopCorrect
The transition a Push down automaton makes it additionally dependent upon the _____.
stackCorrect
The unconsumed input.
wCorrect
The union of sets A and B is expressed as?
A U BCorrect
A - B
A / B
A x B
There are 5 tuples in finite state machine.
TRUECorrect
Transition function
δCorrect
Turing hypothesis believed that a function is said to be computable if and only if it can be computed by a Turing machine.
FALSECorrect
Unconsumed input
wCorrect
What are strings?
A string is an infinite area of symbols chosen from Σ
A string is a finite sequence of symbols chosen from ΣCorrect
A string is a finite area of symbols chosen from Σ
A string is an infinite sequence of symbols chosen from Σ
What can be said about CFLs?
It is closed under ~
It is closed under ∩
All of the given choices
It is closed under •Correct
What can be said about undecidable problems?
They are definitely recursive
They are surely iterative
They are not recursiveCorrect
They are not iterative
What can not be said about CFLs?
It is closed under ~
It is closed under —Correct
All of the given choices
It is closed under ∩
What cannot be said about automata theory?
None of the choicesCorrect
Automata theory is the study of abstract computing devices or machines
Automata theory is used to find out if a problem is computable
Automata theory answers the fundamental questions in computer science
What concept did Alan Turing introduce?
The concept of programs and programmabilities of problems
The concept of decidabilityCorrect
The concept of functions and relations
The concept of undecidability
What is a grammar?
How a sentence should be constructed to avoid syntax error
"Them cowboys is dumb!" is an example of a wrong grammar
"We ain't gonna make mistakes" is an example of correct grammar
A device that enumerates the sentences of a languageCorrect
What is a language?
A way to communicate with other humans
A collection of finite-length sentences that were constructed from a finite set of symbolsCorrect
A code that you use when writing a computer program
English, Filipino and Valyrian are examples of a language