Python L1 Concepts

Python L1 Concepts

1st - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Msw Logo Review

Msw Logo Review

6th - 8th Grade

39 Qs

Final Revision G7_2T

Final Revision G7_2T

7th Grade

44 Qs

Python

Python

11th Grade

40 Qs

End of Unit Assessment - EduBlocks

End of Unit Assessment - EduBlocks

9th - 12th Grade

37 Qs

Python Unit 7 - Math and Strings

Python Unit 7 - Math and Strings

6th Grade

41 Qs

Python-Unit-Test

Python-Unit-Test

7th Grade

40 Qs

Year 7CS_exam

Year 7CS_exam

4th - 8th Grade

37 Qs

CS8 - ZLGA - 2nd SW

CS8 - ZLGA - 2nd SW

8th Grade

45 Qs

Python L1 Concepts

Python L1 Concepts

Assessment

Quiz

Computers

1st - 12th Grade

Hard

Created by

Jerry Xiao

Used 149+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct file extension for saving Python files?

.txt

.scr

.py

No Extention

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the below statements is equal to:

sum = sum + number

sum = sum ++ number

sum += number

sum += sum + number

number += sum

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid ‘for’ loop?

for var in [1, 2, 3, 4]:

for var in range(1):

for var in range(1,2,3):

for var in range(1,2,3,4,5):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a ‘count-controlled’ loop?

for

while

if

else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a ‘condition-controlled’ loop?

for

while

if

else

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid ‘if’ statement?

if x < 5:

if x < 5 and x > 5:

if x = 5:

if x in [2, 3, 4]:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does input() do?

It converts a value to a string

It allows a user to input data

It checks equality of what is input to the function

It executes python code that a user submits

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?