Midterm Review

Midterm Review

9th - 12th Grade

23 Qs

quiz-placeholder

Similar activities

Lesson 1.8 to 1.11 Questions

Lesson 1.8 to 1.11 Questions

9th - 12th Grade

20 Qs

2.2 Programming Techniques

2.2 Programming Techniques

10th Grade

20 Qs

Python Test 1.0 - 2.0

Python Test 1.0 - 2.0

9th - 12th Grade

21 Qs

Python continuation

Python continuation

11th Grade

18 Qs

Functions in python Chapter 8

Functions in python Chapter 8

10th Grade

18 Qs

Python Basic Programming Quiz

Python Basic Programming Quiz

11th Grade

25 Qs

Class XII(Revision Tour)

Class XII(Revision Tour)

12th Grade

25 Qs

Int to Comp Sci Python Quiz 1

Int to Comp Sci Python Quiz 1

9th - 12th Grade

23 Qs

Midterm Review

Midterm Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Abby Sheridan

Used 6+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

After running the code above, which of the following will display 3?

DISPLAY(a)

DISPLAY("a")

DISPLAY(b)

DISPLAY("b")

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is displayed when we run the code above?

BREADPEANUT BUTTER

PEANUT BUTTERBREAD

BREADPEANUT BUTTERBREAD

PEANUT BUTTERBREADPEANUT BUTTER

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Danielle is programming a kitty simulator. Part of her code is shown here. What is displayed? when the code runs?

6 9 7

6 7 9

7 9 6

9 7 6

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is displayed when we run this code?

100 100

100 200

200 100

200 200

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Imagine we are trying to determine a worker's hourly pay rate, based on how much they make per year. So far we have the code above. Which of the following will calculate the hourly rate correctly?

hourlyRate undefined salary / (wksInYear / hrsInWeek)

hourlyRate undefined hrsInWeek / wksInYear / salary

hourlyRate undefined salary / hrsInWeek / wksInYear

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Suppose we have a number x where


x MOD 10


is the same as x. What is the best description of x?

It is equal to 10

It is greater than 10

It is less than 10

It is a multiple of 10

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A company can ship cargo on a freight train or a van. They pay $1000 to ship by freight train, no matter how many cars it takes. However, each train car holds 200 boxes, and the train company will only ship full cars. So any extra boxes have to be shipped by van. The van company charges $5 per box they ship. If the number of boxes is represented by the variable numBoxes, which expression correctly calculates the total cost to ship all the boxes?

totalCost undefined 200 + (numBoxes % 1000) * 5

totalCost undefined 200 + (numBoxes / 1000) * 5

totalCost undefined 1000 + (numBoxes % 200) * 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?