Python Modulus & Exponent & If 305

Python Modulus & Exponent & If 305

9th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

PROPERTIES

PROPERTIES

8th - 10th Grade

16 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Ms. Exel dan Fungsi Logika IF

Ms. Exel dan Fungsi Logika IF

10th Grade - University

15 Qs

PSTS Administrasi Infrastruktur Jaringan Kelas XII TKJ

PSTS Administrasi Infrastruktur Jaringan Kelas XII TKJ

12th Grade

20 Qs

Control de Flujo en Python

Control de Flujo en Python

9th Grade

15 Qs

Uji Pemahaman Microsoft Word X TKJ 1

Uji Pemahaman Microsoft Word X TKJ 1

12th Grade

20 Qs

Python Modulus & Exponent & If 305

Python Modulus & Exponent & If 305

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Mr Minyard

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the modulus operator (%) in Python do?

Divides two numbers and returns the quotient

Divides two numbers and returns the remainder

Multiplies two numbers

Subtracts one number from another

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(Python) If `x = 5` and `y = 2`, what is the result of `x % y`?

2.5

2

1

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the exponent operator (**) in Python do?

Raises the first number to the power of the second number

Multiplies the first number by the second number

Divides the first number by the second number

Adds the first number to the second number

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `x = 3` and `y = 4`, what is the result of `x ** y`?

12

81

64

7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct basic if statement in Python?

if x = 5:

if x == 5

if x == 5:

if x = 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following Python code output?

x = 10

if x > 5:

print("Greater")

else:

print("Smaller")

Smaller

Greater

Error

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, how do you assign an integer value of 20 to a variable named `age`?

age == 20

age = 20

int age = 20

age := 20

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?