
python2-lesson11
Quiz
•
Computers
•
2nd - 12th Grade
•
Practice Problem
•
Medium
hang zheng
Used 49+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
知識產權
Quiz
•
9th Grade
20 questions
Teste WINDOWS
Quiz
•
7th Grade
13 questions
RAM&HDD/SSD
Quiz
•
10th - 12th Grade
20 questions
倉頡輔助字型 (筆劃類)
Quiz
•
1st - 5th Grade
20 questions
Pengayaan Informatika
Quiz
•
12th Grade
10 questions
Пети разред квиз први
Quiz
•
5th Grade
20 questions
Materi TIK 7, Jenis-jenis File dan Folder
Quiz
•
7th Grade
16 questions
Scorciatoie Tastiera & Estensioni
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
