Uzupełnij kod tak aby program który wczyta liczbę, sprawdzi, czy jest to liczba parzysta czy nieparzysta.
(a) = int(input('Podaj liczbę'))
if x (b) 2 (c) 0:
print('PARZYSTA')
(d) :
print('NIEPARZYSTA')
Python if / else
Quiz
•
Computers
•
•
Medium
Jacek Daniel
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
DRAG AND DROP QUESTION
2 mins • 4 pts
Uzupełnij kod tak aby program który wczyta liczbę, sprawdzi, czy jest to liczba parzysta czy nieparzysta.
(a) = int(input('Podaj liczbę'))
if x (b) 2 (c) 0:
print('PARZYSTA')
(d) :
print('NIEPARZYSTA')
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Który zapis sprawdza czy zmienna A jest równa zmiennej B
A == B
A = B
A => B
a = b
a == b
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Który operator określa się mianem "różny"
==
!=
=!
><
<=>
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Jaki symbol powinien być na końcu wiersza zapoczątkowanego zwrotem if
:
==
,
=
nic nie wstawiamy
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jaki będzie wynik działania programu:
wyświetli się napis - Jesteś pełnoletni
wyświetli się napis - Jesteś nieletni
Nic się nie wyświetli
Wyświetli się błąd
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jaki będzie wynik działania programu:
prawda
fałsz
kod nie jest poprawny - pojawi się błąd
5
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Jeśli chcesz więcej niż jedną możliwość w instrukcji warunkowej if, to której komendy powinieneś użyć ?
if
elif
else
ifel
15 questions
Scratch programowanie
Quiz
•
3rd Grade
15 questions
Excel powtórzenie 2020
Quiz
•
6th Grade
15 questions
kartkówka - petle for i while w języku Python
Quiz
•
12th Grade
15 questions
Python powtórka ze składni
Quiz
•
1st - 2nd Grade
15 questions
Scratch - skrypty kl. 5
Quiz
•
7th - 8th Grade
12 questions
Algorytmy tekstowe - kartkówka
Quiz
•
12th Grade
14 questions
MS Excel - kl.8
Quiz
•
8th Grade
13 questions
minecraft (1.16)
Quiz
•
1st - 10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade