Search Header Logo

Python Core Functions

Authored by Ahmed Shams

Computers

9th - 12th Grade

Used 10+ times

Python Core Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

69 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returns the absolute value of a number

abs()
float()
iter()
super()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returns True if all elements in an iterable are true

all()
int()
delattr()
pow()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returns True if at least one element in an iterable is true

any()
next()
chr()
chr()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returns a string representation of an object, with non-ASCII characters escaped

ascii()
import()
int()
set()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Converts an integer to a binary string

bin()
delattr()
type()
object()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Converts a value to a Boolean (True or False)

bool()
float()
str()
round()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Enters a debugger at the calling point

breakpoint()
divmod()
exec()
object()

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?