python考级培训课后测验-day3

python考级培训课后测验-day3

2nd - 12th Grade

15 Qs

quiz-placeholder

Similar activities

3年級-電腦小天才

3年級-電腦小天才

3rd Grade

14 Qs

11302_01_個人資料保護(01)

11302_01_個人資料保護(01)

7th Grade

10 Qs

网络与通讯

网络与通讯

12th Grade

15 Qs

photocap

photocap

KG - University

10 Qs

資訊安全_如何分辨網路訊息真偽

資訊安全_如何分辨網路訊息真偽

7th - 8th Grade

10 Qs

NKNUBLOCK 流程圖教學進階版

NKNUBLOCK 流程圖教學進階版

5th Grade

10 Qs

112-2 一下 第三章 個資法與著作權

112-2 一下 第三章 個資法與著作權

7th Grade

10 Qs

G4_1st semester final Revision 期末复习

G4_1st semester final Revision 期末复习

4th Grade

18 Qs

python考级培训课后测验-day3

python考级培训课后测验-day3

Assessment

Quiz

Computers

2nd - 12th Grade

Easy

Created by

hang zheng

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python 自带的编程环境是?( )

PyScripter

Spyder

Notepad++

IDLE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

关于以下代码的说法正确的是?( ) t = int(turtle.textinput('边数','几边形:')) turtle.circle(50, steps=t) turtle.done()

circle 是画圆的代码,因此该程序运行后的图案一定是圆

运行该程序后,需要用户自己输入边数,确定画 “几边形”

变量 t 没有给出具体的数值,因此该程序运行有错误

该程序运行后,会画出 50 个圆

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

幂运算运算符为?( )

*

*+

**

/

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

这段代码的运行结果是?( )


import turtle

g = turtle.Pen()

g.fillcolor("red")

g.begin_fill()

g.circle(50)

g.pencolor("yellow")

g.fillcolor("green")

g.circle(50, steps=5)

g.end_fill()

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

假设 a=20,b=3,那么 a or b 的结果是?( )

20

0

1

3

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

假设 a=2,b=3,那么 a-b*b 的值是?( )

-3

-2

-7

-11

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

以下选项中不符合 Python 变量命名规则的是?( )

name

2_to

_Go

Tea

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?