pencil-icon
Build your own quiz

Computers

8th

grade

Image

Unit 3 Practice Test

208
plays

5 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    A team of friends is creating a game together. They want to make sure that everyone can understand the code that the others write. Which of the following will make it easier for them to read each other's code? (Choose TWO)

    Use the counter pattern to increase the score

    Include descriptive comments in the program

    Use watchers to keep track of variable and sprite property values

    Give variables and functions names that make sense

    Declare variables outside of the draw loop, but update them inside the draw loop

  • 2. Multiple Choice
    30 seconds
    1 pt

    Why do programmers like to use functions? (Choose TWO)

    They keep the code organized and easy to understand.

    They are a good way to store user input to use later in the program.

    They make the program run faster.

    They are necessary for any program to run.

    They let you use the same code in different places in the program without having to rewrite it.

  • 3. Multiple Choice
    30 seconds
    1 pt
    Image

    Consider the following program (blocks and text)


    apple.x = 20;

    banana.x = 60;

    apple.x = banana.x + 30;

    banana.x = 80;


    What is the apple's x position at the end of this program?

    20

    90

    110

    There will be two apples in two different positions.

    None, because the program will have an error.

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?