100% found this document useful (1 vote)
302 views2 pages

Python Test Class 7

The document is a test paper for class 7 computing students. It contains questions about computer hardware, Python programming concepts like variables, data types, functions, conditionals, loops, lists, and basic Python code snippets.

Uploaded by

shameerahmad1029
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
100% found this document useful (1 vote)
302 views2 pages

Python Test Class 7

The document is a test paper for class 7 computing students. It contains questions about computer hardware, Python programming concepts like variables, data types, functions, conditionals, loops, lists, and basic Python code snippets.

Uploaded by

shameerahmad1029
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

The City School

First Monthly Test- Second Term 2022-23


Class: 7-Computing
Name: _______________ Section: _______ Date: _________ Total Marks: ______/30

Q1. Fill in the Blanks: (10)

1.____________ is a term used to describe the electronics and mechanical parts of the computer.
2. ___________ is a high level programming language.
3. IDLE stands for ______________________________________.
4. _____________ refers to the spaces at the beginning of a code line.
5. A variable name must start with a ___________ or the _____________ character.
6. ___________ also known as int, is a whole number, positive or negative, without decimals of unlimited length.
7. ___________ are written with a “j” as the imaginary part.
8. The __________ is a sequence of characters like a simple text “Hello World”.
9. _________ command is used to delete a list element.
10. Errors in typing the commands and variables are called ____________.
Q2. Multiple Choice Questions: (5)
1. Is python case sensitive when dealing with identifiers?
a. No
b. Yes
c. Machine dependent
d. None of the mentioned
2. Which of the following is the correct extension of the Python file?
a. .python
b. .pl
c. .py
d. .p
3. Which keyword is used for function in Python language?
a. Function
b. def
c. Fun
d. Define
4. Which of the following character is used to give single-line comments in Python?
a. //
b. #
c. !
d. /*
5. Which of the following function is a built-in function in python?
a. factorial()
b. print()
c. seed()
d. sqrt()
Q3. Coding Time (5)
1. Write a sample code for simple “if” condition?

2. Write a sample code for a function?

Q4. Answer the following Questions in one line or two. (10)


1. Define Algorithm?
___________________________________________________________________________
2. What is flowchart?
___________________________________________________________________________
3. What is a Program?
___________________________________________________________________________
4. What is Variable?
___________________________________________________________________________
5. Define Loop?
___________________________________________________________________________
6. What is comment in Python?
___________________________________________________________________________
7. What is a code of Sum (addition) in python?
___________________________________________________________________________
8. Write a basic print command?
___________________________________________________________________________
9. What is list in python?
___________________________________________________________________________
10. What is function?
___________________________________________________________________________

You might also like