🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: CFG and PDA: all 10 questions

Quiz: CFG and PDA · Question 3 of 10

What extra memory does a pushdown automaton have compared with a finite automaton?

What extra memory does a pushdown automaton have compared with a finite automaton?

  1. A.A second tape
  2. B.A stack
  3. C.A queue
  4. D.Random-access memory
Answer & explanation

Correct answer: A stack

The stack lets it match nested structure like a^n b^n.

Can you get the rest right without peeking?

Take the timed Quiz: CFG and PDA quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →