
python2-lesson10
Quiz
•
Computers
•
2nd - 12th Grade
•
Practice Problem
•
Medium
hang zheng
Used 58+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
下列代码,能够进行不换行输出的是?
print(123)
print(123,end="")
print(123,end="\n")
print(end="",123)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
使用双重for循环输出*图案时,外层循环和内层循环分别控制什么?
外层循环控制行数,内层循环控制列数
外层循环控制列数,内层循环控制行数
循环次数和行数列数无关
外层循环既可以控制行数也可以控制列数,和内层循环无关
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行上图中代码,程序会输出一个几行几列的*图形
3行3列
10行10列
3行10列
10行3列
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
观察上述代码,外层循环执行1次,内层循环会执行多少次?
1
10
3
0
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
观察上述代码,蓝框中的print()函数有什么作用?
输出一个空格,使*之间有空隙,更加美观
输出完一行的内容之后,起到换行的作用
没有什么作用,可以删除
整个图形输出完成之后,进行1次换行
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
运行上图中的代码,程序最后会输出多少行"西瓜"?
3行
10行
50行
150行
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
如图,这是一个三重循环,请问,写在蓝框中的代码,需要缩进多少个空格?
4
8
12
16
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
10 questions
常識 4B冊 第六課 網絡通訊與安全
Quiz
•
4th Grade
13 questions
排序法複習
Quiz
•
7th - 9th Grade
14 questions
05_001システム構成
Quiz
•
12th Grade
14 questions
4年级华文第二课词汇意思
Quiz
•
1st - 10th Grade
11 questions
2223_S4_ICT_1stExam_MCQ_Ex3
Quiz
•
9th - 12th Grade
10 questions
11302_04_程式概念(01)
Quiz
•
7th Grade
9 questions
4年级设计与工艺单元6电脑编程,我最行
Quiz
•
4th Grade
10 questions
台中市三年級資訊2-01瀏覽器的使用-01悠遊地球村
Quiz
•
3rd - 4th 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
