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

Quiz

Python Test

wahi narsisian 22 Fragen

Quiz starten

Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.

Fragen in diesem Quiz (22)

  1. 1What are the data types in Python ?
    1. ANumbers, Strings
    2. BStrings, Integers
    3. CIntegers, Floats
  2. 2When we use input() built-in function what type of variable do we get ?
    1. AText
    2. BString
    3. CNumber
  3. 3What is the output of this command:
    res = (5 + 6) * 2 + 30 / 3
    print(res)
    1. A32.0
    2. B17.3
    3. C117.2
  4. 4How we can cast or change the type of the number in Python. Let say we have a variable:
    number = 55
    How we can change it to string variable
    1. Astr = string(number)
    2. Bstr = str(number)
    3. Cstr = number
  5. 5How we can define a "boolean" variable in Python ?
    1. Amy_boolean = true
    2. Bmy_boolean = True
    3. CBoth are true
  6. 6What is the output of this code ?
    a = 2
    if (a > 4)
    print("Yes")
    else:
    print("No")
    1. AYes
    2. BNo
    3. CSyntax Error
  7. 7What is the output ?
    a = 34
    b = 10
    if (a % 2 == 0) and (b == 10):
    if (a < 50):
    print("Inner if")
    else:
    print("else")

    1. Aelse
    2. BInner if
    3. CNo output
  8. 8What is the output of this code ?
    i = 8
    while i < 10:
    print(i)
    i += 1
    1. AError
    2. B8
      9
      10
    3. C8
      9
  9. 9What do we need to change in this code in order to make it correct ?
    number = input("Input a number between 1-5: ")
    while number != 4:
    print(number)
    number = input("Input a number between 1-5: ")
    1. ANothing
    2. B"4"
    3. Cbreak statement
  10. 10What is the output of this code ?
    for i in range(1,10,2):
    print(i)
    1. Anumbers from 1 to 10
    2. Bnumbers from 1 to 10 except 2
    3. C1,3,5,7,9

Informationen

Beschreibung
Technologies Quiz am Python Test, erstellt von wahi narsisian am 19/01/2018.
Sprache
English
Aufrufe
4
Schlagwörter
technologies
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck