
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
Similar Resources on Wayground
10 questions
python

Quiz
•
9th - 12th Grade
11 questions
Temat C1 dla 1C

Quiz
•
9th - 10th Grade
16 questions
Informacijos kodavimas

Quiz
•
9th - 10th Grade
10 questions
Funkcje C++

Quiz
•
9th Grade
16 questions
Podstawy języka Python

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

Quiz
•
9th - 12th Grade
9 questions
Sortowanie bąbelkowe AI

Quiz
•
9th Grade
10 questions
Cyberbezpieczeństwo

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade