Python definite iteration

Python definite iteration

8th Grade

35 Qs

quiz-placeholder

Similar activities

Python L1 Programming Challenge

Python L1 Programming Challenge

1st - 12th Grade

30 Qs

Year 9 End of Unit Test Python List and Operations

Year 9 End of Unit Test Python List and Operations

8th Grade

30 Qs

Python Test

Python Test

8th - 12th Grade

40 Qs

Fund. of CS Ist SW ZLGA

Fund. of CS Ist SW ZLGA

8th Grade

30 Qs

CS Python Fundamentals

CS Python Fundamentals

7th - 11th Grade

30 Qs

Python procedures and functions

Python procedures and functions

8th - 10th Grade

35 Qs

St Michael's - Year 8 - Python

St Michael's - Year 8 - Python

8th Grade

39 Qs

Year 7CS_exam

Year 7CS_exam

4th - 8th Grade

37 Qs

Python definite iteration

Python definite iteration

Assessment

Quiz

Computers

8th Grade

Medium

Created by

M Ellis

Used 3+ times

FREE Resource

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for an if-else statement in Python?

if condition: / else;

if condition: / else:

if condition; / else:

if condition; / else;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the initial value of the variable 'total' in the given code?

0

5

2.5

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What condition is checked to determine if someone swims for free?

age < 12 or age > 65

age > 12 and age < 65

age == 12 or age == 65

age < 10 or age > 70

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the discount value set to if the user has a discount card?

2.5

5

0

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the total cost for someone who is 8 years old according to the program?

£5.00

£2.50

£0.00

£1.00

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If a person is 60 years old and does not have a discount card, what will be their total cost?

£5.00

£2.50

£0.00

£1.00

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is 'definite' iteration used for in programming?

To iterate over a list

To create a new variable

To delete a file

To print a message

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?