Search Header Logo

Quzi python- Szymon A

Authored by Szymon Augustynek

Computers

9th - 12th Grade

Used 1+ times

Quzi python- Szymon A
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zwraca funkcja sum_list([1, 2, 3])?

3

6

[1, 2, 3]

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaki będzie wynik wywołania is_in_list(5, [1, 2, 3, 4, 5])?

True

False

5

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Która linia kodu inicjuje pusty słownik?


dictionary = {}

dictionary = []

dictionary = set()

dictionary = ()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zwraca count_occurrences(['apple', 'banana', 'apple'])['apple']

1

2

3

apple

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Która linia kodu dodaje nową parę klucz-wartość do słownika?

dictionary.append('key', 'value')

dictionary['key'] = 'value

dictionary.add('key', 'value')

dictionary.insert('key', 'value')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zwróci create_dictionary(['a'], [1])['a']?

['a']

[1]

1

'a'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Która funkcja sprawdza, czy element jest w liście?

sum_list()

is_in_list()

count_occurrences()

create_dictionary()

Access all questions and much more by creating a free account

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

Already have an account?