Basic Python Print – Question Set
Section A: MCQ (Choose the correct answer)
1. What is the output of:
print("Hello")
a) Hello
b) "Hello"
c) Error
d) Nothing
2. Which function is used to display output in Python?
a) input()
b) display()
c) print()
d) show()
3. What will be the output?
print("2 + 3")
a) 5
b) 23
c) 2 + 3
d) Error
4. What is the output?
print(2 + 3)
a) 5
b) "5"
c) 23
d) Error
5. Which of the following is correct?
a) print Hello
b) print("Hello")
c) print[Hello]
d) print{Hello}
Section B: Fill in the Blanks
1. The function used to display output is ________.
2. print("Python") will display ________.
3. print(10 + 5) will output ________.
4. Strings in Python are written inside ________ or ________.
5. print("Hello", "World") will print ________.
Section C: True / False
1. print() is used to take input from the user.
2. print("Hello") will show Hello on screen.
3. Python is case-sensitive.
4. Print("Hi") is correct syntax.
5. print(5*2) will display 10.
Section D: Short Answer Questions
1. What is the use of the print() function?
2. Difference between:
print("5+2")
print(5+2)
3. What will be the output?
print("Hello", "Python")
4. How do you print multiple values in one line?
5. What is a string in Python?
Section E: Practical / Coding Questions
1. Write a program to print your name.
2. Write a program to print: Welcome to Python
3. Write a program to print:
Hello
World
4. Write a program to print your name and age in one line.
5. Write a program to display: 10 + 20 = 30
6. Write a program to print a pattern:
*
**
***
7. Write a program to print:
My name is Rahul. I am 12 years old.
8. Write a program to print three different subjects in one line separated by commas.
Section F:
1. Write a program to print a box:
#####
# #
#####
2. Write a program using multiple print() statements to create a simple design or shape.