Level 4: Learning Quiz - IncrediCoders/Python1 GitHub Wiki

SW_avatar3

SideWinder added this page on June 6, 2023

I prepared some questions to check what you learned!

Level 4 Quiz Questions

  1. In the line, from init import * what does the asterisk mean?

  2. What does the line, def update(delta_time) do and what does it mean for the rest of the program?

  3. What is an event and what is an example of an event?

  4. What two keys on the keyboard in this program make the two ships fire?

  5. What is an "Elif" statement?

  6. What code would you write in this program to make Player 1's ship move AND rotate?

  7. What does the code line, if key_held_down() do and what is an example of something you can put in the parentheses?

  8. What code would you write in this program to make Player 1's ship increase in or add velocity?

  9. What is the definition of state in a program?

  10. What is an example of state that you used in this program?

Next Steps

Next, you can take on the two extra challenges to add to your Space Wars program and learn more! When you're done, you can move on to Level 5, the Creeper Chase!

Take the Challenges!

  1. Challenge 1: In this challenge, you are going to write more code on the SpaceWars.py file!

  2. Challenge 2: In this challenge, you are going to write code that will allow two players to play the Space Wars game together!

More Level 4 Resources

  • Level 4: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game,

  • Level 4: Rewards - If you completed the Space Wars project that we talked about, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the **WHAT **Award digital download, to show off your accomplishment!

  • Level 4: Space Wars: All Online Resources - Return back to the main Level 4 page, with all our online resources!

Level 5

After you're completely done with Level 4 (did you do the challenges?), then it's time to move on to Level 5! While you read through Level 5 in your book, you can check out the resources from WHO, as they teach you how to build the Creeper Chase program:

I hope you had fun learning about space wars!

-- Side Winder