Computer Science EngineeringVery hardISRO SC

A deterministic PDA with acceptance by empty stack (not final state) can accept only languages that are

  1. A. regular
  2. B. finite
  3. C. prefix-free
  4. D. context-sensitive but not context-free

Correct answer: C. prefix-free

Once the stack is empty the DPDA cannot proceed, so no accepted string can be a proper prefix of another accepted string.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic