1. | Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2 is undecidable. Which one of the following is TRUE?
| ||||||||
2. | Consider three problems P1, P2 and P3. It is known that P1 has polynomial time solution and P2 is NP-complete and P3 is in NP. Which one of the following is true.
| ||||||||
3. | Consider the FSA M
The language recognized by M is
| ||||||||
4. | Let Nf and Np denote the classes of languages accepted by nondeterministic FSA and nondeterministic PDA, respectively. Let Df and Dp denote the classes of languages accepted by deterministic FSA and PDA respectively. Which of the following is TRUE?
Some of these questions have appeared in GATE examinations.
| ||||||||
5. | Consider the languages
L1 = {anbncm|n, m > 0} and L2 = {anbmcm|n, m > 0}
Which one of the following statements is false?
| ||||||||
6. | Consider the languages
L1 = {anbmcndp|n, m, p > 0} and L2 = {anbmcpdm|n, m, p> 0}
Which one of the following statements is false?
| ||||||||
7. | Consider the languages
L1 = {anbmcmdn|n, m > 0} and L2 = {anbncmdm|n, m > 0}
Which one of the following statements is false?
| ||||||||
8. | Let L and be a language and its complement. Which one of the following possibilities will not hold?
| ||||||||
9. | Let L1 be a recursive language and let L2 be a recursively enumerable language which is not recursive. Which one of the following is TRUE?
| ||||||||
10. | Consider the languages
L1 = {wwR|w ∊ {0,1}*}
L2 = {wcwR|w ∊ {0,1}*}
L3 = {ww|w ∊ {0,1}*}
Which one of the following is TRUE?
| ||||||||
11. | Let S be a NP–complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial time reducible to R. Which one of the following statements is TRUE?
| ||||||||
12. | L1 = {an + m bn cm|n, m ≥ 0}
L2 = {an + m bn + m cm|n, m ≥ 0}
L3 = {an + m bn + m cm + n|n, m ≥ 0}
Which of these languages are not CF.
| ||||||||
13. | If s is a string over (0+1)* then let m0 (s) denote the number of 0’s in s and n1 (s) the number of 1’s in s. Which one of the following languages is not regular?
| ||||||||
14. | For s ∊ (0+1)*let d(s) denote the decimal value of s (eg. D(|0|) = 5).
Let L = {s ∊ (0+1)*|d(s) mod 5 = 2 and d(s) mod 7 ≠ 4}
Which one of the following statements is TRUE?
| ||||||||
15. | Let FHAM be the problem of finding a Hamiltonian cycle in a graph G and DHAM be the problem of determining if a Hamiltonial cycle exists in a graph. Which one of the following is TRUE?
| ||||||||
16. | Consider the following statements about the context-free grammar G = {S → SS, S → ab, S → ba, S → c}
Which combination below expresses all the true statements about G?
| ||||||||
17. | Let L1 be a regular language and L2 a deterministic CFL. L3 is recursively enumerable but not recursive. Which one of the following statement is FALSE?
| ||||||||
18. | Consider the regular language L = (111 + 11111)*. The minimum number of states in any DFA accepting the language is
| ||||||||
19. | Which one of the following grammars generates the language L = {aibj|i ≠ j}.
| ||||||||
20. | In the above correct grammar what is the minimum length of the derivation (number of steps starting from S) to generate the string a1 bm with l ≠ m?
| ||||||||
21. | Consider S → SS|a.
What is the number of different derivation trees for aaaaa
| ||||||||
22. | Which one of the following grammar generates L = {ai bj ck|i ≠ k, i, j, k ≥ 1}
| ||||||||
23. | A minimum state deterministic automaton accepting the language L = {w|w ∊ {0,1}*, the number of 0’s and 1’s in w are divisible by 3 and 5 respectively} has
| ||||||||
24. | The language L = {0i21i / i ≥ 0} over the alphabet {0, 1, 2} is
| ||||||||
25. | Which of the following languages is regular?
| ||||||||
26. | Let Σ = {0, 1}, L1 = Σ* and L2 = {0n 1n|n ≥ 1} then the languages L1 ∪ L2 and L2 are respectively
| ||||||||
27. | Which of the following statements is false?
| ||||||||
28. | Two of the following four regular expressions are equivalent. Which two?
| ||||||||
29. | Let L ⊆ Σ* where Σ = {a, b}. Which of the following is true?
| ||||||||
30. | Define for a CFL L, init (L) = {u | uv ∊ L for some v ∊ {0, 1}*}. In other words init (L) is the set of prefixes of L. Let L = {w|w ∊ {0, 1}+, w has equal number of 0’s and 1’s}. Then init (L) is
| ||||||||
31. | If L1 and L2 are CFL and R a regular set, one of the languages below is not necessarily a CFL. Which one?
| ||||||||
32. | The grammar whose productions are
〈stmt〉 → if 〈id〉 then 〈stmt〉
〈stmt〉 → if 〈id〉 then 〈stmt〉 else 〈stmt〉
〈stmt〉 → 〈id〉 := 〈id〉
〈id〉 → a|b|c|d|f
is ambiguous because
| ||||||||
33. | Which one of the following regular expressions over {0, 1} denotes the set of all strings not containing 100 as a substring?
| ||||||||
34. | Which one of the following is not decidable?
| ||||||||
35. | Which of the following languages over {a, b, c} is accepted by a deterministic PDA?
| ||||||||
36. | Which of the following instances of the post correspondence problem has a viable sequence (a solution)?
| ||||||||
37. | It is undecidable, whether
| ||||||||
38. | Let r = 1(1+0)*, s = 11*0 and t = 1*0 be three regular expressions and R, S, T the regular sets corresponding to them. Which of the following is true?
| ||||||||
39. | Which one of the following is the strongest correct statement about a finite language L over a finite alphabet Σ?
| ||||||||
40. | Which of the following statements is TRUE?
|
The blog provides study material for Computer Science(CS) aspirants. Mostly says "material nahi milta, padhun kahan se.", I think If you can not find content on the Internet, then you are not a CS student. Dedicated to (Prof. Rakesh Kumar, DCSA, K.U.Kurukshetra, HARYANA, INDIA)- "Ek teacher ka bahut jyada padhna, bahut jyada jaroori hota hai."
Saturday, 26 January 2013
TOC mCQ Two
Subscribe to:
Post Comments (Atom)
hello sir, thanks for the questions,
ReplyDeletecurrently i am preparing for gate exam and under lot of stress also due to bad competition , around 1-2 lac people given gate exam last year for cs an 2% had crossed 50 mark but unfortunately the mtech seats in iit elapse for just 800 airs hence very much stressed as i m not so intelligent....but i am trying from past 4 months....and really seen lots of ups and downs...my friends got placements in company's.... sometimes it feels rather going for this i should also go for job search in industrial area...but then i think getting a 10k job with just 9-8 hrs php..or android application making won't help in long run.....hence at the end just started preparing for gate....god knows what gonna happen..... i am also depreesed as if i fail to get admission then i will elapse about my 1 year after passout....therefore no experience and elapsed 1 year hence not remain fresher and kicked of market.....hmmmm thats a life of medeokar ...... well bit frustrated and seeking out websites for gate previous solutions i see your site.... well seem to be you have also struggled.... don't know what to say..... its getting late also so at the end just want to say ...nice blog keep it up...hope you became successful teacher...i don't know what gonna happen to me.... suicide or seat ..... lets pray for best..... good luck and make a good site....
Dear deepak
ReplyDeleteif yu are trying with o much confident, and hard working.
it will definetely pay you,
suicide is not a solutions for any problem.
it shows that you dont have courage to handle the situation.
be optimistic, you can do any thing you wanna do.
just hard work and confidence needed, my blessings are always with you, keep it on.
thanks for praising blog, i just want that no one came to me and says, sir padhne ko material nai mil rha.
bcoz jab koi computer science ka student ye bolta hai, to lagta hai, CS sucks. as Internet is made of by CS, if we didn't find material on CS, shame on us.
lastly, good luck for GATE 2013, sure you can do it with better better AIR.
always waiting for your precious comments
thank you...sir lets hope for the best....btw ssc combine graduate and ibps forms are out in case if you are interested.... and good luck for future .... will comment next time when gate paper will over....seya!
ReplyDeleteCan u explin if possible.. why is option d the answer of q 27 ... a b and c are correct , i know so answer is definately d .. i know that .. but how can one prove that statement in option d is decidable..i refered to some solution which said we can create some dfa etc. but i felt it incomplete.. pls reply if some1 knows the reason...!!
ReplyDeleteCan u explin if possible.. why is option d the answer of q 27 ... a b and c are correct , i know so answer is definately d .. i know that .. but how can one prove that statement in option d is decidable..i refered to some solution which said we can create some dfa etc. but i felt it incomplete.. pls reply if some1 knows the reason...!!
ReplyDeletewhy is d the ans for q27/.. a b and c are true which leaves d as answer but can any1 prove for me that the equality of 2 languages given by 2 regular grammars is decidable ..
ReplyDeleteHello, JAY TELI
ReplyDeletethanks for your response/query.
As regular languages are meant for finite things i.e. finite memory dats why we say we can do decidable decidable things with them.
I know its will not sufffice for any TOC aspirant to prove it, but its a glimpse, i will try to concince more you ASAP.