Mamy daną listę zdefiniowną kodem w Pythonie:
t = [2, 4, 8, 16, 32]; Jaką wartość ma t[-1]?
listy python-test
Quiz
•
Wacłąw Świdrak
•
Computers
•
1st Grade
•
6 plays
•
Medium
Student preview
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mamy daną listę zdefiniowną kodem w Pythonie:
t = [2, 4, 8, 16, 32]; Jaką wartość ma t[-1]?
0
zachowanie takiej operacji jest niezdefiniowane
2
32
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mamy daną listę zdefiniowaną kodem w Pythonie:
t = [ 'o', 'j', 'a', 'i', 'k' ]. Jakie słowo będzie
utworzone po złączeniu w jedno słowo wartości z listy
t[-1], t[3], t[1]?
m a i
k i j
o i j
i k a
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lista tab rozmiaru 3000 jest wypełniona kolejnymi
liczbami parzystymi, przy czym tab[0] = 2, tab[1] = 4,
itd. Jaka wartość znajduje się pod indeksem 2019?
2019
4036
4040
4121
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chcemy posortować wszystkie elementy listy tab rosnąco. W języku Python zrobimy to:
tab.sort()
sort(tab)
sort(tab, tab+len(tab))
tab = sorted(tab)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co zwróci L1[-3:-1] gdy L1 = [2, 'Jan Kowalski', 5, 3.14, 'Alina Kowalska']
['Jan Kowlaski', 5, 3.14]
Element startowy i końcowy nie mogą być liczbami ujemnymi
[5,3.14]
[]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pod jakim indeksem znajduje się ostatni element listy zadeklarowanej kodem w języku Python tablica = [1, 2, 3, 4, 5, 6]
4
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chcemy posortować wszystkie elementy listy tab malejąco. W języku Python zrobimy to
lista.sort(reverse)
lista.sort(reverse=True)
lista.sort(reverse=False)
lista.sort(True)
Explore all questions with a free account
10 questions
Fruits
Quiz
•
1st - 12th Grade
16 questions
Uprawnienia użytkowników w SQL, ciasteczka, sesje
Quiz
•
1st - 6th Grade
10 questions
Ms Word: Formatting Text & Image
Quiz
•
1st - 12th Grade
15 questions
4 Paint
Quiz
•
1st - 5th Grade
14 questions
quiz o mnie esz
Quiz
•
1st Grade
15 questions
Basic Microsoft Word
Quiz
•
1st Grade - Professio...
15 questions
Exploring Microsoft Word Interface
Quiz
•
1st - 2nd Grade
13 questions
MS Word
Quiz
•
1st Grade
19 questions
Naming Polygons
Quiz
•
3rd Grade
14 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review
Quiz
•
4th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
16 questions
Academic Olympics: National Parks
Quiz
•
1st - 5th Grade
12 questions
Summer Trivia
Quiz
•
1st - 5th Grade
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
12 questions
Pixar Movies!
Quiz
•
KG - 5th Grade
15 questions
goods and services
Quiz
•
1st Grade
7 questions
Life Science: Ecosystems
Interactive video
•
1st - 6th Grade
10 questions
2D and 3D shapes
Quiz
•
1st Grade
20 questions
2D and 3D shapes
Quiz
•
1st Grade