Why is it important to debug your code?
To identify and fix errors so the program runs as intended.
What is a variable in Python?
A container used to store data values.
What is a software developer?
A person who designs, builds, and maintains software programs.
What does an if statement do in Python?
It allows the program to make decisions based on conditions.
Name one everyday device that uses coding to work.
Smartphones, smart TVs, or computers.
What is an algorithm in coding?
A step-by-step set of instructions to solve a problem or complete a task.
What is the purpose of the print() function in Python?
To display output to the screen.
What is the role of a front-end developer?
They focus on designing and coding the parts of a website or application that users interact with.
What is the purpose of a loop in coding?
To repeat a block of code multiple times
How do streaming platforms like Netflix use coding?
They use algorithms to recommend shows and movies based on user preferences.
How can learning coding help you in other areas of life or school?
It improves problem-solving, logical thinking, and creativity.
What is the difference between a list and a dictionary in Python?
A list is an ordered collection of items, while a dictionary stores key-value pairs.
What is the difference between a web developer and a mobile app developer?
A web developer creates websites, while a mobile app developer creates applications specifically for mobile devices.
What is the difference between a for loop and a while loop in Python?
A for loop runs a specific number of times, while a while loop runs until a condition is no longer true.
How can coding be used in video games?
It controls character actions, graphics, game mechanics, and interactions.
Name 4 coding languages
python, js, css, html
What will the following code output?
x = 5
y = 10
print(x + y)
15
Why is problem-solving an important skill for a career in coding?
Coders often encounter bugs or challenges and need to find effective solutions to make programs work.
In Python, what will the following code output?
for i in range(3):
print("Hi")
Hi
Hi
Hi
What is one way coding helps businesses?
It automates tasks, manages data, or improves customer experiences through apps and websites.
Imagine you’re creating a program to track homework assignments. What steps would you take to plan your code before writing it?
Answer: Identify the features needed (e.g., due dates, subjects), decide how to organize the data (e.g., lists or dictionaries), and outline the logic for adding, updating, and viewing assignments.
How would you write a loop in Python that prints the numbers 1 to 5?
for i in range(1, 6): print(i)
Name a high paying job that requires coding. How do they use coding in their job?
ex. A data scientist analyzes and interprets complex data using coding and statistical tools to provide insights and make predictions.
What happens if you write a loop with no way to stop it?
It creates an infinite loop, which can crash your program.
How can coding help in fields like medicine or science?
It’s used to analyze data, model diseases, or create software for medical equipment.