
python2-lesson10
Authored by hang zheng
Computers
2nd - 12th Grade
Used 58+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
11 questions
Sample Homework Quiz: Mandarin & English
Quiz
•
6th - 12th Grade
10 questions
五年級數位影像
Quiz
•
5th - 7th Grade
9 questions
陣列概念複習
Quiz
•
8th Grade
10 questions
Scratch3小小程式設計師L1~L2
Quiz
•
5th - 6th Grade
10 questions
資訊安全
Quiz
•
7th Grade
10 questions
Scratch基礎測驗01
Quiz
•
3rd - 6th Grade
10 questions
11301_電腦教室使用規範
Quiz
•
7th Grade
15 questions
資訊科技的負面影響與應對
Quiz
•
8th 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