
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
14 questions
网络与通讯2

Quiz
•
10th Grade - University
15 questions
网络与通讯

Quiz
•
12th Grade
10 questions
顺序结构复习

Quiz
•
10th Grade
10 questions
CyberSecurity Training - Quiz1

Quiz
•
1st - 5th Grade
10 questions
python2-lesson06

Quiz
•
2nd - 12th Grade
10 questions
NKNUBLOCK 流程圖教學進階版

Quiz
•
5th Grade
8 questions
基本控制结构

Quiz
•
1st - 9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade