Search Header Logo

N5 SDD - Python code understanding (football program)

Authored by G Alexander-Doyle

Computers

6th Grade

Used 5+ times

N5 SDD - Python code understanding (football program)
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 type of variable is player?

integer

real number

string

boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of variable is goals_scored?

integer

real number

string

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variable determines the number of times the fixed loop in line 10 is run?

average

counter

Total_goals_scored

games_played

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Describe the process taking place in lines 10-13.

A conditional loop is used to keep a running total of how many goals the player scores in each of the games they've played.

A fixed loop is used to keep a running total of how many goals the player scores in each of the games they've played.

A fixed loop is used to keep a running average of how many goals the player scores in each of the games they've played.

A conditional loop is used to keep a running average of how many goals the player scores in each of the games they've played.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line of code involves calculating an average?

Line 10

Line 14

Line 15

Line 16

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line of code increments the total number of goals scored?

Line 12

Line 13

Line 15

Line 16

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line of code prompts the user to enter the number of goals scored in each game?

Line 10

Line 11

Line 12

Line 13

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?