Quiz
Online Test-Lists
Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.
Fragen in diesem Quiz (10)
1Slicing is used to extract a part of the list.
- ARichtig
- BFalsch
2Single element is not treated as list.
- ARichtig
- BFalsch
3List is enclosed in curly brackets.
- ARichtig
- BFalsch
4Operator & concatenates one list to the end of other list.
- ARichtig
- BFalsch
5Operator * repeats the content of a list by specified number of times.
- ARichtig
- BFalsch
6Which of the following commands will create a list?
- Alist1 = list()
- Blist1 = []
- Clist1 = list([1, 2, 3])
- Dall of the mentioned
7Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
- A[2, 33, 222, 14]
- BError
- C25
- D[25, 14, 222, 33, 2]
8Suppose list1 is [1, 3, 2], What is list1 * 2?
- A[2, 6, 4]
- B[1, 3, 2, 1, 3]
- C[1, 3, 2, 1, 3, 2]
- D[1, 3, 2, 3, 2, 1]
9What will be the output of the following Python code?
>>>"Welcome to Python".split()- A[“Welcome”, “to”, “Python”]
- B(“Welcome”, “to”, “Python”)
- C{“Welcome”, “to”, “Python”}
- D“Welcome”, “to”, “Python”
10To which of the following the “in” operator can be used to check if an item is in it?
- ALists
- BDictionary
- CSet
- DAll of the mentioned
Informationen
- Beschreibung
- Quiz am Online Test-Lists, erstellt von Aparna Dhirde am 17/03/2020.
- Autor
- Aparna Dhirde
- Sprache
- English
- Aufrufe
- 92
- Verlauf
- Erstellt am 17 Mär 2020 · aktualisiert am 17 Mär 2020
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz