Computer Science · Theory of Computation
Let L be any language. Define language chop(L) by removing the two leftmost symbols of every string in L given by chop(L) = {w | vw ∈ L with |v| = 2}. We define another language even(w) as the strings obtained by extracting from w the letters in the even-numbered positions, and even(L) = {even(w) | w ∈ L}. If L is a regular language, then which of the following is true?
- 1Both even(L) and chop(L) are not regular
- 2Both even(L) and chop(L) are regular✓
- 3even(L) is not regular and chop(L) is regular
- 4even(L) is regular and chop(L) is not regular
Correct answer
Both even(L) and chop(L) are regular
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Theory of Computation?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Theory of Computation