Codesters_QZ1

Codesters_QZ1

8th Grade

8 Qs

quiz-placeholder

Similar activities

Computer Science Discoveries Code.org U3L7-13

Computer Science Discoveries Code.org U3L7-13

Introduction to Programming Bank

Introduction to Programming Bank

Key and Mouse Input Review

Key and Mouse Input Review

Events & Intervals - Codesters

Events & Intervals - Codesters

Codesters in Space

Codesters in Space

JavaScript 101 Review

JavaScript 101 Review

L12-15 Quiz

L12-15 Quiz

Scratch Quiz

Scratch Quiz

Codesters_QZ1

Codesters_QZ1

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

Bhavika shonal

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Flipper game .How do we know if the shark is underwater?

The left of the screen, which is 1,1. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.

The right of the screen, which is 2,2. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.

The middle of the screen, which is 0,0. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.