Edhesive Python Unit 4: Test Review

Edhesive Python Unit 4: Test Review

10th - 11th Grade

10 Qs

quiz-placeholder

Similar activities

Python Code Quiz

Python Code Quiz

8th - 12th Grade

11 Qs

Java Unit 10

Java Unit 10

10th - 12th Grade

14 Qs

AP CSP Loops Practice

AP CSP Loops Practice

9th - 12th Grade

12 Qs

Quiz for Retest of class XI students

Quiz for Retest of class XI students

11th Grade

10 Qs

Quiz 2 Java

Quiz 2 Java

11th Grade

15 Qs

Hangman Game - Programming Questions

Hangman Game - Programming Questions

7th - 11th Grade

15 Qs

Python Pretest

Python Pretest

9th - 12th Grade

15 Qs

For Loop

For Loop

9th - 12th Grade

10 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?