Quiz
Python basics: input, identifiers and operators
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem 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
Informationen
- Beschreibung
- Quiz am Ohne Titel, erstellt von John Ovalles am 01/08/2017.
- Autor
- John Ovalles
- Sprache
- English
- Aufrufe
- 0
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz