No student devices needed. Know more
5 questions
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
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.
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.
Which of the following is NOT best to decide before beginning to write code for a program?
The general purpose and design of the program.
What kinds of variables and functions you will need to make it work.
How the user will interact with the program.
How many lines of code you want to write.
What types of media, such as pictures or sounds, you will need?
A team is making a platform jumper game. The background and platforms are working, but the main character won't appear. What might be the problem?
3 only
1 and 2
1 and 3
2 and 3
1, 2, and 3
Explore all questions with a free account