Font size
WorksheetsCalibración en Python
Total questions: 27
Worksheet time: 9mins
¿Cuál de las siguientes opciones es correcta?
¿Cómo está formado la sintaxis de For en Python?
for iterador in secuencia
for rango in iterador
rango for in secuencia
ninguna de las anteriores
¿Cuál de las siguientes opciones es una variable de tipo Float?
-7.12
5
'8.2'
10.4
¿Cuál de las siguientes opciones es una variable de tipo String?
Hola
'P'
"Soy una variable"
18.9
¿quien creo python?
Bjarne Stroustrup
Guido van Rossum
Yukihiro Matsumoto
Tim Berners-Lee
¿que símbolo no se usa en python?
()
;
//
>>
una declaración condicional se escribe
if (v == true)
if v = true
if v == true;
if v == true:
¿Qué es Python?
Una serpiente
Un lenguaje de programación
Un programa de Software
Un cuento
¿Con que extensión guardamos los archivos de Python?
.doc
.py
Solo con el nombre
.python
¿Qué es lo que genera este código?
a+b
1+3
4
Ninguno, el código no es correcto
¿Qué es lo que genera este código?
a+b
1+3
4
Ninguno, el código no es correcto
¿Qué es lo que genera este código?
print ("La respuesta para 10+10 es," 10+10)
La respuesta para 10+10 es, 10+10
La respuesta para 10+10 es, 20
La respuesta para 10+10 es = 20
Ninguno, el código no es correcto
Uno de los objetivos de Python es...
Ser más completo
Permitir hacer juegos
Ser más fácil de leer y entender
Complicarme la vida
print(Hello world!)
Python accepts single ('), double (") and triple (''' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?
print('Hello World')
print("Hello World")
print('Hello World")
print(""'Hello World'"")
Which of the following keywords marks the begining of the function block?
Func
define
def
function
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
What is a Float?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
What is the output of the following list operation
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
print(aList[:4])
print(aList[3:])
[20, 30, 40, 50]
[10, 20, 30, 40]
[30, 40, 50, 60, 70, 80]
[30, 40, 50]
[10, 20, 30, 40]
[40, 50, 60, 70, 80]
None of these
What is the output of the following
aList = [5, 10, 15, 25]
print(aList[::-2])
[15, 10, 5]
[10, 5]
[25, 10]
In Python, list is mutable
False
True
Suppose list1 is [1, 3, 2], What is list1 * 2 ?
[2, 6, 4].
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
___________ method adds one list at the end of another list.
extend( )
append( )
insert( )
