Search Header Logo

Fundamentos de Python

Authored by Profe Erwin Cortez

Computers

11th Grade

Used 1+ times

Fundamentos de Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué es una variable en Python?

Una variable en Python es un tipo de dato específico.

Una variable en Python es un método para manipular archivos.

Una variable en Python es un espacio en memoria que almacena datos y se le asigna un nombre.

Una variable en Python es un comando para ejecutar funciones.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuáles son los tipos de datos básicos en Python?

char, float, array, dict

int, float, str, bool, array, dict

int, float, str, bool, list, tuple, set, dict

int, float, str, bool, list, set, dict, array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se declara una variable en Python?

x = 5

x := 5

var x = 5

let x : int = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué estructura de control se utiliza para tomar decisiones en Python?

switch, case, break

if, elif, else

try, except, finally

for, while, do

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué es un bucle 'for' en Python?

Un bucle 'for' en Python solo puede iterar sobre números.

Un bucle 'for' en Python es un tipo de variable.

Un bucle 'for' en Python se utiliza para definir funciones.

Un bucle 'for' en Python permite iterar sobre elementos de una secuencia o iterable.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se define una lista en Python?

Una lista en Python se define con corchetes cuadrados, por ejemplo: mi_lista = [1, 2, 3, 'cuatro'].

Una lista en Python se define como un conjunto, por ejemplo: mi_lista = {1, 2, 3, 4}.

Una lista en Python se define con paréntesis, por ejemplo: mi_lista = (1, 2, 3, 'cuatro').

Una lista en Python se define con llaves, por ejemplo: mi_lista = {1, 2, 3, 'cuatro'}.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué método se utiliza para agregar un elemento a una lista?

add()

push()

insert()

append()

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?