Unbetiteltes Quiz

Unbetiteltes Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

BẢNG CHỌN HOME

BẢNG CHỌN HOME

Professional Development

10 Qs

vectores,matrices,funciones

vectores,matrices,funciones

Professional Development

10 Qs

SPARK FIDDLE

SPARK FIDDLE

Professional Development

20 Qs

C Programming

C Programming

Professional Development

10 Qs

TEMA 8 MONT (MANTENIMIENTO) - PROFESOR

TEMA 8 MONT (MANTENIMIENTO) - PROFESOR

KG - Professional Development

20 Qs

C

C

Professional Development

20 Qs

QUIZ 1

QUIZ 1

Professional Development

10 Qs

LPC 16 Gaming Quiz

LPC 16 Gaming Quiz

Professional Development

15 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?