Search Header Logo

面向对象 类

Authored by 昀浩 管

Computers

University

Used 1+ times

面向对象 类
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

定义类的关键字是

class

def

int

float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

定义类的时候 类名称首字母需要大写

正确

错误

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

定义新类的时候 类名称后面要加括号

正确

错误

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

定义类的属性时 使用的方法是

__init__()

__name__

__main__

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

定义类的属性和方法时 第一个参数是

(a)  

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在继承父类所有属性时 用的方法是

super().__init__()

super.__init__()

super.__init__

super.__init__()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

类的继承会继承父类所有的属性

正确

错误

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?