CS1 End-o-year Review

CS1 End-o-year Review

10th Grade

43 Qs

quiz-placeholder

Similar activities

Python Revision Years 8&9 IGCSE

Python Revision Years 8&9 IGCSE

9th - 12th Grade

40 Qs

Paper 2 - Last ever quiz 2!

Paper 2 - Last ever quiz 2!

7th - 10th Grade

40 Qs

Code.org Lists, Loops, Traversals Review

Code.org Lists, Loops, Traversals Review

9th - 12th Grade

39 Qs

Multidimensional list and tuples 2025

Multidimensional list and tuples 2025

9th - 12th Grade

44 Qs

python set 3

python set 3

9th - 12th Grade

41 Qs

AP CSP Spring C4 Final

AP CSP Spring C4 Final

10th Grade

42 Qs

STARTER - 1D Array Test

STARTER - 1D Array Test

9th - 12th Grade

48 Qs

Python set 2

Python set 2

9th - 12th Grade

42 Qs

CS1 End-o-year Review

CS1 End-o-year Review

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Danielle Mills

Used 3+ times

FREE Resource

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

cntr = 0

for c in range(0, 10, 4):

cntr += 1

print(cntr) #out of loop

2

3

4

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

n = 2

total = 0

while(n < 9):

total=total + n #in loop

n += 1 #in loop

print(total) #out of loop

104

54

44

35

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

list = [33,14,37,11,27]

print(list[0])

27

11

33

There is no output due to a syntax error.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

list = [33,14,37,11,27]

print(list[len(list)-1])

27

11

33

14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

list = [33,14,37,11,27]

print(list[len(list)])

a. 14

b. 11

c. 33

d. There is no output due to a runtime exception.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

list = [33,14,37,11,27,4,6,2,6]

print(len(list))

a. 10

b. 9

c. 11

d. 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below

nums = [0,0,0,0,0,0,0,0,0]

for i in range(len(nums)):

nums[i] = i * 2

print(nums[8]) #outside loop

a. 10

b. 12

c. 14

d. 16

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?