Unbetiteltes Quiz

Unbetiteltes Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

ESPD - Test de positionnement Veille 2022-2023

ESPD - Test de positionnement Veille 2022-2023

Professional Development

20 Qs

ACSCE Repaso Semana 1

ACSCE Repaso Semana 1

Professional Development

20 Qs

Sorular 11-20

Sorular 11-20

Professional Development

10 Qs

IT-Sicherheit nach Tag 2

IT-Sicherheit nach Tag 2

Professional Development

13 Qs

 Foundations of Deep Learning and Neural Networks

Foundations of Deep Learning and Neural Networks

Professional Development

16 Qs

React and Hooks

React and Hooks

Professional Development

10 Qs

ABREDES - Devasc Python

ABREDES - Devasc Python

Professional Development

14 Qs

GENERAL KNOWLEDGE

GENERAL KNOWLEDGE

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?