Unbetiteltes Quiz

Unbetiteltes Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Gamefication in Learning

Gamefication in Learning

Professional Development

10 Qs

RYANS Library Quiz

RYANS Library Quiz

4th Grade - Professional Development

16 Qs

RPA KKEM session 03

RPA KKEM session 03

Professional Development

10 Qs

Computational Thinking

Computational Thinking

Professional Development

17 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

React_Beautiful_DND _1

React_Beautiful_DND _1

Professional Development

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Python set1

Python set1

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?