Search Header Logo

Python Exam #2 (Spring 2024) - Mastermind - Spring 2023

Authored by Moshe Erlbaum

Computers

9th - 12th Grade

Used 1+ times

Python Exam #2 (Spring 2024) - Mastermind - Spring 2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many rows of the mastermind board needs to be kept in the actual memory?

2
4
10
11

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the draw_square method?

To draw the buttons.
To be used in draw_board
To give the hints.
To help draw the colored pegs.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will draw_square be executed in draw_board with line 72?

1
4
11
44

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will draw_square be executed in draw_board with line 82?

1
2
20
40

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lines 68,69 and 73,74 show that the game board is being drawn…

left to right and top to bottom
right to left and top to bottom
left to right and bottom to top
left to right and bottom to top
it can't be figured out from those lines.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What line chooses the random colors of the secret code?

25

29

30

31

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What line will save the random color of the code into memory?

29

31

25

30

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?