Q1: What is programming?
A1: Giving exact step-by-step instructions to a computer so it does exactly what you want.
Q2: What is the goal of programming?
A2: To speak to computers in their language and create things like games, apps, or drawings
Q3: Name three things programming IS.
Q4: Name three things programming IS NOT.
Q5: Why should you learn programming?
You can create your own projects, understand apps and websites, practice logical thinking, and control technology.
Q6: What does a programmer do?
Writes code to tell computers exactly what to do and turns ideas into working creations.
Q7: What is a variable?
A variable is like a box that stores information, such as numbers, words, or sentences.
Q8: Give examples of data types you can store in variables.
A8: Text (string), sentence, number (integer), decimal (float).
Q9: Rules for naming variables?
A9: Must start with a letter, can include numbers (not at start), use underscores for spaces, and cannot use spaces, symbols, or Python keywords.
Q10: What is wrong with these variable names: 1name, my name, my-name, print?
A10: 1name → starts with number; my name → has space; my-name → hyphen not allowed; print → Python keyword.
Q11: What is addition, subtraction, multiplication, division, and modulus?
Addition + sums numbers, subtraction - subtracts, multiplication * multiplies, division / divides, modulus % gives remainder.
Q12: How does + behave with strings?
A12: It joins strings (concatenation).
Q13: How does * behave with strings?
A13: It repeats strings.
Q14: What happens if you try “Hello” + 5?
It causes a TypeError because you cannot add a string and a number directly.
Q15: What does input() do?
A15: Lets the computer ask the user a question and stores the answer as text (string).
Q16: How do you get a number from input()?
A16: Use int(input()) to convert the text to a number.
Q17: How do you fix the error when trying “Hi” + 5?
A17: Convert the number to a string with str(5) → “Hi” + str(5).
Q18: How do you save a Python program?
A18: Click File → Save As…, give a name (e.g., hello_user.py), and click Save.
Q19: Why is input() important?
A19: It makes programs interactive and allows the computer to “talk” with the user.
Q20: What is the difference between the variable name and content inside?
: The variable name cannot have symbols like !, but the content inside (string) can, e.g., fruit = “Apple!”.