Do wyświetlania służy funkcja

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
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
Similar Resources on Quizizz
11 questions
Temat C1 dla 1C

Quiz
•
9th - 10th Grade
12 questions
Python_4

Quiz
•
9th - 12th Grade
15 questions
Pętla for i while

Quiz
•
9th - 12th Grade
18 questions
Arkusz kalkulacyjny i korespondencja seryjna

Quiz
•
1st - 10th Grade
10 questions
Podstawy Pythona

Quiz
•
9th - 12th Grade
10 questions
Wstęp do programowania

Quiz
•
9th - 12th Grade
16 questions
data bases tech klasa 1

Quiz
•
9th Grade
14 questions
Quiz o programie SCRATCH

Quiz
•
5th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University