CS8 - 3rd SW - ZLGA - CodeHS Basic Python

CS8 - 3rd SW - ZLGA - CodeHS Basic Python

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

50 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Please answer the question in the image: Options: A, B, C, D

Back

C

2.

FLASHCARD QUESTION

Front

An infinite loop is :A loop runs infinite times when the condition-------------.

Back

never fails

3.

FLASHCARD QUESTION

Front

In programming, what is iteration/looping?

Back

The repetition of steps within a program

4.

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

5.

FLASHCARD QUESTION

Front

Which of the following for loops would print the following numbers?
3
5
7
9
Options:
for i in range(3, 10, 2):
print(i)
for i in range(3, 9, 2):
print(i)
for i in range(9):
print(i)
for i in range(3,9):
print(i)

Back

for i in range(3, 10, 2):
print(i)

6.

FLASHCARD QUESTION

Front

Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?
Options: for i in range(0, 5):, for i in range(5):, for i in range(0, 5, 1):, for i in range(5, 0, 1):

Back

for i in range(5, 0, 1):

7.

FLASHCARD QUESTION

Front

What would be the output of the following code (assuming correct indentions):
for i in range(3):
print(5)

Back

5 5 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?