Co robi pole statyczne liczba_instancji w klasie Osoba?

Quiz o klasie Osoba

Quiz
•
Computers
•
3rd Grade
•
Medium

Justa Monia
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Przechowuje ID ostatniego utworzonego obiektu
Służy do przechowywania imienia domyślnego
Zlicza liczbę utworzonych instancji klasy
Przechowuje ID największego obiektu
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie wartości domyślne ma konstruktor __init__ w klasie Osoba?
None i None
-1 i ""
0 i ""
1 i "Anonim"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie modyfikatory dostępu mają pola __id i __imie?
Publiczne
Chronione (protected)
Prywatne (private)
Statyczne
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co robi metoda kopiuj w klasie Osoba?
Tworzy nowy obiekt na podstawie innego
Usuwa obiekt z pamięci
Kopiuje listę obiektów klasy Osoba
Przepisuje wartości __id i __imie z innego obiektu Osoba
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co się stanie, jeśli utworzymy 3 obiekty Osoba?
liczba_instancji będzie wynosić 1
liczba_instancji zostanie nadpisana i wyniesie 3
liczba_instancji będzie wynosić 0
liczba_instancji będzie wynosić 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jaką funkcję spełnia metoda przedstaw_sie?
Zwraca numer ID użytkownika
Wypisuje numer ID i imię użytkownika
Wypisuje komunikat w stylu "Cześć {imię}, mam na imię {moje imię}"
Zwraca liczbę instancji klasy
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak można uzyskać dostęp do liczby utworzonych obiektów klasy Osoba?
osoba1.liczba_instancji
osoba1.__liczba_instancji
Osoba.liczba_obiektow()
liczba_obiektow(Osoba)
Create a free account and access millions of resources
Similar Resources on Quizizz
41 questions
Test EE.09-SG-21.01

Quiz
•
3rd Grade
40 questions
PAS TLJ XI

Quiz
•
1st Grade - University
40 questions
IP Routing + OSPF

Quiz
•
1st - 12th Grade
35 questions
Database

Quiz
•
KG - University
41 questions
sprzęt komputerowy

Quiz
•
1st - 12th Grade
40 questions
Linux2 - Lesson 6 (exam training)

Quiz
•
1st - 10th Grade
36 questions
Router

Quiz
•
1st - 4th Grade
40 questions
Adm. Sistem Jaringan (ASJ) Kelas XI TKJ

Quiz
•
KG - Professional Dev...
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
Basement Basketball

Quiz
•
3rd Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
20 questions
Fun Trivia

Quiz
•
2nd - 4th Grade
20 questions
Context Clues

Quiz
•
3rd Grade
20 questions
Kids Movie Trivia

Quiz
•
3rd Grade
13 questions
Multiplication Facts Practice

Quiz
•
3rd Grade
20 questions
Silent e

Quiz
•
KG - 3rd Grade
6 questions
Alexander Graham Bell

Quiz
•
3rd Grade