1 Answers
📚 Topic Summary
In computer science, loops are like magic spells that tell a computer to repeat a set of instructions multiple times. Instead of writing the same code over and over, you can use a loop to do it automatically! User input is how the computer asks you for information and uses it in the program. For example, a program might ask your name and then say hello! 😃
🧮 Part A: Vocabulary
Match the term with its definition:
| Term | Definition |
|---|---|
| 1. Loop | A. Information provided by the user |
| 2. User Input | B. Asking a question and storing the answer. |
| 3. Variable | C. A sequence of instructions that is repeated. |
| 4. Prompt | D. A named storage location in the computer's memory. |
| 5. Iterate | E. To repeat a process multiple times. |
Match the correct letter (A, B, C, D, or E) to each number (1-5).
✍️ Part B: Fill in the Blanks
A _______ is a programming structure that repeats a sequence of instructions. _______ is how a program gets data from the user. When we repeat a process, we often say we _______ through it. A _______ is often used to ask the user for information. We can store that information in a _______.
🤔 Part C: Critical Thinking
Imagine you are creating a game where the player has to guess a secret number. How would you use loops and user input to make this game fun and engaging? Explain your ideas.
Join the discussion
Please log in to post your answer.
Log InEarn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! 🚀