Supporting Details Exit Ticket
| # | Answer |
|---|---|
| 1 | A supporting detail is information that explains or proves an idea in more detail. |
| 2 | Code comments include supporting details to help explain what the code does and why it is written that way. |
| 3 | A. It uses five numbers and divides the total by five. |
| 4 | A. A loop repeats instructions without writing them again. |
| 5 | The supporting detail is that the input is stored in a variable called name. |
| 6 | A variable is useful because it can store information that a program may need to use later. |
| 7 | One supporting detail is that names like totalScore or userAge help a programmer understand the purpose of the variable. |
| 8 | A. It checks whether a condition is true. |
| 9 | A supporting detail could be that the function organizes code into a smaller, reusable part. |
| 10 | One supporting detail is that debugging helps find mistakes in code so the program can work correctly. |
| 11 | B. Comments can explain the purpose of a tricky line of code. |
| 12 | A supporting detail is that the program prints each number in order from 1 to 10. |
| 13 | One supporting detail is that an error message may show where the problem is in the code. |
| 14 | An example is strong because it shows how an idea works in a real code situation. |
| 15 | A. The user types information into the program. |
| 16 | A list is useful because it can store many related items in one place, such as names or scores. |
| 17 | Testing code is important because it helps find errors and shows whether the program works as expected. |
| 18 | A. It makes code easier to organize and read. |
| 19 | Using functions can make a program better because they reduce repeated code, which makes the program shorter and easier to update. |
| 20 | Supporting details are important because they explain how code works and why certain choices are made. They help learners understand ideas more clearly, spot mistakes, and write better programs. |