
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
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
6 questions
New Terms

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

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

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade