Got it! Here's the same quiz without answers, perfect for student worksheets or tests.
Python Basics MCQs for Grade 6
Instructions for Students:
Choose the correct option from the four given choices.
1. What does the print() function do in Python?
A. Adds numbers
B. Shows a message on the screen
C. Gets input from the user
D. Saves data to a file
2. Which symbol is used to assign a value to a variable?
A. ==
B. :
C. =
D. !=
3. Which of these is a correct variable name?
A. 1name
B. my name
C. my_name
D. print
4. What will this code display?
print("Hello!")
A. Hello!
B. "Hello!"
C. Print Hello!
D. Error
5. Which Python command is used to get input from the user?
A. ask()
B. input()
C. print()
D. type()
6. What is the output of this code?
print(2 + 3)
A. 23
B. 5
C. 2+3
D. Error
7. What is the correct way to write a comment in Python?
A. <!-- this is a comment -->
B. // this is a comment
C. # this is a comment
D. * this is a comment *
8. What data type is this value: "123"?
A. Integer
B. Float
C. String
D. Boolean
9. Which one is not a Python data type?
A. String
B. Boolean
C. List
D. Table
10. What will this code do?
name = input("What is your name?")
print("Hello", name)
A. Only take input
B. Only print Hello
C. Take name and greet the user
D. Print an error