Unbetiteltes Quiz

Unbetiteltes Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Esquema funcional i estructura d'un ordinador (Tema1)

Esquema funcional i estructura d'un ordinador (Tema1)

Professional Development

12 Qs

Prüfungsvorbereitung II

Prüfungsvorbereitung II

Professional Development

19 Qs

Netzwerke 2.0 JARD

Netzwerke 2.0 JARD

Professional Development

17 Qs

Dictionaries und Datentypen in Python

Dictionaries und Datentypen in Python

Professional Development

10 Qs

IP Addressing

IP Addressing

10th Grade - Professional Development

15 Qs

MW Wiederholung

MW Wiederholung

Professional Development

10 Qs

PYTHON ::04

PYTHON ::04

University - Professional Development

17 Qs

Sequences-2

Sequences-2

Professional Development

10 Qs

Unbetiteltes Quiz

Unbetiteltes Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Stefan Bruns

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was ist die korrekte Syntax, um ein Dictionary zu definieren?
d = ["a": True, "b": 42, "c": "Hi"]
d = {"a", True, "b", 42, "c", "Hi"}
d = {"a": True, "b": 42, "c": "Hi"}
d = dict("a": True, "b": 42)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie entfernst du ein Element mit dem Schlüssel 'b' aus einem Dictionary d?
d.remove('b')
d.pop('b')
del d('b')
d.delete('b')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was macht dict.fromkeys(['a', 'b'], 0)?
{'a': 0, 'b': 0}
{'a': None, 'b': None}
['a': 0, 'b': 0]
{'a': '0', 'b': '0'}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welche Methode gibt den Wert eines Schlüssels zurück oder einen Standardwert, wenn der Schlüssel nicht existiert?
get()
default()
find()
fetch()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welche Methode löscht alle Einträge in einem Dictionary?
remove()
clear()
delete()
reset()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie kannst du zwei Dictionaries a und b zu einem neuen zusammenführen?
c = a + b
c = a | b
c = merge(a, b)
c = a.combine(b)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie erhältst du alle Schlüssel eines Dictionaries d?
d.keys()
d.allkeys()
d.getkeys()
keys(d)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?