Search Header Logo

FP2: 02 - STRINGS

Authored by Paul Beltrand

Computers

Professional Development

Used 6+ times

FP2: 02 - STRINGS
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

¿Cuál es la longitud de la siguiente cadena asumiendo que no hay espacios en blanco entre las comillas?

'''

'''

0

1

6

7

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

alpha = "abdefg"
print(alpha[3:-2])

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

print(min("aAbByYzZ"))

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str = "abcabc"

str.count("b")

6

2

0

No se imprime nada

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(len("\n\n"))

ValueError

4

2

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print('kappa'.find('a', 2, 4))

1

4

Exception

-1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str = "Hola Mundo 2023"

print(str.isalnum())

¿que imprime?

True

False

Exception

Hola Mundo 2023

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?