Desarrollo  Académico e Ingeniería
Quiz by , created more than 1 year ago

Quiz on Tipos de datos parte 1, created by Desarrollo Académico e Ingeniería on 29/05/2020.

163
0
0
No tags specified
Desarrollo  Académico e Ingeniería
Created by Desarrollo Académico e Ingeniería almost 4 years ago
Close

Tipos de datos parte 1

Question 1 of 10

1

¿Para qué sirve el comando type( )?

Select one or more of the following:

  • Para que nos diga el tipo de variable que coloquemos en el argumento de la función type( )

  • Para nada

  • Para confundirnos

Explanation

Question 2 of 10

1

Si se define x=6.0 y le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • int

  • str

  • float

  • bool

Explanation

Question 3 of 10

1

Si se define x="hola" y le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • int

  • str

  • float

  • bool

Explanation

Question 4 of 10

1

Si se define x=6 y le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • float

  • int

  • string

  • list

  • tuple

Explanation

Question 5 of 10

1

Si se define x=True y le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • dict

  • float

  • int

  • bool

Explanation

Question 6 of 10

1

x=['hola','Pepe', 'José']

Si le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • tuple

  • dict

  • list

  • bool

Explanation

Question 7 of 10

1

x=('hola','Pepe', 'José')

Si le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • bool

  • range

  • tuple

  • list

Explanation

Question 8 of 10

1

x={'Ernesto':36, 'José':58}

Si le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • int

  • list

  • tuple

  • set

  • dict

Explanation

Question 9 of 10

1

x={'hola','Pepe', 'José'}

Si le preguntamos a Python >>>type(x) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • frozenset

  • list

  • dict

  • set

Explanation

Question 10 of 10

1

x=set(('hola','Pepe', 'José'))
X=frozenset(x)

Si le preguntamos a Python >>>type(X) ¿Qué nos mostraría la consola?

Select one or more of the following:

  • set

  • tuple

  • list

  • bool

  • frozenset

Explanation