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

Quiz

Online Test-Lists

Aparna Dhirde 10 Fragen Aktualisiert am 17 Mär 2020

Quiz starten

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

Fragen in diesem Quiz (10)

  1. 1Slicing is used to extract a part of the list.
    1. ARichtig
    2. BFalsch
  2. 2Single element is not treated as list.
    1. ARichtig
    2. BFalsch
  3. 3List is enclosed in curly brackets.
    1. ARichtig
    2. BFalsch
  4. 4Operator & concatenates one list to the end of other list.
    1. ARichtig
    2. BFalsch
  5. 5Operator * repeats the content of a list by specified number of times.
    1. ARichtig
    2. BFalsch
  6. 6Which of the following commands will create a list?
    1. Alist1 = list()
    2. Blist1 = []
    3. Clist1 = list([1, 2, 3])
    4. Dall of the mentioned
  7. 7Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
    1. A[2, 33, 222, 14]
    2. BError
    3. C25
    4. D[25, 14, 222, 33, 2]
  8. 8Suppose list1 is [1, 3, 2], What is list1 * 2?
    1. A[2, 6, 4]
    2. B[1, 3, 2, 1, 3]
    3. C[1, 3, 2, 1, 3, 2]
    4. D[1, 3, 2, 3, 2, 1]
  9. 9What will be the output of the following Python code?
    >>>"Welcome to Python".split()
    1. A[“Welcome”, “to”, “Python”]
    2. B(“Welcome”, “to”, “Python”)
    3. C{“Welcome”, “to”, “Python”}
    4. D“Welcome”, “to”, “Python”
  10. 10To which of the following the “in” operator can be used to check if an item is in it?
    1. ALists
    2. BDictionary
    3. CSet
    4. DAll of the mentioned

Informationen

Beschreibung
Quiz am Online Test-Lists, erstellt von Aparna Dhirde am 17/03/2020.
Sprache
English
Aufrufe
92
Verlauf
Erstellt am 17 Mär 2020 · aktualisiert am 17 Mär 2020
Schlagwörter
xi
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck