11/8 GWC Review (For loops, if statements, lists)

11/8 GWC Review (For loops, if statements, lists)

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Python Quiz - 3

Python Quiz - 3

3rd - 9th Grade

10 Qs

C# Programming 2

C# Programming 2

12th Grade

10 Qs

Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

4th Grade - University

10 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Intro to Python

Intro to Python

KG - University

10 Qs

مراجعة الوحدة 3 ( البرمجة بواسطة المايكروبت )

مراجعة الوحدة 3 ( البرمجة بواسطة المايكروبت )

12th Grade

10 Qs

HTML introduction

HTML introduction

8th - 9th Grade

10 Qs

Struktur Kontrol Looping (Java)

Struktur Kontrol Looping (Java)

11th Grade

10 Qs

11/8 GWC Review (For loops, if statements, lists)

11/8 GWC Review (For loops, if statements, lists)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

GWC Lowell

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(5):

   print(i)

#What will be printed?

1 2 3 4 5

0 1 2 3 4

1 2 3 4

2 3 4 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(3, 9)

print (i)

#What will be printed?

1 2 3 4 5 6 7 8 9

3 4 5 6 7

3 4 5 6 7 8 9

3 4 5 6 7 8

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be printed?

[2, 4, 6, 8, 10]

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

[1, 3, 5, 7, 9]

[0]

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

How can we print "GWC" 20 times? Fill in the blank!

for x in range(___):

print("GWC")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output of the following code:

coffee

drink

coffee

tea

water

juice

soda

["coffee", "tea", "water", "juice", "soda"]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output of the following code:

2 hello! 4 hello! 6 hello! 8 hello!

2 4 6 8

hello!

hello!
hello!

hello!

hello!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of these will produce values equal to list?

range(3) - 1

range(4) - 1

range(5) - 1

range(-1, 3)

8.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:

a.remove(3)

a[3] = 0

a[2] = []

del a[2]

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What indicates the end of a block of code in Python?

}

A comment

A line that is indented less than the previous line

end