Quiz Condicionales y Ciclos

Quiz
•
Computers
•
University
•
Medium
Juan Gomez
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Que muestra el siguiente codigo?
x = 5
if x < 10:
print("Menor que 10")
else:
print("Mayor o igual que 10")
Mayor o igual que 10
Menor que 10
Error de sintaxis
Nada
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Qué Keyword se utiliza para crear una condición alternativa a if?
elseif
otherwise
elif
else if
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Cuál es la salida del siguiente código?
for i in range(3):
print(i)
0 1 2 3
0 1 2
1 2 3
1 2
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Cuándo se detiene un ciclo while?
Cuando el usuario lo decide
Nunca se detiene
Cuando la condición se vuelve falsa
Al final del programa
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Cuál es la salida de este código?
x = 0
while x < 3:
print(x)
x += 1
0 1 2
1 2 3
0 1 2 3
No imprime nada
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Qué hace la función range(5) en un for?
Crea una lista infinita
Itera del 1 al 5
Itera del 0 al 4
Itera del 0 al 5
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Qué Keyword se utiliza para terminar un ciclo antes de que acabe normalmente?
stop
exit
break
end
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
15 questions
Python Conditionals and If Statements

Quiz
•
8th Grade - University
18 questions
Quiz React

Quiz
•
University
15 questions
Python Language Programming

Quiz
•
University
20 questions
Python Básico 1

Quiz
•
University
20 questions
Examen Final

Quiz
•
University
21 questions
2 quiz USA 2024

Quiz
•
University
15 questions
Round 1 (Tech Utsav)

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade