Search Header Logo

Python Educational Quiz: Variables and Mathematical Symbols

Authored by imam ibrahim

Information Technology (IT)

8th Grade

Used 1+ times

Python Educational Quiz: Variables and Mathematical Symbols
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable in Python is like a box that stores data. Which of these is the right way to store your name? We use = to assign a value to a variable, like labeling a box.

name == 'Alex'

name = 'Alex'

'Alex' = name

name: 'Alex'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python can do math like a calculator. What will this code print? print(5 + 3 * 2) Multiplication happens before addition — order of operations (PEMDAS).

A) 16

B) 11

C) 13

D) Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you want a whole number division (no decimals), which operator should you use?

/

//

%

÷

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Write a Python program to calculate the area of a rectangle. Use f-string to show clear results.

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to find remainder of a division?

/

//

%

**

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You typed: x = 5; y = 2; print(x ** y). What is printed?

25

10

7

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables in Python are case-sensitive. Which two below are different?

age and Age

num and NUM

both A and B

same

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?