题目内容

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

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.

练习册系列答案
相关题目

【题目】 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)

违法和不良信息举报电话:027-86699610 举报邮箱:58377363@163.com

精英家教网