
python2-lesson11

Quiz
•
Computers
•
2nd - 12th Grade
•
Medium

hang zheng
Used 48+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
已知有一个文件 test.py,现在想要导入该文件的所有内容,下列代码正确的是?
import test.py
import test
import test module
import module test
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
当A.py作为主动运行的文件时,文件中的__name__变量的值应该是?
main
__main__
--main--
A
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
当A.py不是主动启动,而是作为一个被导入的模块启动时,此时它的__name__变量的值是?
--main--
__main__
A
__A__
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
导入一个模块,会自动先去执行这个模块中的所有代码
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
在python中,模块和库的概念是一样的
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
python中,一个python文件就可以被当做一个模块
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
一个模块只要存在,无论他在任何地方,只要通过 import 模块名 都可以直接将这个模块导入
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
六年级TMK 单元3 编程与测试

Quiz
•
6th Grade
16 questions
scratch介面

Quiz
•
7th Grade
12 questions
Scratch介绍与动画基础

Quiz
•
3rd - 6th Grade
15 questions
第四章:输入装置

Quiz
•
10th Grade
15 questions
109 第二學期 資訊科技 3-1 (2)

Quiz
•
7th Grade
12 questions
S07.2 常见的应用软体

Quiz
•
10th Grade
18 questions
S08.2 作业系统

Quiz
•
11th Grade
16 questions
网络安全知识竞赛—网络素养

Quiz
•
4th - 6th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
16 questions
4.2 Private & Personal Information

Lesson
•
4th Grade