Programming/Python

Bingo

Prof. Jose María Alvarez Rodríguez

2023

Setting

  • You will receive an empty bingo card.
  • A set of questions will be displayed.
  • You will have 1-2 minute per question to fill down your response in the bingo card.

Playing

  • The instructor will say the responses.
  • You will mark your correct responses (X).
  • If you mark ALL your responses as correct...

 

BINGO!

ROUND 1

What is the result of the next expression?

3*5 // 2 * 2

Given the next list:

 

x = [2, 4, 6, 8]

What is the result of the next statement?

 

print(x[1:4:2])

 

Given the next list:

 

x = [4,5,6,7]

What is the result of the next code?

 

             while len(x) > 1:

              v = x[0]

              del x[0]

 

print(x[0])

 

What is the final value of v?

     

x = "Hello"

v = ""

i = 0

while i<len(x):

        if i % 2 == 0:

            v = v + (x[i]*2)

        else:

            v = v + (x[i])  

  i = i + 1

 

Find the word...

A touchable screen is an

 

??????

 

device

The integer datatype in Python is...

 

??????

 

 

Find the feature...

END FIRST ROUND!

Winning Bingo Card

ROUND 1

14 X Input/Output
[4,8] 7 X
X HHellloo immutable

ROUND 2

Given a = (1),

What is the result of a[0]?

The list datatype in Python is...

 

??????

 

 

Find the feature...

What is the content of other_values?

     

values = [4, 15, 9, 10]

other_values = []

k = 10

for v in values:

      if v < k:

          other_values.append(v)

 

 

What is the content of v3?

     

v1 = [4,5,6]

v2 = [5,7,8,9]

v3 = []

for v in v1:

       if v2.count(v) != 0:

           v3.append(v)

 

What is the result of the next code snippet?

     

a = 2

b = 3

if a > b:

      print(a)

elif:

      print(b)

 

What is the result of the next code snippet?

     

x = [4, 8, 10]

i = 0

while i < len(x):

       print(x[i])

       i = i - 1

 

END SECOND ROUND!

Winning Bingo Card

ROUND 2

 
Error X Compilation error
mutable [4,9] X
X [5] Runtime error

ROUND 3

Given a = (2,),

What is the result of

a[0]?

What is the result of the next code snippet?

     

s1 = "This is a string"

s2 = s1

s3 = "This is a string"

if s1 is s2:

      if s3 == s2:

            print("IS ==")

else:

  print("IS NOT")

 

What is the content of the variable result?

     

l1 = [7, 5]

l2 = [4]

result = []

for v in l1:

      for w in l2:

             result.append([v,w])

 

What is the result of the next expression?

value = (3%2 == 1) and not (True) or True

print (value)

 

Find the feature...

A driver is a kind of...

What is the result of the variable c?

     

a = 3

b = 3

c = 1

 

for i in range(0,b):

      c *= a

 

print(c)

 

END THIRD ROUND!

Winning Bingo Card

ROUND 3

 
2 X Software
IS == [[7, 4], [5, 4]] X
X True 27

Python-Bingo

By Jose María Alvarez

Python-Bingo

A game for self-assessment of Python programming concepts.

  • 1,320