Event & Sequential-Driven Programming Quick Check

1 of 51 of 5 Items
Question
Which of the following is an example of sequential-driven code?(1 point)
Responses

Wn.onkey(picture, "p")
wn.listen()
wn.mainloop()
Wn.onkey(picture, "p") wn.listen() wn.mainloop()

for i in range(x):
for j in range(y):
t.forward(z)
t.right(360 / y)
t.right(360 / x)
wn.listen()
wn.mainloop()
for i in range(x): for j in range(y): t.forward(z) t.right(360 / y) t.right(360 / x) wn.listen() wn.mainloop()

def h1():
t.forward(30)
def h2():
t.left(45)
def h3():
t.right(45)
wn.onkey(h1, "Up")
wn.onkey(h2, "Left")
wn.onkey(h3, "Right")
def h1(): t.forward(30) def h2(): t.left(45) def h3(): t.right(45) wn.onkey(h1, "Up") wn.onkey(h2, "Left") wn.onkey(h3, "Right")

wn.onclick(f)
wn.listen()
wn.mainloop()

The example of sequential-driven code is:

for i in range(x):
for j in range(y):
t.forward(z)
t.right(360 / y)
t.right(360 / x)
wn.listen()
wn.mainloop()