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
Del
Del
Del
etter
Guanjie0807
Rediger innhold
Skriv ut
Innebygd
Mer
Tildelinger
Ledertavle
Vis mer
Vis mindre
Denne ledertavlen er for øyeblikket privat. Klikk
Share
for å gjøre den offentlig.
Denne ledertavlen er deaktivert av ressurseieren.
Denne ledertavlen er deaktivert fordi alternativene er forskjellige fra ressurseieren.
Alternativer for tilbakestilling
Quiz for spillshow
er en åpen mal. Det genererer ikke poengsummer for en ledertavle.
Pålogging kreves
Visuell stil
Skrifter
Krever abonnement
Alternativer
Bytt mal
Vis alle
Flere formater vises når du spiller av aktiviteten.
)
Åpne resultater
Kopier kobling
QR-kode
Slette
Gjenopprett automatisk lagring:
?