Search Header Logo

grade 8 week 4

Authored by Raghda hamwan

Design

8th Grade

Used 3+ times

grade 8 week 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will the code print if number = 5?

number = 5

if number % 2 == 0:

print("Even")

else:

print("Odd")

A) Even


B) Odd


C) 5


D) Error

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will the following code print if x = 12?

score = 75

if score >= 90:
    print("Excellent")
elif score >= 60:
    print("Pass")

A) Excellent

B) Pass

C) Nothing

D) Error

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will the code print if the user enters 8?

x = int(input("Enter a number: "))

result = x * 3

if result > 20:

print("Large")

else:

print("Small")


A)8


B) Large


B) Large



D) Error

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will the code print if the user enters 6?

x = input("Enter a number: "))

result = x * 2

if result > 15:

print("High")

elif result > 10:

print("Medium")

else:

print("Low")

A) High


B) Medium

C) Low


D) Error

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

The following code has an error. What is it?

x = input("Enter a number: ")

x=str(x)

if x + 5 > 10:

print("Big")

A) The if statement is wrong

B) input() returns a string, should convert to int

C) The print statement is wrong

D) No error

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?