Font size
Worksheetstic tac toe with ai
Total questions: 20
Worksheet time: 48mins
Which keyword is used to define a function in Python?
function
execute
define
def
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
Which of the following is an example of a built-in function in Python?
len()
random.choice()
print()
def
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
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
which of the following is the correct syntax for creating a variable in python?
var x = 5
x = 5
create x = 5
x := 5
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"
which of the following terms represent each data item in list?
unit
element
index
dimension
The data passed inside a function is known as_________
argument
Each element in a list can be accessed using an _________ value
aphabet
We can use the __________ operator to check two condition
def
of
in
and
Which is not a Data Type
float
boolean
loop
In coding to check the horizontal win condition of the tic tac toe game?
b[0] = icon and b[1] = icon and b[2] = icon
b[0] = icon and b[4] = icon and b[8] = icon
Which loop will run until the condition is False?
While
for
range
in
To check multiple condition
Elif
Else
If
This language is easy to learn and is one of the most popular language for AI today
C++
JAVA
RUBY
PYTHON
1. Which one of the following is an application of AI?
Remote controlled Drone
Self-Driving Car
Self-Service Kiosk
. Self-Watering Plant System
what is full form of AI
artficial improvement
artificial input
artificial intelligence
application intelligence
Alexa is an example of AI.
True
Flase
