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
af
Guanjie0807
Rediger indhold
Trykke
Integrere
Mere
Tildelinger
Rangliste
Vis mere
Vis mindre
Denne rangliste er i øjeblikket privat. Klik på
Del
for at gøre det offentligt.
Denne rangliste er deaktiveret af ressourceejeren.
Denne rangliste er deaktiveret, da dine muligheder er forskellige fra ressourceejerens.
Indstillinger for gendannelse
Gameshow quiz
er en åben skabelon. Det genererer ikke resultater for en rangliste.
Log ind påkrævet
Visuel stil
Skrifttyper
Kræver abonnement
Indstillinger
Skift skabelon
Vis alle
Der vises flere formater, mens du afspiller aktiviteten.
)
Åbne resultater
Kopiér link
QR-kode
Slette
Gendan automatisk gemt:
?