
Typy danych i zmienne w Pythonie
Quiz
•
Computers
•
9th Grade
•
Hard
Ewelina F
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Do wyświetlania służy funkcja
print()
input()
int()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakiego typu jest ten literał?
3.5
int
float
bool
str
Answer explanation
To oczywiście liczba zmiennoprzecinkowa
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co pojawi się na ekranie po wykonaniu tego kodu?
print(3>3)
false
False
True
Nieprawda
Answer explanation
Liczba 3 nie jest oczywiście większa niż liczba 3. Na ekranie pojawi się napis False zawsze pisany wielką literą.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co pojawi się na ekranie po wykonaniu tego kodu?
print(3=="3")
Fałsz
Prawda
False
Nieprawda, że to nieprawda
Answer explanation
Liczba 3 to nie jest to samo co napis "3". Pierwszy argument tego porównania to liczba całkowita 3. Drugim argumentem jest łańcuch znaków o zawartości "3" i w tym wypadku nie ma on wartości liczbowej.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co pojawi się na ekranie po wykonaniu tego kodu?
print(10/2)
10/2
5
5.0
ZeroDivisionError: division by zero
Answer explanation
/ to operator dzielenia. Wynikiem będzie zawsze liczba zmiennoprzecinkowa - nawet jeżeli argumentami są liczby całkowite.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Który z poniższych nie jest prawidłowym typem danych w języku Python?
str
int
float
NoneType
char
Answer explanation
W niektórych językach programowania (np. C++) istnieje typ znakowy - char. W języku Python takiego nie ma.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
co będzie wynikiem kodu:
x = 3.23
print(x)
x
błąd
3.23
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Jak zadbać o swój wizerunek w sieci
Quiz
•
5th - 12th Grade
15 questions
Intro to Java Loops
Quiz
•
9th - 12th Grade
10 questions
“Классная” работа с динамической памятью
Quiz
•
9th Grade
17 questions
Translators
Quiz
•
9th - 12th Grade
10 questions
Evaluating Web Resources
Quiz
•
4th - 12th Grade
15 questions
Microbit (python)
Quiz
•
8th - 10th Grade
11 questions
Internet
Quiz
•
1st - 12th Grade
10 questions
Little Man Computer
Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
