While Loop in python

While Loop in python

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Programming Quiz

Programming Quiz

9th - 12th Grade

10 Qs

Unit 4 Quiz #2 CSP  Day 16 2023

Unit 4 Quiz #2 CSP Day 16 2023

12th Grade

9 Qs

Python Nested Loops Quiz

Python Nested Loops Quiz

9th - 12th Grade

10 Qs

TEST - Trace table exercise 1

TEST - Trace table exercise 1

11th Grade

10 Qs

C# Programming 2

C# Programming 2

12th Grade

10 Qs

APCSA Unit 4

APCSA Unit 4

9th - 12th Grade

10 Qs

JavaScript Control Structures Basic

JavaScript Control Structures Basic

12th Grade

11 Qs

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

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

4th Grade - University

10 Qs

While Loop in python

While Loop in python

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Lauren Tan

Used 88+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

In a Python program, what would be the ending value of total in the WHILE LOOP code?

0

5

2

20

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

In a Python program, what would be the ending value for y in the WHILE LOOP code?

5

51

10

3

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

5

4

3

2

1

4

3

2

1

0

0

Infinite loop

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

What is the value of c after the loop finishes?

1

2

3

0

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

0

4

3

2

1

0

5

4 3 2 1 0

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

5

4

3

2

1

4

3

2

1

0

0

Infinite loop