GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Python basics: input, identifiers and operators

John Ovalles 7 Fragen

Quiz starten

Fragen in diesem Quiz (7)

  1. 11) What function do you use to read a string?
    1. Ainput("Enter a string")
    2. Beval(input("Enter a string"))
    3. Ceval(enter("Enter a string"))
    4. Denter("Enter a string")
  2. 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
    1. A1.0
    2. B2.0
    3. C4.0
    4. D3.0
  3. 33) Which of the following is a valid identifier? (check all that apply)


    1. A$343
    2. Bmile
    3. C9X
    4. D8+9
    5. Emax_radius
  4. 4What will be displayed by the following code?
    x = 1
    x = 2*x+1
    print(x)
    1. A0
    2. B1
    3. C3
    4. D4
  5. 5What is the result of 45//4?
    1. A10
    2. B11
    3. C11.25
    4. D12
  6. 6Which of the following expressions results in a value 1?
    1. A2 % 1
    2. B15 % 4
    3. C25 % 5
    4. D37 % 6
  7. 7What is x after the following statements?
    x = 1
    y = 2
    x *= Y + 1
    1. Ax is 1
    2. Bx is 2
    3. Cx is 3
    4. Dx is 4

Informationen

Beschreibung
Quiz am Ohne Titel, erstellt von John Ovalles am 01/08/2017.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck