Python CSP2 Final

Python CSP2 Final

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

128 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Back

5

2.

FLASHCARD QUESTION

Front

What will the following lines of code print? Options: A, B
C, A
C, Nothing, it will return an error.

Back

A
C

3.

FLASHCARD QUESTION

Front

What are the two main types of loops that we have learned about in Python? Options: IF Function & Variables, FOR and WHILE Loops, Forever and Fixed Loop, Data Types and Numbers

Back

FOR and WHILE Loops

4.

FLASHCARD QUESTION

Front

What type of loop is used when you DO NOT know how many times you want to repeat something?

Back

A WHILE Loop

5.

FLASHCARD QUESTION

Front

What would amount equal in this piece of code:

amount = 2 + 5 * 2

Back

12

6.

FLASHCARD QUESTION

Front

What will be printed after running this FOR loop:

for number in range(6):
 
    print(number)

Back

The numbers 0 - 5

7.

FLASHCARD QUESTION

Front

How many times does the following program print the word ‘computer’:
word= "computer"
for num in range(1,6):
print(word)

Back

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?