Practice Programming Finals

Practice Programming Finals

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Medium

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

50 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is an event in coding?

Back

An action that causes something to happen.

Answer explanation

An event in coding refers to an action that causes something to happen, such as a user clicking a button or a timer expiring. This is the correct definition, distinguishing it from errors or other concepts.

2.

FLASHCARD QUESTION

Front

What will the robot do when Hannah clicks "Run"?

Media Image

Back

Moves forward 5 times

Answer explanation

The code instructs the robot to move forward a specific number of times. Since it is set to move forward 5 times, when Hannah clicks 'Run', the robot will execute this command and move forward 5 times.

3.

FLASHCARD QUESTION

Front

What do we call a sneaky error in a program that stops it from running as expected?

Back

bug

Answer explanation

The sneaky error in Scarlett and Arjun's program is called a 'bug'. Bugs are common in software development and can cause programs to behave unexpectedly.

4.

FLASHCARD QUESTION

Front

What is the process called when Elijah and Grace work together to find and fix errors in their new computer program?

Back

debugging

Answer explanation

The process of finding and fixing errors in a computer program is called debugging. Elijah and Grace are engaged in this essential task to ensure their program runs smoothly.

5.

FLASHCARD QUESTION

Front

Arjun and David are helping the bird reach the sneaky pig! They’ve written some code, but something’s not quite right. Can you spot what needs to be fixed in their code to help the bird catch the pig? Options: Remove a move forward block, Add a move forward block, Change the first turn block to left, Change the second turn block to left

Media Image

Back

Change the second turn block to left

Answer explanation

The second turn block needs to be changed to left to correctly direct the bird towards the pig. This adjustment ensures the bird follows the right path to reach its target.

6.

FLASHCARD QUESTION

Front

What kind of loop should Michael use to make sure the robot keeps spinning while the music is on?

Back

while loop

Answer explanation

Michael should use a while loop because it allows the robot to keep spinning as long as a condition is true, in this case, while the music is playing. This ensures continuous action until the music stops.

7.

FLASHCARD QUESTION

Front

Which loop command repeats an action only until a certain condition becomes true?

Back

until loop

Answer explanation

James and Olivia should use an 'until loop' because it repeats an action until a specified condition becomes true, which fits their requirement perfectly.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?