What is the output of the following program?
for i in range(0, 5):
print(i)
i=i+1
Python programming Grade 7
Quiz
•
Computers
•
7th Grade
•
Medium
Ahmed Numair
Used 27+ times
FREE Resource
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
for i in range(0, 5):
print(i)
i=i+1
1 to 5 numbers
1 to 4 numbers
0 to 4 numbers
0 to 5 numbers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
WHICH ONE OF THE FOLLOWING IS THE CORRECT EXTENSION OF THE PYTHON FILE ?
.py
.python
.p
None of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the outcome of this program be?
22
50
Nothing, it won't run due to errors in the code
38
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does this code do when run the following program:
name='Aluko'
print('Hello '+name)
hello aluko
Hello aluko
'Hello Aluko'
Hello Aluko
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python program 3, can carry out calculations. The arithmetic operators we use to do this are: Addition, Subtraction, Multiplication & Division?
Plus, Subtract, Times & Divide
+ - * /
+ - x \
+ - * \
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What would this code print
name='Poppy'
name='Beka'
print('Hello '+name)
Poppy
Liz
Hello Poppy
Hello Beka
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What would this code do?
print('Hello World!')
hello world
Hello World!
hello world!
'Hello World!'
45 questions
Silent Teacher Easy Python
Quiz
•
5th - 10th Grade
50 questions
програмированный сессия
Quiz
•
7th Grade
41 questions
Final Day Quiz for ICT Skill Share
Quiz
•
4th Grade - Professio...
50 questions
General Review Grade 8
Quiz
•
7th - 12th Grade
47 questions
Lớp 7
Quiz
•
7th Grade
50 questions
ECDL Python Lesson 7
Quiz
•
7th - 12th Grade
44 questions
Python Test 2
Quiz
•
7th - 12th Grade
45 questions
python basic SIS mmd
Quiz
•
7th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
20 questions
Math Review
Quiz
•
7th Grade
14 questions
Subtracting Integers
Lesson
•
6th - 8th Grade
15 questions
Exponent Properties
Quiz
•
7th - 9th Grade