Broken Python(Practice Test)

Broken Python(Practice Test)

Professional Development

63 Qs

quiz-placeholder

Similar activities

Aviation Weather

Aviation Weather

Professional Development

58 Qs

PPPK PKN SD

PPPK PKN SD

Professional Development

61 Qs

Hydraulics Day1

Hydraulics Day1

Professional Development

60 Qs

MF0973 GRABACION DE DATOS

MF0973 GRABACION DE DATOS

Professional Development

68 Qs

UJI PEDAGOGIK PPPK PAI ABDYA

UJI PEDAGOGIK PPPK PAI ABDYA

Professional Development

67 Qs

LKĐV - Câu hỏi Tài chính, đầu tư (update 07/2024)

LKĐV - Câu hỏi Tài chính, đầu tư (update 07/2024)

Professional Development

58 Qs

Security Management

Security Management

Professional Development

60 Qs

Salesforce Admin Practice Exam 1

Salesforce Admin Practice Exam 1

Professional Development

60 Qs

Broken Python(Practice Test)

Broken Python(Practice Test)

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Python People

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

63 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.cell()

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)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: A datetime.timedelta object stores only days, seconds, and microseconds.

True

False

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which two statements about the pydoc module are true?

It generates documentation from the docstrings in a module.

It generates documentation for a module without importing it.

It imports a module and then generates documentation for the module.

It automatically suppresses module functions from running while generating documentation for the module.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?