Class 6 Computer Test
Chapter: Introduction to Python
Time: 1 Hour
Maximum Marks: 40
Section A: Multiple Choice Questions (1 mark each)
1. Python is an example of:
a) Hardware
b) Programming Language
c) Antivirus
d) Spreadsheet
2. Which of the following is the correct spelling of Python’s output function?
a) prnt()
b) print()
c) output()
d) write()
3. Which company maintains and supports Python through the Python Software Foundation?
a) Microsoft
b) Apple
c) Python Software Foundation
d) Google
4. Which of these can be stored in a variable?
a) Numbers
b) Text
c) Both a and b
d) Neither a nor b
5. Which statement is used to take a user's name from the keyboard?
a) name = input('Enter your name: ')
b) print('Enter your name')
c) name = print()
d) input = name
Section B: True or False (1 mark each)
6. Python programs can be written in IDLE. __________
7. Variable names can help us remember stored data. __________
8. Comments are executed as instructions by Python. __________
9. Python can run on Windows, Linux, and macOS. __________
10. input() always displays the final answer automatically. __________
Section C: Fill in the Blanks (1 mark each)
11. The screen where we type and run Python code is called ____________________.
12. Python is a ____________________ and open-source language.
13. Text written inside quotes is called a ____________________.
14. To explain code for humans, we write ____________________.
15. The latest versions of Python can be downloaded from ____________________.
Section D: Very Short Answer Questions (2 marks each)
16. Name the creator of Python.
17. What does IDLE stand for?
18. Write one example of a variable name.
19. What is the purpose of input()?
20. What symbol starts a comment?
Section E: Short Answer Questions (3 marks each)
21. Write a Python statement to print 'Welcome to Python'.
22. Explain what a string is with one example.
23. Why are comments useful in a program?
24. Write any three advantages of Python.
Section F: Long Answer Questions (5 marks each)
25. Write a short Python program that asks the user’s name and displays a greeting.
26. Explain the rules for naming variables in Python with examples.