DiceGame#2

DiceGame#2

Assessment

Interactive Video

Computers

7th Grade

Easy

Created by

John Streety

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'find_winner' function in the dice game?

To roll the dice for the user

To reset the game scores

To determine the winner between the user and the computer

To display the rules of the game

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we calculate the total of the user's dice rolls?

By adding a fixed number to each roll

By subtracting the smallest dice value

By using the sum function on the user's dice list

By multiplying the dice values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the user's total is greater than the computer's total?

The computer wins

The game is a tie

The game restarts

The user wins

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final step after defining the 'find_winner' function?

To call the function and test it

To change the function name

To print the game rules

To add more dice

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is observed when the function is tested multiple times?

The user always wins

The game never ends

The computer always wins

The outcomes can vary between user and computer wins