Check Your Understanding

Now that we are the end of the User Input activity, try and answer the questions below.

User Input: Exercise 1

A friend has written the following Code:


What will happen when the user types Mina in the answer box and press enter?

User Input: Exercise 2

Another friend is creating a game where the user has to navigate a Cat through a maze.

He is currently working on the user input Code, shown in the blocks below, and is finding that when they try and move the Cat with the arrow keys, the Cat is not moving as the friend expects.


What will he need to change to get the Cat to move as expected?

Hint: when the user presses the right arrow key, will the Cat move to right? Why or why not?


Views
1 Total Views
1 Members Views
0 Public Views
Share on Social Networks
Share Link
Share by mail

Please login to share this webpage by email.