0% found this document useful (0 votes)
28 views

Computer Dept-Gr.7-2nd Trimester-Revision Sheet

This document provides a revision sheet for 7th grade students covering key concepts from Units 3 and 4 in their Oxford International Lower Secondary Computing textbook. It includes multiple choice and true/false questions about Python programming concepts like variables, data types, input/output, and arithmetic operators. Correct answers are provided to help students review input/output, making Python programs, adding numbers, and the differences between data types like integers and strings. The goal is to help well-prepared students focus on developing both cognitive and psychomotor programming skills.

Uploaded by

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

Computer Dept-Gr.7-2nd Trimester-Revision Sheet

This document provides a revision sheet for 7th grade students covering key concepts from Units 3 and 4 in their Oxford International Lower Secondary Computing textbook. It includes multiple choice and true/false questions about Python programming concepts like variables, data types, input/output, and arithmetic operators. Correct answers are provided to help students review input/output, making Python programs, adding numbers, and the differences between data types like integers and strings. The goal is to help well-prepared students focus on developing both cognitive and psychomotor programming skills.

Uploaded by

pwxpwdbhfp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Kingdom of Saudi Arabia

Creating well-prepared individuals, cognitively and behaviorally


while focusing on developing psychomotor skills.
Madinat Al-Oloum International Schools
‫مدارس مدينة العلوم العالمية‬
Academic Year 2022 / 2023
Oxford International Lower Secondary Computing –Book 7 Computer Dept. / Gr.7

Gr.7 - trimester (2) – Revision sheet (3)


Unit.3: Lesson 2, 3 and 4
3.2: Input and output in Python
Put ( True ) or ( False ) :
# Question Answer
In Python, The variable name should remind you what value is stored in the
1 True
variable.
2 The variable name may be includes a space in both of Python and Scratch. False
3To produce output in Scratch you use a 'say' block. True
In python, you can type the commands using a capital letter instead of a lower-
4 False
case letter.
A variable name must contain only letters, numbers and the underscore
5 True
character.
If you make a mistake , the python shell displays an error message. An error
6 True
message tells you that there is a mistake.
Choose the correct answer :
# Question Answer
In python, ………… command is used to make a variable and set its value.
a)value = variable b) variable =
1
b) variable = value value
c) variable (" ")
In python, ………… command is used to produce output.
a) print = sentence c) print ("
2 b) print " sentence " sentence ")
c) print (" sentence ")
………………. is a Python interface.
a) Python Shell a) Python
3
b) The prompt Shell
c)The command
……….. appears when the programmer makes a mistake when he types the
command.
a) An error
4 a) An error message
message
b) symbols and terms
c) Python Shell
The commands in Python are…...
5 c) text
a)digit

Computer Dept. | Gr.7 – 2nd trimester– Revision sheet (3) 1


Kingdom of Saudi Arabia
Creating well-prepared individuals, cognitively and behaviorally
while focusing on developing psychomotor skills.
Madinat Al-Oloum International Schools
‫مدارس مدينة العلوم العالمية‬
Academic Year 2022 / 2023
Oxford International Lower Secondary Computing –Book 7 Computer Dept. / Gr.7
b)block
c) text
3.3: Make a Python program.
Put ( True ) or ( False ) :
# Question True/ false
1 The Python Shell does not save the commands. True
2 Names of variables are shown in red in the Python program False
3 Text strings are shown in green in the Python program. True
4 The color of the commands you typed helps you to find errors in python. True
5 Python uses different arithmetic operators than Scratch. False
6 The IDE for scratch is a web based. True
7 Python is a text – based programming language. True
3.4: Add two numbers:
Put ( True ) or ( False ) :
# Question True/ false
1 String data can include any keyboard characters. True
2 Both of integer and String data can be used in calculations. False
3 In Python, Input data is stored as a string. True
4 Python has only string data type. False
5 Whole numbers are stored as float data type. False
6 String data can be used in calculations. False
Choose the correct answer :
# Question Answer
…….. one of data type in Python which has a whole number value without
a decimal point
1 a) Float b) Integer
b) Integer
c) Sting
………… one of data type in Python which has a data value that is made of
text characters.
2 c) Sting
a) Float
b) Integer
Computer Dept. | Gr.7 – 2nd trimester– Revision sheet (3) 2
Kingdom of Saudi Arabia
Creating well-prepared individuals, cognitively and behaviorally
while focusing on developing psychomotor skills.
Madinat Al-Oloum International Schools
‫مدارس مدينة العلوم العالمية‬
Academic Year 2022 / 2023
Oxford International Lower Secondary Computing –Book 7 Computer Dept. / Gr.7
c) Sting
……………. a command language the computer understands.
a) Machine code a) Machine
3
b)Python command code
c)Scratch blocks
…………. a file of machine code commands that the computer can carry
out.
b) Executable
4 a) application software
file
b) Executable file
c) source code
…………. a set of commands that a programmer writes in a programming
language.
5 a) source code a) source code
b) Machine code
c) Error message
Means converting a program from a programming language to machine
code.
b) Translating
6 a) Export the program
the program
b) Translating the program
c) Share the program
…………. is the process of turning a program into an executable file.
a) Compiling
7 b) logical test a) Compiling
c) source code
ASCII characters are stored as ……… data type.
a) Float
8 c) Sting
b) Integer
c) Sting
The characters of the string are shown inside quote marks. You can use
….quote marks.
c) double or
9 a) double
single
b) single
c) double or single
………. data can be used in calculations.
a) Integer c)Integer and
10
b)Float Float
c)Integer and Float
………. data can be used in calculations.
c)Integer and
11 a) Integer
Float
b)Float
Computer Dept. | Gr.7 – 2nd trimester– Revision sheet (3) 3
Kingdom of Saudi Arabia
Creating well-prepared individuals, cognitively and behaviorally
while focusing on developing psychomotor skills.
Madinat Al-Oloum International Schools
‫مدارس مدينة العلوم العالمية‬
Academic Year 2022 / 2023
Oxford International Lower Secondary Computing –Book 7 Computer Dept. / Gr.7
c)Integer and Float
Which of the following Python command is correct
a) variable = integer (variable) c) variable =
12
b) variable = int (value) int (variable)
c) variable = int (variable)

Practical Part:
Q.1: Convert a block in scratch to a command in Python, then:
# Question Answer

a)secret password = "diamond7" b) password =


1
b) password = "diamond7" "diamond7"
c) secret password = "diamond"

a) name =
input("what is
2 a) name = input("what is your name? ")
your name?
b) print = input("what is your name? ")
")
c) name = output("what is your name? ")

a) tell("hello") c)
3
b) say("hello") print("hello")
c) print("hello")
a) print ("your
password is",
4 a) print ("your password is", password) password)
b) print = input("your password is")
c) PRINT ("your password is ")
a)total =
number 1 +
5 a)total = number 1 + number 2 number 2
b)total = "number 1" + "number 2"
c)total = (number 1) + (number 2)

Computer Dept. | Gr.7 – 2nd trimester– Revision sheet (3) 4

You might also like