运行如下代码,若输入整数3,则最终输出的结果为?()

Python四级真题

Quiz
•
Computers
•
7th Grade
•
Hard

小星 翟
Used 1+ times
FREE Resource
47 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade