Search Header Logo

Math in Coding Review

Authored by Blake Ciolfi

Computers, Mathematics

7th - 8th Grade

Used 1+ times

Math in Coding Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following code?

256

512

1024

2048

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the following program do?

Displays a countdown from 5 to 0

Displays a countdown from 5 to -1

Displays the number 0

Displays the number -1

None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the final value of j?

0

8

4

16

None of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the final value of g?

9

10

6

An error will occur since there are too many "not"

None of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

The following code will not run properly and instead show an error message. Why?

Because there should only be one equal sign in g == 5

You cannot have a while loop inside an if statement

Python is confused because there are too many conditions being checked

There is nothing inside the while loop

None of the above

6.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

What does the following code do?

Replaces all items in the list by 4

Replaces the first item in the list by 4

Replaces the last item in the list by 4

Nothing. An error will occur

None of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

5 inputs, 5 outputs

5 inputs, 1 output

1 input, 5 outputs

1 input, 1 output

None of the above

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?