Edhesive Python Unit 4: Test Review

Edhesive Python Unit 4: Test Review

10th - 11th Grade

10 Qs

quiz-placeholder

Similar activities

BÀI CŨ 1 - TIN 10

BÀI CŨ 1 - TIN 10

10th Grade

10 Qs

Alapismeretek

Alapismeretek

7th - 12th Grade

10 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Aplikasi Perkantoran

Aplikasi Perkantoran

10th Grade

15 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Câu hỏi trắc nghiệm

Câu hỏi trắc nghiệm

11th Grade

10 Qs

TIK KLS 7-8 PAS Genap 2022-2023

TIK KLS 7-8 PAS Genap 2022-2023

9th - 12th Grade

15 Qs

Edhesive Python Unit 4: Test Review

Edhesive Python Unit 4: Test Review

Assessment

Quiz

Computers

10th - 11th Grade

Medium

Created by

Debra Haghighat

Used 198+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a loop used for?

To repeat a function

Test if a condition false

To repeat code.

Help write python questions

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A While Loop runs until

To repeat code.

​The test condition is false​____

_​The test condition is true____

To set the value of a variable before a loop

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Loop control variable

Variable used to end the loop.

Variable used to count how many times something happens.

To set the value of a variable before a loop.

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are the two ways of ending a loop?

User input

elif

count done

Count variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a loop to print the numbers: 1, 2, 3, …20

c = 1 while (c <= 21): print (c) (c = c + 1 )

c = 0 while (c <= 21): print (c) c = c + 1

c = 1 while (c <= 21): print (c) c = c + 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a loop to print the numbers: 30, 31, 32, ….45. What did you have to do to c to get this one to work?

c = 29 while (c <= 45): print (c) c = c + 1

c = 30 while (c <= 45): print (c) c = c + 1

c = 30 while (c <= 45): print (c) ( c and c + 1 )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a loop to print the numbers: 5, 10, 15, 20...45. What did you have to do to c to get this one to work?

c = 45 while (c <= 45): print (c) c = c + 5

c = 0 while (c <= 45): print (c) c = c + 5

c = 5 while (c <= 45): print (c) c = c + 5

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?