
Typy danych i zmienne w Pythonie
Authored by Ewelina F
Computers
9th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
13 questions
Architektura i zarządzanie systemem Windows 10
Quiz
•
9th - 12th Grade
10 questions
MS Excel էլեկտրոնային աղյուսակներ
Quiz
•
9th Grade
11 questions
J277 Programming - Data Types
Quiz
•
9th - 11th Grade
15 questions
Test WORD
Quiz
•
KG - University
11 questions
Grafika wektorowa
Quiz
•
9th Grade
12 questions
Informatyka 7
Quiz
•
1st - 12th Grade
12 questions
ICT
Quiz
•
9th Grade
14 questions
Unit 5: Input in Java
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade