Font size
WorksheetsPYTHON
Total questions: 50
Worksheet time: 29mins
¿What is Python?
Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.
Is a high-level, interpreted, general-purpose programming language.
Is a high-level, programming language. I
Al the above.
Is python compiled language ?
Yes
No
No Idea
What will be the output of :
a = 4.5
b = 2
print( a//b )
2.0
2.5
2.25
Error
What command is used to insert 6 in a list "L" at 3rd position?
L.insert(3,6)
L.add(3,6)
L.insert(2,6)
L.append(2,6)
print(3*4+5)
Which of the following operator is used to compare operator -
!=
<=
==
all of the above
Is python an interpreter or compiler programming language?
Compiler
Interpreter
print("3+4")
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
print("Hello" + "world" + "today")
What will the output be from the following code?
print Hello world!
Hello world!
SyntaxError
Hello world
print Hello world!
What does the following code do? myAge = int (myAge)
Converts the var (variable) myAge to a string
Converts the var (variable) myAge to a integer
Converts the var (variable) myAge from a integer to a string
Converts the var (variable) myAge to if statement
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[-1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
¿Con que extensión guardamos los archivos de Phyton?
.Doc
.Py
Solo con el nombre
.Python
Cual de estas afirmaciones es la correcta:
Un programa no tiene instrucciones.
Las instrucciones no tienen un orden especifico.
Cada instrucción en un programa se ejecuta en un orden.
Ninguna es correcta.
¿Cuál de las siguientes opciones es correcta?
Selecciona las variables escritas de forma incorrecta:
numero1
numero 2
perroGrande
9coches
¿Qué se muestra por pantalla?
edad
(edad)
Tu edad es: 20
20
¿Qué se muestra por pantalla?
7
12
resultado
El resultado es 7
¿Qué se muestra por pantalla?
8
resultado
"resultado"
15
¿Qué se muestra por pantalla?
4
resultado
nada
8
¿Qué se muestra por pantalla?
3
4
resultado
12
¿Qué se muestra por pantalla?
La edad que la persona haya escrito + 5
edad + 5
12 + 5
Edad5
¿Qué se muestra por pantalla?
5
20
10
resultadoFinal
¿Qué se muestra por pantalla?
No es mayor
Es mayor
"Es mayor"
Nada
variable ==expresión
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What would this print?
What will the output be from the following Python code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
