Unit07-Loops CodeHSAI

Unit07-Loops CodeHSAI

Professional Development

10 Qs

quiz-placeholder

Similar activities

KRASHEN'S THEORY OF LANGUAGE LEARNING

KRASHEN'S THEORY OF LANGUAGE LEARNING

University - Professional Development

10 Qs

CNA ESSENTIALS 1 MIDTERM REVIEW

CNA ESSENTIALS 1 MIDTERM REVIEW

KG - Professional Development

10 Qs

English Writing 1

English Writing 1

Professional Development

15 Qs

world languages

world languages

Professional Development

13 Qs

CLIL CORSO SANOMA_SCREPANTI & MASIA

CLIL CORSO SANOMA_SCREPANTI & MASIA

Professional Development

12 Qs

Verb to be

Verb to be

Professional Development

10 Qs

FINAL GAME

FINAL GAME

University - Professional Development

15 Qs

Unit 6 test

Unit 6 test

Professional Development

15 Qs

Unit07-Loops CodeHSAI

Unit07-Loops CodeHSAI

Assessment

Quiz

World Languages

Professional Development

Practice Problem

Hard

Created by

MrsT Voci

Used 3+ 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

30 sec • 1 pt

What type of loop is used when you know exactly how many times you'll have to do something?

While loop

For loop

If loop

Do-while loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'range' function determine in a for loop?

All of the above

Starting number

Ending number

increment/decrement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a for loop, what is the variable 'i'?

Boolean variable

Float variable

String variable

Integer variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'range' function do when given two numbers?

Starts at the second number and decrements down by the first number

Starts at the first number and goes up to the second number

Starts at the second number and goes down to the first number

Starts at the first number and increments up by the second number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can the number in the 'range' function be?

Only a constant value

Only a variable

Either a constant value or a variable

Neither a constant value nor a variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two keywords that can be used to tweak the behavior of a loop in Python?

stop, skip

terminate, restart

break, continue


end, start

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a while loop allow you to do?

Execute code once

Check a condition repeatedly and execute code

Terminate the program

Skip the code execution

Access all questions and much more by creating a free account

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?