Search Header Logo

Test 2 - PB - Introducción a Python

Authored by Daniel Chapilliquen

Information Technology (IT)

University

Used 7+ times

Test 2 - PB - Introducción a Python
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 el primer paso del Intérprete de Python?

Traduce el código python a byte

Ejecuta el programa en la Máquina Virtual Python

  1. Lee y verifica la sintaxis del código

Crea una carpeta de trabajo

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Completa la operación con el operador aritmético adecuado para obtener el resultado:

33 ▢ 15 = 2

//

/

%

-

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

¿Qué línea de código permite obtener el penúltimo dígito de un número entero N?

(N % 100) % 10

N % 100

N / 100

(N % 100) // 10

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

¿Qué bloque de código permite identificar un número N es par o impar?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

¿Qué línea de condición sería adecuada para evaluar si un número es múltiplo de 2, 3 o 5?

if numero % 2 == 0

and numero % 3 == 0

and numero % 5 == 0:

if numero % 2 == 0

or numero % 3 == 0

or numero % 5 == 0:

if numero % 2 == 0

and numero % 3 == 0

or numero % 5 == 0:

if numero % 3 == 0

or numero % 5 == 0:

6.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

¿Qué línea de código es adecuada para la siguiente condición?

El número debe terminar en 3 o 6

El número debe ser múltiplo de 3 pero no de 6

if num % 10 == 3

and num % 10 == 6

and num % 3 == 0

and num % 6 != 0:

if (num % 3 == 0

or num % 6 == 0)

and (num % 10 == 3

and num % 10 != 6):

if (num % 10 == 3

or num % 10 == 6)

and (num % 3 == 0

and num % 6 != 0):

if (num % 3 == 3

or num % 6 == 6)

and (num % 10 == 3

and num % 10 != 6):

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

¿Qué estructura repetitiva es más adecuada para la siguiente situación?

Elabora un programa que permita ingresar números enteros.

El ingreso de los números terminará cuando la computadora pregunte ¿Desea terminar? y el usuario responda 'SI'.

Al finalizar el programa se deberá mostrar la sumatoria de los números ingresados.

FOR

WHILE

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?