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
Chia sẻ
Chia sẻ
Chia sẻ
bởi
Guanjie0807
Chỉnh sửa nội dung
In
Nhúng
Nhiều hơn
Tập
Bảng xếp hạng
Hiển thị thêm
Ẩn bớt
Bảng xếp hạng này hiện đang ở chế độ riêng tư. Nhấp
Chia sẻ
để công khai bảng xếp hạng này.
Chủ sở hữu tài nguyên đã vô hiệu hóa bảng xếp hạng này.
Bảng xếp hạng này bị vô hiệu hóa vì các lựa chọn của bạn khác với của chủ sở hữu tài nguyên.
Đưa các lựa chọn trở về trạng thái ban đầu
Chương trình đố vui
là một mẫu kết thúc mở. Mẫu này không tạo điểm số cho bảng xếp hạng.
Yêu cầu đăng nhập
Phong cách trực quan
Phông chữ
Yêu cầu đăng ký
Tùy chọn
Chuyển đổi mẫu
Hiển thị tất cả
Nhiều định dạng khác sẽ xuất hiện khi bạn phát hoạt động.
)
Mở kết quả
Sao chép liên kết
Mã QR
Xóa
Bạn có muốn khôi phục tự động lưu:
không?