Search Header Logo

AWS Python Booster Day 4

Authored by CloudThat Technologies

Professional Development

Professional Development

Used 6+ times

AWS Python Booster Day 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

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()

2.

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)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are performing the following operation:

In [1]: 10 == 20

Out[1]: _____

What is the result of the operation?

0

10

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of statement should you use as a placeholder for future function code?

break

continue

pass

place

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of loop should you use to repeat a code process as long as a condition resolves as `True`?

compound

for

nested

while

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The containment operators "in" and "not in" return a True/False result.

True

False

May be

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which clause should you use for code that you want to execute regardless of whether an exception is raised?

else

elseif

except

finally

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?