Test
Python basics: input, identifiers and operators
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (7)
11) What function do you use to read a string?
- Ainput("Enter a string")
- Beval(input("Enter a string"))
- Ceval(enter("Enter a string"))
- Denter("Enter a string")
2If you enter 1 2 3 in three separate lines, when you run this program, what will be displayed?
number1 = int(input())
number2 = int(input())
number3 = int(input())
# Compute average
average = (number1 + number2 + number3) / 3- A1.0
- B2.0
- C4.0
- D3.0
33) Which of the following is a valid identifier? (check all that apply)
- A$343
- Bmile
- C9X
- D8+9
- Emax_radius
4What will be displayed by the following code?
x = 1
x = 2*x+1
print(x)- A0
- B1
- C3
- D4
5What is the result of 45//4?
- A10
- B11
- C11.25
- D12
6Which of the following expressions results in a value 1?
- A2 % 1
- B15 % 4
- C25 % 5
- D37 % 6
7What is x after the following statements?
x = 1
y = 2
x *= Y + 1- Ax is 1
- Bx is 2
- Cx is 3
- Dx is 4
Información
- Descripción
- Test sobre Sin título, creado por John Ovalles el 01/08/2017.
- Autor
- John Ovalles
- Idioma
- English
- Visitas
- 0
- Valoración
- Aún sin valoraciones Valora este test