Search Header Logo

Unit 3 Mod 1.1

Authored by Bobbi Jennings

9th - 12th Grade

Used 11+ times

Unit 3 Mod 1.1
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

30 sec • 1 pt

Which code should you use to import a function named abc from a Python module named xyz?

import abc

from xyz import abc

import abc from xyz

import mod xyz fn abc

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using Python, which mathematic operation returns a value of 2?

42 / 4

42 // 4

42 % 4

42 ** 4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using Python, what is the result of the mathematic operation 1 ** (2 * 3) / 4 + 5?

0.11

0.67

5.25

6.50

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function from the math module can you use to round up the number 12.34 to 13?

math.ceil()

math.float()

math.floor()

math.trunc()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns only whole, even numbers from within the range from 1 to 100?

random.choice(1, 100, even)

random.randint (1, 100, 2)

random.randrange(2, 101, 2)

random.uniform(1, 100)

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?