DiceGameStep1

DiceGameStep1

Assessment

Interactive Video

Computers

7th Grade

Medium

Created by

John Streety

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating the dice game?

Print a welcome message

Roll the dice immediately

Ask the user how many dice they want to play with

Ask the user for their name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What module is imported to help with rolling dice?

math

sys

os

random

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the rollDice function return?

A string of numbers

A boolean value

A list of random numbers

A single random number

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the user_rolls variable?

To store the user's name

To store the number of dice

To store the user's score

To store the result of the user's dice roll

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the program do after rolling the dice for the user?

Prints a goodbye message

Rolls the dice for the computer

Ends the game

Asks the user to roll again