Search Header Logo

Midterm Review

Authored by Abby Sheridan

Computers

9th - 12th Grade

Used 6+ times

Midterm Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?