0% found this document useful (0 votes)
3 views4 pages

Python

The document is a computer science worksheet for Grade 7 students at Al Noor International School, focusing on Python programming. It includes fill-in-the-blank questions, true or false statements, matching exercises, multiple choice questions, and short answer prompts related to Python features, syntax, and rules. Key topics covered include Python's version, case sensitivity, operators, and variable naming conventions.

Uploaded by

elynalove25
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Python

The document is a computer science worksheet for Grade 7 students at Al Noor International School, focusing on Python programming. It includes fill-in-the-blank questions, true or false statements, matching exercises, multiple choice questions, and short answer prompts related to Python features, syntax, and rules. Key topics covered include Python's version, case sensitivity, operators, and variable naming conventions.

Uploaded by

elynalove25
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

AL NOOR INTERNATIONAL SCHOOL, KINGDOM OF BAHRAIN

CBSE SECTION
SUBJECT: COMPUTER SCIENCE GRADE 7
Topic: PYTHON

Fill in the Blanks


1. Current major version of python is 3 .
2. Python is created by G u i d o R o s s u m
3. I D L E is an editor for Python.
4. I n d e n t a t i o n is used for identifying blocks of
code in Python.
5. Command p y t h o n - V is used to find the version of
Python installed.

State True or False


1. Python is case sensitive. -True
2. Python supports only Object-Oriented programming. -False
3. Single quotes (') and double quotes (") are valid ways to
delimit a string value in Python. -True
4. Python is a high-level language. -True
5. An integer value cannot be negative. -False

Match the Following


Interpreter Execute program
x=10 Statement
** Exponent
Variable Value
IDLE Editor
Multiple choice questions

1. In Python // operator is used for:

1. Multiplication
2. Division
3. Floor division
4. Subtraction

2. Python is:

1. Interpreted
2. Compiled
3. Both interpreted and compiled
4. None of the above

3. Python supports:

1. Procedural programming
2. Object oriented programming
3. Both of the above
4. None of the above

4. Command to find version of Python is:

1. python -V
2. version - Python
3. which - version
4. Python version

5. Python is:

1. Interactive
2. Highly readable
3. Easy to learn
4. All of the above
Answer in one word or one sentence
1. What is the operator used for changing the value of a
variable?

Assignment operator ( = ).

2. What is a logical instruction that the Python


interpreter can read and execute called?

Statement.

3. What is used as a placeholder for the string values


that you want to inject into a formatted string?

%s

4. What is the use of the ** operator in Python?

To find the exponent.

5. Which module of Python gives methods related to


Operating Systems?

Python OS module.

Answer the following


1. What are the features of Python?

It is easy to learn, readable and portable. Python has a


standard library which is very portable and cross-platform
compatible and supports interactive Mode. Python provides
interface to all major commercial databases.

2. How will you print your name in Python?

To Print your name in Python, you can use the print


statement along with your name enclosed in quotation
marks.
For example: print("Your Name")

3. Python is said to be portable. Why?

Python can run on a wide variety of hardware platforms and


has the same interface on all platforms. If a Python script is
written on one system, such as Windows, it can be executed
on another, like Mac, without substantial modifications.

4. What are the rules for naming variables in Python?

 Must start with a letter or underscore (_).


 May consist of letters, numbers, and underscores.

 Variable names are Case Sensitive.

5. Name five reserved keywords in Python.

 if
 while
 continue
 break
 for

You might also like