wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Symbol Puzzle Quiz - part 1

Total questions: 10

Worksheet time: 11mins

Name
Class
Date
1.

What is the purpose of the __LoadPuzzle method in the Puzzle class?

a)

To check for valid puzzle moves

b)

To display the current puzzle

c)

To load a puzzle from a file

d)

To save the current puzzle state

2.

What is the role of the CheckforMatchWithPattern method in the Puzzle class?

a)

To calculate the final score

b)

To check for matching patterns in the puzzle

c)

To validate the user's input

d)

To display the puzzle grid

3.

Which section of code indicates a placeholder for future code

4.

Which section of code indicates if the cell is empty

5.

Which line of code shows when the exception error message will be printed.

6.

What does the line raise IndexError() mean

a)

An index is out of range

b)

The list is out of range

c)

The cell is out of range

d)

None of the above

7.

Which line of code is showing inheritance?

8.

Which class in BlockedCell inheriting from

a)

Puzzle

b)

Cell

c)

Pattern

d)

Main

9.

Where in this piece of code does it show instantiation

10.

What line of code produces the score?