Zbiory w języku Python

Zbiory w języku Python

12th Grade

12 Qs

quiz-placeholder

Similar activities

Access - kwerendy 2

Access - kwerendy 2

12th Grade

15 Qs

Python - Osnove objektno usmjerenog programiranja

Python - Osnove objektno usmjerenog programiranja

12th Grade

16 Qs

Pętle, instrukcje warunkowe

Pętle, instrukcje warunkowe

9th - 12th Grade

12 Qs

SQL - strukturalny język zapytań

SQL - strukturalny język zapytań

9th Grade - University

15 Qs

Power Point klasa V

Power Point klasa V

4th Grade - University

14 Qs

Programowanie obiektowe - test

Programowanie obiektowe - test

12th Grade

10 Qs

CSS

CSS

1st Grade - Professional Development

15 Qs

Obiekty w JS

Obiekty w JS

12th Grade

17 Qs

Zbiory w języku Python

Zbiory w języku Python

Assessment

Quiz

Created by

Dawid Pindel

Computers

12th Grade

1 plays

Hard

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jakie operacje można wykonywać na zbiorach w języku Python?

Dzielenie elementów

Mnożenie elementów

Odejmowanie elementów

Dodawanie elementów

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jakie jest główne ograniczenie dotyczące wartości w zbiorach?

Mogą zawierać tylko liczby całkowite

Mogą zawierać tylko wartości ujemne

Mogą zawierać tylko unikalne wartości

Mogą zawierać tylko wartości parzyste

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak utworzyć pusty zbiór w języku Python?

a = {}

a = set()

a = []

a = ()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zwraca funkcja len() w przypadku zbioru?

Różnicę elementów

Sumę elementów

Iloczyn elementów

Liczność elementów

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jakie są podstawowe operacje, które można wykonywać na zbiorach w języku Python?

Mnożenie

Część wspólna, suma, różnica

Dodawanie

Dzielenie

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak dodać nowy element do zbioru?


Metoda add()

Metoda insert()

Metoda update()

Metoda append()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co zostanie wyświetlone po dodaniu elementu 'd' do zbioru x?

{'d', 'c', 'b', 'a'}

{'a', 'c', 'b', 'd'}

{'a', 'b', 'c'}

{'a', 'c', '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?