
Python四级真题

Quiz
•
Computers
•
7th Grade
•
Hard

小星 翟
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

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

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade