by BlastRoom
Practice indexing, slicing, and common Python list and string operations.
#computer_science

40 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
Answer to place stones and capture territory.
Outrun the snow together.
Earn blasts, then hunt the other team.
Answer to earn energy, then climb.

The class blasts through walls together.
Bid on mystery lots. Most money wins.
Sell tours. Nice, standard, or a total scam.
Answer, restock, and serve the rush.
More correct answers pulls the rope your way.
Answer, then shoot down the alien wave.
Answer, then tap to leap the frozen ridge.
What does this Python program display? colors = ["red", "green", "blue", "yellow"] print(colors[2])
What does this Python program display? animals = ["fox", "otter", "hawk", "deer"] print(animals[1])
What does this Python program display? temperatures = [12, 15, 18] print(temperatures[-1])
Which value is printed? students = ["Ava", "Mateo", "Noor", "Liam"] print(students[2])
What does this Python program display? word = "network" print(word[0])
What character does this code print? name = "Python" print(name[1])
What does this Python program display? term = "variable" print(term[5])
What character is displayed? word = "syntax" print(word[-2])
What does this Python program display? letters = "algorithm" print(letters[2:6])
What is printed? word = "notebook" print(word[:-3])
What does this Python program display? values = [10, 20, 30, 40, 50] print(values[1:4])
Which list is displayed? planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter"] print(planets[0:5:2])
What does this code print? word = "python" print(word[::2])
What is the result of this slice? fruit = "strawberry" print(fruit[3:8])
What does this Python program display? items = ["a", "b", "c", "d", "e"] print(items[-4:-1])
Which string is printed? text = "computer science" print(text[9:])
What does this Python program display? scores = [4, 7, 9] scores.append(2) print(scores)
What list is printed? letters = ["a", "c", "d"] letters.insert(1, "b") print(letters)
What does this code display? foods = ["rice", "beans", "rice", "salad"] foods.remove("rice") print(foods)
What is printed after this code runs? tasks = ["email", "study", "walk"] tasks.pop() print(tasks)
What does this Python program display? numbers = [5, 10, 15, 20] numbers.pop(1) print(numbers)
Which list remains after the methods run? books = ["Dune", "Holes", "Wonder"] books.append("Fahrenheit 451") books.remove("Holes") print(books)
What does this code print? queue = ["Mia", "Omar", "Zoe"] queue.insert(0, "Kai") queue.pop(2) print(queue)
What does this Python program display? steps = ["start", "code", "test"] steps.remove("code") steps.insert(1, "debug") print(steps)
What does this Python program display? message = "Hello, World!" print(message.lower())
Which output does this code produce? city = "boston" print(city.upper())
What does this Python program display? message = "hello world" print(message.replace("l", "L"))
What is printed? sentence = "cats chase cats" print(sentence.replace("cats", "dogs"))
What does this code display? line = "red,green,blue" print(line.split(","))
Which value is printed? (Quotation marks in the options show where the spaces are.) label = " submit " print(label.strip())
What does this Python program display? text = "MiXeD" print(text.lower().replace("x", "n"))
What is the result of this code? words = "one two three" print(words.split())
What does this Python program display? first = "Grace" last = "Hopper" print(len(first + last))
What is printed? part1 = "data" part2 = "base" print(part1 + part2)
What does this Python program display? items = ["pen", "book", "ruler", "folder"] print(len(items))
What does this code print? word = "ice cream" print(len(word))
What is the last line this Python program displays? items = ["pen", "book", "ruler"] for i in range(len(items)): print(i, items[i])
What does this Python program display? colors = ["red", "blue", "green"] for i in range(len(colors)): print(colors[i].upper())
What is the last line printed? moons = ["Io", "Europa", "Ganymede", "Callisto"] for i in range(len(moons) - 1): print(i, moons[i])
What does this Python program display? words = ["sun", "moon", "star"] for i in range(len(words)): print(str(i) + ": " + words[i])
Crack the passcode before the zombies get in.
Answer, then swat bugs for bonus points.
Race through questions at your own speed.
Same question on every screen. Fastest wins.

Pick a tile, answer, hit bonuses and steals.
HTML Tags and Page Structure
50 questions