CS Python Fundamentals Unit 4 Review

CS Python Fundamentals Unit 4 Review

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

IT - TYPING TUTOR

IT - TYPING TUTOR

9th Grade

10 Qs

Mobile app development principles

Mobile app development principles

10th Grade

17 Qs

Input Devices of Computer

Input Devices of Computer

11th Grade

10 Qs

Interstate Competition

Interstate Competition

7th - 10th Grade

11 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

CS Python Fundamentals Unit 4 Review

CS Python Fundamentals Unit 4 Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Scott Chamberlain

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

14 questions

Show all answers

1.

DRAG AND DROP QUESTION

2 mins • 3 pts

Media Image

Which values - in order - will be printed by this code?

​ ​ ​ ​

​ (a)   ​ (b)   ​ (c)  

7
3
-1
11
2
6
-4

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which loop will print the numbers 2, 5, 8, ..., 23?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ask the user to input a number less than 10. Print all the numbers from 1 to that number. Which loop correctly does this?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Write a program to ask the user for a number between 1 and 5, then ask for that many of their favorite movies, counting down to their #1 favorite.

A sample output is as follows:

Enter a number between 1 and 5: 3

What is your #3 favorite movie? Saving Private Ryan

What is your #2 favorite movie? Raiders of the Lost Ark

What is your #1 favorite movie? The Empire Strikes Back

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will the following code print?

The numbers 0 through 5

The numbers 1 through 6

The numbers 2 through 6

The numbers 2 through 7

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the bug in this code?

There is no bug

The loop will never run

print (x) causes an error because x is an integer

The loop will never stop

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement is true concerning a loop control variable?

must be declared as a boolean value

must decrease in value inside the loop

must be a certain value to stop the loop

must receive its value from user input

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?