Search Header Logo

5-函数

Authored by Yilin Chen

Computers

University

Used 22+ times

5-函数
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

20 sec • 1 pt

下列定义函数的方式正确的是:

Func PyFunc():

def 2MyFunc():

def get_name():

def import():

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

导入模块的命令为

load

library

import

input

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

已知B = lambda x,y,z:(x+2)**y-z,请问print(B(3,2,5))的输出结果为:

5

20

31

程序报错

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

已知下列函数myFunc,请问myFunc(-3,5)的返回结果为

-11

1

13

32

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

根据下图中所示,输出的结果为:

8

10

12

None

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

根据下图中所示,输出的结果为:

8 16

8 18

16 16

16 18

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

根据下图中所示,输出的结果为:

1

20

24

120

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?