
python2-lesson10

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

hang zheng
Used 57+ times
FREE Resource
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
Similar Resources on Wayground
6 questions
New Terms

Quiz
•
2nd Grade
7 questions
西方美术史

Quiz
•
9th Grade
5 questions
mBot Q&A2-選擇結構

Quiz
•
9th - 12th Grade
10 questions
认识电脑硬体

Quiz
•
10th - 12th Grade
8 questions
學術薈萃日 《基本法》 Set 3

Quiz
•
10th Grade
8 questions
c++ basic 測驗

Quiz
•
6th - 8th Grade
10 questions
RBT基本控制结构

Quiz
•
5th Grade
10 questions
交换机课堂测试

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
20 questions
logo quiz

Quiz
•
3rd Grade
11 questions
Spanish - English Cognates 4th

Quiz
•
4th - 5th Grade