
python2-lesson11
Quiz
•
Computers
•
2nd - 12th Grade
•
Practice Problem
•
Medium
hang zheng
Used 48+ 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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Tin 10 - Tệp và thư mục
Quiz
•
10th Grade
10 questions
Prezentări electronice
Quiz
•
7th Grade
12 questions
PowerPoint 2016
Quiz
•
4th Grade
12 questions
Systemy plików II
Quiz
•
1st - 6th Grade
14 questions
2021-2022_P3_Chinies Typing_1
Quiz
•
3rd Grade
11 questions
Тестирование 7 класс информатика 2 четверть
Quiz
•
7th Grade
20 questions
ICT 倉頡輔助字型(T-Y)_練習P
Quiz
•
2nd - 3rd Grade
19 questions
ICT 倉頡輔助字型( H - N)_練習 P
Quiz
•
3rd Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
45 questions
Cybersecurity Quiz
Quiz
•
12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
20 questions
logo quiz
Quiz
•
3rd Grade
