Which call makes the program respond to keyboard presses?

  1. screen.listen() together with screen.onkey()
  2. t.forward()
  3. turtle.done() only
  4. screen.onclick()
Answer

A) screen.listen() together with screen.onkey()

onkey() binds functions to keys; listen() gives the window keyboard focus. SLO CS-11-C-03

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise