Unbetiteltes Quiz

Unbetiteltes Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

220-1101 Chapter 1

220-1101 Chapter 1

Professional Development

17 Qs

MW Wiederholung

MW Wiederholung

Professional Development

10 Qs

C Language Quiz-1

C Language Quiz-1

University - Professional Development

15 Qs

Python Module 1

Python Module 1

University - Professional Development

13 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

Inhaltsverwaltung mit CMS Quiz

Inhaltsverwaltung mit CMS Quiz

Professional Development

12 Qs

Basic of Programming - Quiz 02

Basic of Programming - Quiz 02

University - Professional Development

15 Qs

PYTHON QUIZ2

PYTHON QUIZ2

University - 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?