Search Header Logo

Python 2

Authored by Ramón Torres

Computers

University

Used 22+ times

Python 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Complete la palabra reservada de python en el siguiente programa:

elseif

elif

else

else if

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Cuál de las opciones es equivalente al código de python mostrado?

print("No") if 5 == 2 else print("Si")

if 5 == 2 print("Si") : print("No")

if 5 == 2 print("Si") else print("No")

print("Si") if 5 == 2 else print("No")

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Cuál es la salida que produce este bloque de código en python?

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Cuál es la salida que produce este bloque de código en python?.

0,1,2,3,4

0,1,2,3,4,5

1,2,3,4,5

1,2,3,4

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Qué números imprime el siguiente código en python?

7, 9, 11,13 y 15

9, 11,13 y 15

7, 9, 11 y 13

9, 11 y 13

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Cuál es la salida que produce este bloque de código en python?

0, 1 y 2

1, 2 y 3

2, 3 y 4

3, 4 y 5

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

¿Cómo obtengo el elemento cuyo valor es 'España' de la lista de países (lst_paises)?

lst_paises[-1]

lst_paises[2]

lst_paises[3]

lst_paises[4]

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?