精英家教网 > 高中地理 > 题目详情

【题目】一个算法步骤如下:

S1,S取值0,i取值1;

S2,如果i≤10,则执行S3,否则执行S6

S3,计算S+i并将结果代替S;

S4,用i+2的值代替i;

S5,转去执行S2

S6,输出S.

运行以上步骤后输出的结果S=( )

A.16 B.25 C.36 D.以上均不对

【答案】B

解析题意可知,此算法是求10以内的奇数的和,所以S=1+3+5+7+9=25,故选B.

练习册系列答案
相关习题

科目:高中地理 来源: 题型:

【题目】下列各句中,加横线的成语使用恰当的一句是

A.据有关资料表明,全球变暖使日本建筑物、农作物等受损所造成的经济损失不同凡响,每年最多可达8.73亿日元。

B.改革开放以来,我们单位面貌有了很大的变化,但与先进单位相比,那就黯然失色了。

C.张成不幸被敌人抓获,投入监狱,虽然全身被打得遍体鳞伤,但仍然坚守党的秘密。

D.一些不法商贩在早已过期食品的包装上略微改头换面,又拿出来出售,相关部门必须狠狠打击这种不法行为。

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】下列各句中,画线的成语使用不恰当的一句是

A在地方“专升本”的诸多利益诉求与冲动下,一些老牌高等专科学校改头换面加入综合性大学的群体,成为一批“四不像”大学。

B全球资本市场已有好转迹象,世界经济不像半年前那样陷于如履薄冰的危险境地,但是,今年的预期增幅不会较去年大幅上升。

C近日,提高语文作为母语学科重要地位的有关高考改革的言论,在母语教学被忽视的当下,真可谓空谷足音

D美国“监控门”事件触发的新风波不断升级,越来越多的国家开始抨击美国,其中不乏铁杆盟友,令美国左支右绌,理屈词穷。

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】仿照下列句子的形式,同样以潇洒开头,造两个类似的句子,组成排比句。

潇洒是不计他人之过,以大局为重的谦让宽容的生活态度,如蔺相如的潇洒。

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】下列词语中没有错别字的一组是

A.姿态 赏玩 即使 黄城人海

B.细腻 清闲 啼唱 尘沙灰土

C.囚系 幽囚 剪揖 偃苗助长

D.攀援 绿 开释 烽烟四逼

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】John has two brothers, but either out of work now.

A.are

B. is

C. has

D. have

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】下面各句全含通假字的一项是

A曰归曰归,岁亦莫止 不见复关,泣涕涟涟

B淇则有岸,隰则有泮 昔我往矣,杨柳依依

C尔卜尔筮,体无咎言 匪来贸丝,来即我谋

D于嗟鸠兮,无食桑葚 女之耽兮,不可说也

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】 My name is Clara. I still remember that chilly December day, sitting in science class. Id finished a worksheet early and picked up a TIME for Kids magazine. A piece of news caught my eye: NASA was holding an essay contest to name its Mars rover(火星探测器).Before I even knew anything else about it, a single word flooded my 11-year-old mind, Curiosity.

I couldn't want for the bell to ring so I could get started on my essay. That afternoon, I raced home, sat down at the computer, and typed until my fingers ached. Curiosity is an everlasting flame that burns in everyones mind...

Five months later, my mom received a phone call, and immediately, a wide smile spread across her face.

On August 5,2012,at 10:31 p.m, the rover named Curiosity touched down safely on the surface of Mars, and I was honored to have a front-row seat in NASA.

Curiosity is such an important part of who I am. I have always been fascinated by the stars, the planets, the sky and the universe. I remember as a little girl, my grandmother and I would sit together in the backyard for hours. Shed tell me stories and point out the stars, Grandma lived in China, thousands of miles away from my home in Kansas, but the stars kept us together even when we were apart. They were always there, yet there was so much I didn't know about them. Thats what I love so much about space.

People often ask me why we go to faraway places like Mares. My answer is simple because were curious. We human beings do not just hole up in one place. We are constantly wondering and trying to find out whats over the hill and beyond the horizon.

【1】How did Clara get the news about the essay contest?( no more than 10 words)

【2】Why did Clara have a front-row seat in NASA?( no more than 10 words)

【3】What does Clara remember about the time spent with Grandma?( no more than 15 words)

【4】What does the underlined phrase hole up mean?(1 word)

【5】In your opinion, why is curiosity important?( no more than 20 words)

查看答案和解析>>

科目:高中地理 来源: 题型:

【题目】将下面的短语组成两副七字对联,并填写在相应的横线上。

芝兰绕阶 黄牛耕地 翠柳迎春 桃李满目

千里绿 春绣锦 座凝香 万山金

新春对联 上联:__________________ 下联:___________________

教师办公室对联 上联:__________________ 下联:___________________

查看答案和解析>>

同步练习册答案