Search Header Logo

FINAL EXAM - 8TH GRADE

Authored by Klea h

Computers

8th Grade

FINAL EXAM - 8TH GRADE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will be the output of the following code?

# This is a comment

#print("FINAL EXAM!")

FINAL EXAM!

# This is a comment

FINAL EXAM!

No output

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following is a multiline comment in Python?

/* This is a

multiline comment */

// This is a

multiline comment

# This is a

multiline comment

"""This is a

multiline comment."""

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the data type of the user input in the code below in Python?

x = input("Enter a number: ")

int

float

str

bool

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will be the result of the following code in Python?

x = 7

y = "13"

print(x + int(y))

20

713

Error

7 + "13"

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following is a valid variable in Python?

2name = "John"

full-name = "Bob"

running_total = 123

my class = 123

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the output in Python?

High

Medium

Low

Error

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

How many times will the following loop run in Python?

10

9

11

Infinite

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?