
Python四级真题
Quiz
•
Computers
•
7th Grade
•
Hard
小星 翟
Used 1+ times
FREE Resource
Enhance your content in a minute
47 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
运行如下代码,若输入整数3,则最终输出的结果为?()
2
4
8
16
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
运行下列程序,输出的结果是?()
120
360
720
60
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列关于递归的描述不正确的是?()
递归函数一定包含if语句
递归函数体内一定包含调用自身的语句
在调用自身函数时需要明确的边界终止条件与边界值
递归算法一般代码简洁,执行效率高,空间复杂度低
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
运行下列程序,输出的结果是?()
3
6
12
123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
运行下列程序,输出的结果是?()
69
45
64
61
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
一个荷花池,第一天荷花开放得很少,第二天开放的数量是第一天的两倍,之后的每一天,荷花都会以前一天两倍的数量开放。如果到第30天,荷花就开满了整个池塘,设第一天开一朵,编程求第30天共开了多少朵荷花。下面空白处的代码填写正确的是?()
30,t=t*2
31,t=t*2
31,t+=2
30,t*=2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
解决下列问题时,时间复杂度最大的是?()
输入n个不同的包含两位小数的实数,计算这n个数的和
在n个数据中,查找数据k
将n个数据用冒泡排序实现排序
计算算式1-2+3-4+...-n的结果,n为偶数
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
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
