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

Quiz

Python Quiz

Harvey Parkes 38 Fragen

Quiz starten

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

Fragen in diesem Quiz (38)

  1. 1Examine the code and determine the value of the variable b when the code completes.Bild zu Frage 1
    1. A6
    2. B2
    3. CNone
  2. 2Examine the code and determine the output.Bild zu Frage 2
    1. A{}
    2. Bfoo
    3. C{'obj_name': 'foo'}
    4. D{'obj_name' = 'foo'}
  3. 3What output will be produced from this snippet of code?Bild zu Frage 3
    1. AIndexError
    2. B[]
    3. C['a', 'b', 'c', 'd', 'e']
  4. 4What output will be produced?Bild zu Frage 4
    1. Ain except block
    2. Bin except block
      after try-except
  5. 5What is the value of variable d when the code completes?Bild zu Frage 5
    1. A[1, 'Dublin', 2, 'London', 3, 'Moscow']
    2. B{1: 'Dublin', 2: 'London', 3: 'Moscow'}
    3. CAn exception is raised
  6. 6Is the code performing legal operations? Bild zu Frage 6
    1. AYes
    2. BNo
  7. 7Do a and b return the same object type?Bild zu Frage 7
    1. ANo
    2. BYes
  8. 8Determine the value of the variable b when the code completes?Bild zu Frage 8
    1. A[10,20,30]
    2. B20
    3. C[10, 20, 50]
  9. 9What is the output from this code?Bild zu Frage 9
    1. AFalse
    2. BTrue
  10. 10What is the output of the code?Bild zu Frage 10
    1. A15
    2. B25
    3. CTrue

Informationen

Beschreibung
A beginners quiz to aid learning Python.
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