Functions
Lists
2D Lists
Internet
AI
100

In Python, you define the __________ first, then call it underneath

Function

100

Which list method is used to add elements to the end of the list?

append()
100

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

100

Having equal access to all computers and information on the Internet at the fastest possible speed is called what?

Net Neutrality

100

True or False: Artificial Intelligence is only used in robots.

False

200

Which of the following parameters is optional?

 sample(a, b, c, d=10)

d

200

Which list method removes elements from a list by the location, not the value?

pop()

200

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

200

What is the type of encryption where both the sender and receiver use the same key to encrypt/decrypt data?

Symmetric Encryption

200

What do we call the ability for an AI to use a representation to solve problems or make decisions?

Reasoning

300

What is output by the following program?

   def mult(a, b = 1, c = 2):

      ->return a * b * c

   print(mult(2, 5, 3))

30

300

Which list method can be used to add elements in the middle of the list?

insert()

300

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

300

Which HTML tag is used to denote a paragraph?

<p>
300

What do we call a machine designed to do specific tasks in physical space?

Robot

400

What is output by the following program?

   def sample(val):

         ->val = val * 10

   #MAIN

   n = 15

   sample(n)

   print(n)

15

400

Which list method removes the first occurrence of an element in a list?

remove()

400

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

400

What are the basic commands of HTML are called?

tags

400

What do we call the ability of robots to interpret and make sense of sensory data?

Sensing

500

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

500

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

500

What is the output of the following code?

grid = []

grid.append (["emu", "hedgehog", "dog"])

grid.append (["fish", "frog", "cat"])

print(grid[1][1])

frog

500

What type of cable uses light bouncing off glass to send data over the internet?

Fiber Optic Cables

500

What do we call media that uses AI to create a fake event, whether in photo, video, or audio format?

DeepFake

M
e
n
u