Question 48Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)

Can a DFA recognize a palindrome number?क्या एक DFA एक पैलिंड्रोम नंबर को पहचान सकता है?

क्या एक DFA एक पैलिंड्रोम नंबर को पहचान सकता है?
  1. AYesहाँ
  2. BNoनहीं
  3. CYes, with input alphabet as ∑*हाँ, इनपुट अक्षर ∑* के साथ
  4. DCan’t be determinedनिर्धारित नहीं किया जा सकता
Show answerHide answer

Correct answer: (B) Noनहीं

Explanation

Recognising palindromes requires remembering an unbounded first half to compare with the second half. A DFA has finite memory, so palindromes are not regular; a PDA is needed.Palindrome पहचानने के लिए पहली अनबाउंडेड आधी स्ट्रिंग याद रखनी पड़ती है ताकि दूसरी आधी से तुलना हो। DFA की मेमोरी सीमित है, इसलिए palindrome regular नहीं हैं; PDA चाहिए।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 48 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.