Quiz
Python basics: input, identifiers and operators
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (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
Informações
- Descrição
- Quiz sobre Sem título, criado por John Ovalles em 01-08-2017.
- Autor
- John Ovalles
- Idioma
- English
- Visualizações
- 0
- Avaliação
- Ainda sem avaliações Avalie este quiz