
Preguntas de Python

Quiz
•
Computers
•
7th Grade
•
Hard
Arturo Esttreger
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué función se utiliza para crear un bucle que itera un número específico de veces en Python?
while
for
loop
iterate
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el propósito del operador `in` en Python?
Comprobar si un número es mayor que otro.
Verificar si un carácter está presente en una cadena.
Asignar valores a variables.
Iterar sobre una lista.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué se entiende por "variable de bucle"?
Una variable que almacena el resultado de una operación.
Una variable que se utiliza para contar iteraciones en un bucle.
Una variable que se utiliza solo una vez.
Una variable que no cambia de valor.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué se imprimirá si ejecutas el siguiente código? total = 0 for i in range(5): total += 1 print(total)
4
5
6
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué hará el siguiente código? count = 0 for letter in "hello": if letter == 'e': count += 1 print(count)
Imprimirá 0
Imprimirá 1
Imprimirá 2
Imprimirá un error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál de las siguientes opciones verifica si la letra 'a' está en la palabra "Python"?
'a' in "Python"
'Python'.contains('a')
'Python'.find('a') != -1
'a' in 'Python'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué se obtiene al ejecutar el siguiente código? line = " Hello World " clean_line = line.strip() print(clean_line)
Hello World
"Hello World"
" Hello World "
HelloWorld
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz 1 G7

Quiz
•
7th Grade
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
10 questions
CodeTigers Python 101

Quiz
•
KG - Professional Dev...
15 questions
Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Quiz
•
6th - 8th Grade
10 questions
Python L1 Introduction to Python

Quiz
•
6th - 8th Grade
10 questions
Python

Quiz
•
6th - 8th Grade
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade