What is the keyword used to define a function in Python?
def
What do we call a mistake in your code?
A bug
What block starts your code when the green flag is clicked?
when green flag clicked block
What does “URL” stand for in a website link?
Uniform Resource Locator
What's wrong with this code? print("Hello)
Missing closing quote → print("Hello")
What is the symbol for a comment in Python?
# (hashtag)
What block or command do we use to repeat code over and over?
A loop
What block do you use to make a sprite move 10 steps?
move 10 steps block
Who is the CEO of SpaceX and known for co-founding Tesla and X (formerly Twitter)?
Elon Musk
What’s wrong here?
x = input("Enter a number")
print(x + 5)
input() returns a string → convert to int: print(int(x) + 5)
What type of data is this: "Hello"?
string
What do we call a container that stores a value like a number or word in a program?
A variable
What block checks if two things are touching in Scratch?
if <touching [sprite]> block
What programming language is used to build web pages along with HTML and CSS?
JavaScript
What’s wrong?
if 10 > 5:
print("Ten is greater")
Indentation error → indent the print line
What is the output of: print(3 + 2 * 2)?
7 (order of operations: 2×2 = 4, then 3+4 = 7)
What is a function in coding?
A set of instructions that can be reused (like a mini-program inside your program)
What’s the difference between forever and repeat blocks?
forever loops forever; repeat runs a set number of times
What is the name of the parent company that owns Google, YouTube, and other tech subsidiaries?
Alphabet Inc.
What’s the error?
def say_hi:
print("Hi")
Missing parentheses → should be def say_hi():
What’s wrong with this code?
def greet():
print("Hi")
greet
Missing () to call the function → should be greet()
What is the process of fixing errors or bugs in your code called?
Debugging
How do you make a sprite follow the mouse pointer?
Use point towards mouse pointer + move in a forever loop
What year was the first iPhone released?
2007
What’s wrong with this loop?
for i in range(3)
print(i)
Missing colon → should be for i in range(3):