Object-oriented programming (OOP) describes..., the properties of different objects , different classes and objects in a single unit, a style or model of programming that uses objects., a function that uses objects and classes, What is the meaning of object in programming ?, collection of data and methods as two different units., collection of data and methods as a single unit., classification of data and methods as a single unit., classification of data and methods as two different units, Choose the wrong description about class., a template or “blueprint” for creating an object., one class has only one object, involves in the making of mini battle game, if class = vegetables, then objects = carrot, brinjal, tomato, Syntax for creating a class is..., Class num =, class "fruit" :, class time ;, class Teacher :, If def __init__ (self, name): , the object could be..., Ali, Ali, 8 years old, Kelvin, 23 August 2009, Syazwan, Year 8, What is a "method" ?, An array of elements in a same class, All the objects in a same class, A variable used to represent an object, A function that belongs to a class / object, When p.walk(0, 7) is executed, the player..., walk 7 units right , walk 7 units down, walk 7 units up , walk 7 units left, Choose the correct statement., self can access variables from other class, self represents the other object in the same class, self parameter has no argument, self is passed as a shown parameter , enemy.takeDamage(10) means that..., enemy will absorb 10 HP from the player, enemy will lose HP by 10 after each damage, enemy will die when received damage of 10, enemy has only 10 HP left for now, When enemy is defeated, which code is not written ?, print("Enemy defeated!"), if (self.hp <= 0):, else, self.hp = 0, Choose the correct explanation about "attribute"., Attribute is actually a variable belongs to a class, We can only have one attribute in each class, No value is needed for attribute, attribute is named before "self", def __init__ (self, name, age): . Which of the following cannot be its value?, 23 years 6 months and 26 days , 23 years old , Jonathan, 3 November 2017.
0%
Coding Quiz (12) : Python OOP
Zdieľať
Zdieľať
Zdieľať
vytvoril(a)
Guanjie0807
Upraviť obsah
Tlač
Vložiť
Viac
Úlohy
Rebríček
Zobraziť viac
Zobraziť menej
Tento rebríček je v súčasnosti súkromný. Kliknite na
Share
, aby bol verejný.
Tento rebríček bol vypnutý vlastníkom prostriedku.
Tento rebríček je vypnutý, pretože vaše možnosti sa líšia od možností vlastníka prostriedku.
Vrátiť možnosti
Televízny kvíz
je šablóna s možnosťou rozšírenia. Nevytvára skóre pre rebríček.
Vyžaduje sa prihlásenie
Vizuálny štýl
Písma
Vyžaduje sa predplatné
Možnosti
Prepnúť šablónu
Zobraziť všetky
Pri prehrávaní aktivity sa zobrazia ďalšie formáty.
)
Otvorené výsledky
Kopírovať odkaz
QR kód
Odstrániť
Obnoviť automaticky uložené:
?