wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Calibración en Python

Total questions: 27

Worksheet time: 9mins

Name
Class
Date
1.

¿Cuál de las siguientes opciones es correcta?

a)
b)
c)
d)
2.

¿Cómo está formado la sintaxis de For en Python?

a)

for iterador in secuencia

b)

for rango in iterador

c)

rango for in secuencia

d)

ninguna de las anteriores

3.

¿Cuál de las siguientes opciones es una variable de tipo Float?

a)

-7.12

b)

5

c)

'8.2'

d)

10.4

4.

¿Cuál de las siguientes opciones es una variable de tipo String?

a)

Hola

b)

'P'

c)

"Soy una variable"

d)

18.9

5.

¿quien creo python?

a)

Bjarne Stroustrup

b)

Guido van Rossum

c)

Yukihiro Matsumoto

d)

Tim Berners-Lee

6.

¿que símbolo no se usa en python?

a)

()

b)

;

c)

//

d)

>>

7.

una declaración condicional se escribe

a)

if (v == true)

b)

if v = true

c)

if v == true;

d)

if v == true:

8.

¿Qué es Python?

a)

Una serpiente

b)

Un lenguaje de programación

c)

Un programa de Software

d)

Un cuento

9.

¿Con que extensión guardamos los archivos de Python?

a)

.doc

b)

.py

c)

Solo con el nombre

d)

.python

10.

¿Qué es lo que genera este código?

a)

a+b

b)

1+3

c)

4

d)

Ninguno, el código no es correcto

11.

¿Qué es lo que genera este código?

a)

a+b

b)

1+3

c)

4

d)

Ninguno, el código no es correcto

12.

¿Qué es lo que genera este código?

print ("La respuesta para 10+10 es," 10+10)

a)

La respuesta para 10+10 es, 10+10

b)

La respuesta para 10+10 es, 20

c)

La respuesta para 10+10 es = 20

d)

Ninguno, el código no es correcto

13.

Uno de los objetivos de Python es...

a)

Ser más completo

b)

Permitir hacer juegos

c)

Ser más fácil de leer y entender

d)

Complicarme la vida

14.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation
15.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
16.

Python accepts single ('), double (") and triple (''' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?

a)

print('Hello World')

b)

print("Hello World")

c)

print('Hello World")

d)

print(""'Hello World'"")

17.
A variable that can only have two values, True or False.
a)
Boolean
b)
If
c)
elif
d)
else
18.
Which is the correct syntax?
a)
has_dog = true
b)
has_dog = True
c)
has_dog = Treu
d)
HAS_DOG = tRue
19.
This operator means that one value is the same as the other value
a)
==
b)
!=
c)
>
d)
<
20.

Which of the following keywords marks the begining of the function block?

a)

Func

b)

define

c)

def

d)

function

21.

What term is used to describe data passed into/out of a program?

a)

Variable

b)

Loop

c)

Constant

d)

Parameter

22.

What is a Float?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

23.

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:])

a)

[20, 30, 40, 50]

[10, 20, 30, 40]

[30, 40, 50, 60, 70, 80]

b)

[30, 40, 50]

[10, 20, 30, 40]

[40, 50, 60, 70, 80]

c)

None of these

24.

What is the output of the following

aList = [5, 10, 15, 25]

print(aList[::-2])

a)

[15, 10, 5]

b)

[10, 5]

c)

[25, 10]

25.

In Python, list is mutable

a)

False

b)

True

26.

Suppose list1 is [1, 3, 2], What is list1 * 2 ?

a)

[2, 6, 4].

b)

[1, 3, 2, 1, 3]

c)

[1, 3, 2, 1, 3, 2]

d)

[1, 3, 2, 3, 2, 1]

27.

___________ method adds one list at the end of another list.

a)

extend( )

b)

append( )

c)

insert( )