Gulf Asian English School, Sharjah
Worksheet: 1
Python - Introduction
SUBJECT: General Computers GRADE-8
I. Choose the correct answer from the options given below:
1. All python keywords contain letters except True, False and None.
a. lowercase
b. uppercase
c. sentence case
d. None of these
2. are the special symbols that carry out arithmetic and logical
computations.
a. Literals
b. Operators
c. Identifiers
d. All the above
3. The values operated by the operators are called
a. Constants
b. Operands
c. literals
d. All the above
4. defines the way to store the values in memory.
a. Statements
b. Variables
c. Data types
d. Operators
5. An is an empty space at the beginning of block of code.
a. indentation
b. operator
c. identifiers
d. None of these
II. Fill in the blanks:
1. We can also press key to run a program.
2. A is a smallest element of a program that is meaningful to the
interpreter.
3. The data items that never change their value throughout the program run are
called .
4. Python was created by .
5. Python is an interpreted language that executes the code at a time.
6. IDLE means .
III. Short Answer Questions:
1. Define token and its types.
2. What is meant by comments in Python?
3. What are variables?
IV. Long Answer Questions.
1. Define input() and print() functions of python.
2. How many data types are used in Python? Explain in detail.
3. Differentiate between keywords and literals.
4. What is the expected output of the given source code?
Source code
l=int(input(“Enter the length: ”))
b=int(input(“Enter the breadth: ”))
area=l*b
print(“Area of Rectangle is: ”,area)