In Python, you define the __________ first, then call it underneath
Function
Which list method is used to add elements to the end of the list?
What is the output of the following two-dimensional list:
grid = []
grid.append ([12, 37, 29, 52])
grid.append ([43, 62, 48, 23])
grid.append ([71, 22, 83, 93])
print(grid[0][3])
52
Having equal access to all computers and information on the Internet at the fastest possible speed is called what?
Net Neutrality
True or False: Artificial Intelligence is only used in robots.
False
Which of the following parameters is optional?
sample(a, b, c, d=10)
d
Which list method removes elements from a list by the location, not the value?
pop()
What is the output of the following two-dimensional list:
grid = []
grid.append ([12, 37, 29, 52])
grid.append ([43, 62, 48, 23])
grid.append ([71, 22, 83, 93])
print(grid[2][1])
22
What is the type of encryption where both the sender and receiver use the same key to encrypt/decrypt data?
Symmetric Encryption
What do we call the ability for an AI to use a representation to solve problems or make decisions?
Reasoning
What is output by the following program?
def mult(a, b = 1, c = 2):
->return a * b * c
print(mult(2, 5, 3))
30
Which list method can be used to add elements in the middle of the list?
insert()
How many rows will the following 2D List have?
grid = []
grid.append (["emu", "hedgehog", "dog"])
grid.append (["fish", "frog", "cat"])
print(grid[1][0])
2
Which HTML tag is used to denote a paragraph?
What do we call a machine designed to do specific tasks in physical space?
Robot
What is output by the following program?
def sample(val):
->val = val * 10
#MAIN
n = 15
sample(n)
print(n)
15
Which list method removes the first occurrence of an element in a list?
remove()
How many columns will the following 2D List have?
grid = []
grid.append (["emu", "hedgehog", "dog"])
grid.append (["fish", "frog", "cat"])
print(grid[1][0])
3
What are the basic commands of HTML are called?
tags
What do we call the ability of robots to interpret and make sense of sensory data?
Sensing
Consider the following code:
def mystery (a, b = 8, c = -6):
->return a + b + c
#MAIN
x = int(input("First value: "))
y = int(input("Second value: "))
z = int(input("Third value: "))
print(mystery (x, y))
What is output when the user enters 12, and 4?
10
What is the output of the following code:
h = [3, 9, 5, 1, 0, 6, 7, 9, 8, 3, 4, 6]
print (h[5])
6
What is the output of the following code?
grid = []
grid.append (["emu", "hedgehog", "dog"])
grid.append (["fish", "frog", "cat"])
print(grid[1][1])
frog
What type of cable uses light bouncing off glass to send data over the internet?
Fiber Optic Cables
What do we call media that uses AI to create a fake event, whether in photo, video, or audio format?
DeepFake