Search Header Logo

Codesters_QZ1

Authored by Bhavika shonal

Computers

8th Grade

Used 1+ times

Codesters_QZ1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code do?

The user’s projectile is triggered by the space key being pressed every 2 seconds

The computer’s projectile is an interval event that happens every 2 seconds.

It says user’s projectile and the computer’s projectile is very similar.

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

How do we call the function when the space key is pressed?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we check what sprite is being hit?

We set up a conditional statement that checks if the hit sprite (that is being passed to this function as a parameter) is the rocket sprite

We set up a conditional statement that checks if the hit sprite (that is being passed to this function as a parameter) is the enemy sprite.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the ball in the hole Game.

How can we make the ball stop moving while we wait?

We can set the x and y speeds to zero before calling the wait function.

We can set the x and y speeds to one before calling the wait function.

We can set the x and y speeds to 2 before calling the wait function.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In snowman game How can we ask for letters over and over again?

Using repeat loop

Using forever

Using while loop

Using for loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we check if the player has lost? What additional code will we need to add to handle this?

The player has lost if guesses drop to zero.

To handle this we will need to add code to decrease the value of guesses if the letter guessed is not in the word.

The player has lost if guesses drop to zero.

To handle this we will need to add code to decrease the value of guesses if the letter guessed is not in the word.

We should also add a print statement letting the user know how many guesses they have left.

We can change the while loop condition to only run if guesses is greater than zero and that word guessed has returned False.

The player wins if they guess all the letters in the word.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Now that we have lists to store our questions, answers, and correct answers how can we actually add information into these lists?

We can use the list function .append() to add items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.

We can use the list function .pop() to add items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.

We can use the list function .pop() to remove items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.

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?