Search Header Logo

tic tac toe with ai

Authored by BPS School

Computers

7th Grade

Used 42+ times

tic tac toe with ai
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which keyword is used to define a function in Python?

function

execute

define

def

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the purpose of the random.choice() function in Python?

Generate random numbers

Select a random item from a sequence

Sort a list

Shuffle a list

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following is an example of a built-in function in Python?

len()

random.choice()

print()

def

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the purpose of conditional statements in Python?

To make decisions based on conditions

To execute a specific task

To make random selections

To store values

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the purpose of variables in Python?

To create an infinite loop

To store values

To make random selections

To execute a specific task

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

which of the following is the correct syntax for creating a variable in python?

var x = 5

x = 5

create x = 5

x := 5

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

which of the following is the correct syntax for creating a list in python?

list = [ 1,2,3 ]

( 1,2,3 )

{ 1,2,3 }

" 1, 2, 3"

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?