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!'
50 questions
Y10 CS 2020 Lesson1_3
Quiz
•
7th - 10th Grade
50 questions
програмированный сессия
Quiz
•
7th Grade
50 questions
الصف الأول الاعدادي نوفمبر
Quiz
•
7th Grade
44 questions
Python Test 2
Quiz
•
7th - 12th Grade
41 questions
Midterm prep 7th
Quiz
•
7th Grade - University
49 questions
Python Basics 2019
Quiz
•
7th Grade
49 questions
Python Programming for Lego Spike Prime Robots
Quiz
•
7th Grade
45 questions
Викторина по информатике
Quiz
•
7th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th
Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
14 questions
One Step Equations
Quiz
•
5th - 7th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review
Quiz
•
7th Grade
18 questions
Informational Text Vocabulary
Quiz
•
7th - 8th Grade