Ciclos Python

Ciclos Python

University

13 Qs

quiz-placeholder

Similar activities

Tanda2_FUNPRO_Normal

Tanda2_FUNPRO_Normal

University

10 Qs

prueba diagnostica desarrollo de software

prueba diagnostica desarrollo de software

University

10 Qs

Python 2

Python 2

University

17 Qs

Lenguaje Perl

Lenguaje Perl

University

10 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

INTRODUCTION TO CODING QUIZ 2

INTRODUCTION TO CODING QUIZ 2

University

13 Qs

Python quiz

Python quiz

10th Grade - Professional Development

10 Qs

Python String Slicing

Python String Slicing

4th Grade - University

10 Qs

Ciclos Python

Ciclos Python

Assessment

Quiz

Computers

University

Medium

Created by

Francisco Orozco

Used 52+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

1. El caso del bote de dos puestos:

Un hombre que vive en una isla necesita trasladar sus pertenencias a otra que está enfrente. El hombre tiene un zorro, un conejo y un racimo de zanahorias, pero en su bote puede llevar sólo uno de los tres elementos a la vez.

¿Cómo puede hacer para llevarlo todo por turnos, sin que el zorro se coma al conejo ni éste las zanahorias?

Zorro, Conejo, Zanahoria

Conejo, Zanahoria, Zorro

Conejo, Zorro, Zanahoria

2.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

Hay un animal tiene sus patas todo el tiempo sobre la cabeza.

¿Cuál es ese animal?

3.

OPEN ENDED QUESTION

1 min • 1 pt

Media Image

Qué imprime el siguiente código:

n=int(input("Ingrese un número n: "))

ast=""

for i in range(1,n+1):

ast=ast+"*"

print(ast)

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Qué le falta al siguiente código:

a=int(input("Ingrese el primer número: "))

b=int(input("Ingrese el segundo número: "))

c=int(input("Ingrese el tercer número: "))

r1=a+b+c

r2=a*b*c

if r1==r2:

print("Los números son: ",a," ",b," ",c)

else:

print("Los números no cumple la igualdad")

Todo lo anterior

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Cuál es la opción correcta para:

import random

num = random.randint(0,99)

print(num)

n=int(input("Ingrese el número de su apuesta: 0 a 99 "))

monto=int(input("Ingrese el monto a apostar: "))

if n=num:

print("Ganaste: ",monto*70)

else:

print("Sigue intentando")

if n==num:

print("Perdiste: ",monto*70)

else:

print("Sigue intentando")

if n==num:

print("Ganaste: ",monto*70)

else:

print("Sigue intentando")

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Qué muestra el siguiente código en el print:

n=int(input("ingrese el número de _______ a mostrar: "))

i=1

while i<=n:

if n%i == 0 and i%2==0:

print(i)

i=i+1

números pares

números impares

pares e impares

divisores

7.

OPEN ENDED QUESTION

2 mins • 1 pt

Media Image

Qué resuelve el siguiente código:

m=int(input("Ingrese el número m: "))

suma=1

n=0

for i in range(1,m):

if suma<m:

suma=suma+i

n=i

print(n+1)

Evaluate responses using AI:

OFF

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?