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
Teilen
Teilen
Teilen
von
Guanjie0807
Inhalt bearbeiten
Drucken
Einbetten
Mehr
Zuweisungen
Bestenliste
Mehr anzeigen
Weniger anzeigen
Diese Bestenliste ist derzeit privat. Klicke auf
Teilen
um sie öffentlich zu machen.
Diese Bestenliste wurde vom Eigentümer der Ressource deaktiviert.
Diese Bestenliste ist deaktiviert, da sich Ihre Einstellungen von denen des Eigentümer der Ressource unterscheiden.
Einstellungen zurücksetzen
Spielshow-Quiz
ist eine Vorlage mit offenem Ende. Es generiert keine Punkte für eine Bestenliste.
Anmelden erforderlich
Visueller Stil
Schriftarten
Abonnement erforderlich
Einstellungen
Vorlage ändern
Alle anzeigen
Weitere Formate werden angezeigt, wenn du die Aktivität spielst.
)
Offene Ergebnisse
Link kopieren
QR-Code
Löschen
Soll die automatisch gespeicherte Aktivität
wiederhergestellt werden?