Module 09 - For Loops

Module 09 - For Loops

10th Grade

10 Qs

quiz-placeholder

Similar activities

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Dasar Kompetensi Keahlian IPv6

Dasar Kompetensi Keahlian IPv6

10th Grade

15 Qs

Module 09 - For Loops

Module 09 - For Loops

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Casey Devet

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which structure should you use if you want to do something with each of the elements of a list?

for loop

while loop

if statement

else clause

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

This for loop is supposed to print each name in the list called "students", but there are some issues.


Which of the following does NOT need to be changed to make this code work properly?

The second line needs to be indented.

Use "in" instead of "from"

Add a colon (:) at the end of the first line

Change "name" to "students" on the second line

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


In a for loop, the thing after the "in" must be a list.

True

False

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


You can put if statements inside of for loops.

True

False

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A program has a list of turtle objects called "racers". Which of the following will move all of the turtles in the list forward by 10 pixels.

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does this code do?

Counts the number of vowels in the string variable called word

Counts the number of consonants (non-vowels) in the string variable called word

Counts the total number of letters in the string variable called word

Counts the number of lowercase letters in the string variable called word

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which function allows us to loop through two lists at the same time?

for()

zip()

range()

list()

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

Already have an account?