Computer GUIDE Centre
Unit Test: Introduction to Python
Grade: VI | Time: 45 Minutes | Total Marks: 25
Section A: Multiple Choice Questions (5 × 1 = 5 Marks)
[Link] the correct option for each question.
[Link] developed the Python programming language?
a) Bill Gates b) Guido van Rossum c) James Gosling d) Mark Zuckerberg
[Link] of the following is the correct extension of a Python file?
a) .python b) .pt c) .py d) .exe
[Link] function is used to display output on the screen?
a) input() b) display() c) write() d) print()
[Link] of these is a valid variable name?
a) 1st_name b) first name c) first_name d) print
[Link] will be the output of print(10 + 5)?
a) 105 b) 15 c) 10 + 5 d) Error
Section B: Short Answer Questions (5 × 2 = 10 Marks)
[Link] Python. Give one reason why it is popular among beginners.
[Link] is a Variable? Give an example of how to assign a value to a variable.
[Link] between Interactive Mode and Script Mode.
[Link] are Data Types? Name any two data types used in Python.
[Link] the errors in the following code:
Print("Hello World")
my-age = 12
Section C: Application & Programming (10 Marks)
Q1. Find the output of the following code snippets: (2 × 2 = 4 Marks)
Snippet A:
a = 20
b = 10
print(a - b)
Snippet B:
name = "Alex"
print("Welcome", name)
Q2. Write a Python program for the following: (2 × 3 = 6 Marks)
Program A: Write a program to store the length ($l = 10$) and breadth ($b = 5$) of a
rectangle in variables and print the Area (Area = $l \times b$).
Program B: Write a program that asks the user for their name using the input() function
and then prints a greeting like "Hello [Name]".