0 of 5 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
What is an input?
What is an output?
Fill in the function so that it will wait for button A to be pressed.
m1.waitForButton ()
Match the lines of code with what they do.
m1 will wait for button A to be pressed.
|
|
Will cause an error, because this is the incorrect way of writing "listen()".
|
|
m1 will wait for any button to be pressed.
|
|
m1 will listen to what you say.
|
|
m1 will display the string you write in the brackets.
|
|
The computer will say whatever is between the brackets.
|
|
m1 will wait for button B to be pressed.
|
|
This is the wrong way of writing "m1.waitForButtonPress()".
|
|
Order these lines of code so that you press button B and then it says “nice”.
View Answers: