CS1 End-o-year Review

CS1 End-o-year Review

10th Grade

43 Qs

quiz-placeholder

Similar activities

Midterm prep 10 gr

Midterm prep 10 gr

10th Grade - University

45 Qs

CH4 - Python

CH4 - Python

9th - 12th Grade

45 Qs

Python set 2

Python set 2

9th - 12th Grade

42 Qs

PLTW CSP Fall Exam 2024

PLTW CSP Fall Exam 2024

9th - 12th Grade

38 Qs

Paper 2 - Last ever quiz 2!

Paper 2 - Last ever quiz 2!

7th - 10th Grade

40 Qs

arrays loops functions temp

arrays loops functions temp

9th - 12th Grade

43 Qs

AP CSP Spring C4 Final

AP CSP Spring C4 Final

10th Grade

42 Qs

Python Test

Python Test

8th - 12th Grade

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