Python loops_21May20_2

Python loops_21May20_2

5th - 9th Grade

25 Qs

quiz-placeholder

Similar activities

ICT-7

ICT-7

7th Grade

20 Qs

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

Asesmen informatika 7

Asesmen informatika 7

7th Grade

20 Qs

kiểm tra tin 8

kiểm tra tin 8

8th Grade

20 Qs

LATIHAN SIMDIG

LATIHAN SIMDIG

9th - 12th Grade

20 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Hojas, libros y mas, Excel

Hojas, libros y mas, Excel

7th Grade

20 Qs

TIK (Microsoft Word)

TIK (Microsoft Word)

4th Grade - University

20 Qs

Python loops_21May20_2

Python loops_21May20_2

Assessment

Quiz

Computers

5th - 9th Grade

Hard

Created by

Shalaka Ekbote

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would amount equal in this piece of code:

amount = 2 + 5 * 2
12
9
14
5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the value of ‘marks’ after running this code:
 
marks = 20
total = 5 
newmarks = marks * 3
60
45
100
75

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed when this program is run:
days = 5 
if days > 6:  
   print(“Month”)

else:  
   print(“Week”)
Month
Week
Day
4

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What letter will be printed on the screen after running this code:

team = “Manchester United”
letter = name[5]
print(letter)
M
d
e
Nothing prints

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be printed after running this FOR loop:

for number in range(6):
 
    print(number)
The number 6 
The numbers 0 - 5
The number 5
The numbers 1 - 6

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times does the following program print the word ‘computer’:

word= "computer"  
for num in range(1,6):
 
    print(word)
5
6
1
0

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Look at the code below and identify which of the statements below are true:

for loopCounter in range(10,101,10):
               
     print(loopCounter)
Starts at 10, goes up to 100, increases by 10
Starts at 10, goes upto 101, increases by 10
Starts at 1, goes upto 100, increases by 1
Starts at 10, goes upto 10, increases by 10

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?