Search Header Logo

minigames

Authored by English in Informatics

Used 8+ times

minigames
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


In Python, to check the data type of a variable, which function do you use?

check_type()

type()

verify_type()

length()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, to convert a number to a string, which function do you use?

num_to_str()
str()
convert_str()
string()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which of the following methods is correct for creating an empty list?

empty_list()

List()

list.empty()

[]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, to check how many characters are in a string, which function do you use?"


str_length()
len()
count_str()
length()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, to add an element to the end of a list, which method do you use?

append()
add()
push()
insert()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method do you use to check if a value is in a list in Python?

check()
exist()

in

find

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"In Python, to remove an element from a list, which method do you use?"

delete()
remove()
erase()
pop()

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?