� Python Programming – Beginner Level
📝 Question Paper
Name:____________________
Date:_____________________
Total Marks: 20
Section A – Fill in the blanks (1 mark each)
(1 × 5 = 5 marks)
1. In Python, we use _________() to get input from the user.
2. The print() function is used to __________ something on the screen.
3. To join text and variables, we can use the _________ symbol.
4. int(input()) is used to take __________ as input.
5. In Python, * is used to perform __________.
Section B – Write the Output (2 marks each)
(2 × 3 = 6 marks)
Write what will appear on the screen when this code runs.
6.
python
CopyEdit
print("Hello" + "World")
7.
python
CopyEdit
x = 5
y = 3
print(x * y)
8.
python
CopyEdit
name = "Nia"
print("Welcome", name)
Section C – Write the Code (3 marks each)
(3 × 3 = 9 marks)
9. Ask the user for their name and print:
"Hello, [name]!"
10. Ask the user to enter two numbers and print their sum.
11. Ask the user for their favourite fruit and print:
"[fruit] is a tasty choice!"
Would you like me to turn this into a PDF, or would you like a version where you can write
your answers too (like with blanks)?
You said:
cam u give answers pls
ChatGPT said:
Of course, Nia! 🌟 Here are the answers to your Python Question Paper:
Section C – Write the Code (3 marks each)
(3 × 3 = 9 marks)
9.
python
CopyEdit
name = input("Enter your name: ")
print("Hello", name + "!")
10.
python
CopyEdit
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
print("The sum is", num1 + num2)
11.
python
CopyEdit
fruit = input("Enter your favourite fruit: ")
print(fruit + " is a tasty choice!")