Search Header Logo

Quiz- Grade 7 & 8- Python (2nd term)

Authored by Daniel Marcos Domingos Manganhe

Computers

7th Grade

Used 14+ times

Quiz- Grade 7 & 8- Python (2nd term)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is Python?

A type of snake

A high-level programming language

A database management system

A web browser

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Python?

=

==

!=

===

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will the following code output? x = 10 if x > 5: print("Hello!") else: print("Goodbye!")

Hello!

Goodbye!

Nothing

Error

4.

OPEN ENDED QUESTION

3 mins • 3 pts

Write a Python statement to declare a variable called age and assign it the value 16.

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 2 pts

What is wrong with this code? Fix it. name = "Alice" print("Hello" name)

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 4 pts

Write a Python program that asks the user for their favorite number and then prints whether it is "Even" or "Odd". (Hint: Use the modulo operator % to check if the number is divisible by 2.)

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 3 pts

What will this code output? Explain why. num1 = 5 num2 = 2 result = num1 * num2 + 3 print(result)

Evaluate responses using AI:

OFF

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?