若某程序框图如图2所示,则该程序运行后输出的 B等于(    ) .A.

若某程序框图如图2所示,则该程序运行后输出的

B等于(    ) .

A.     B.     C.     D.

图2

 
 

答案

A   解析:当A=1时,B=2×1+1=3,当A=2时,B=2×3+1=7,当A=3时,B=2×7+1=15,当A=4时,B=2×15+1=31,当A=5时,B=2×31+1=63,当A=6时,输出结果B=63,故选A。

相关题目

下列句子中标点符号有误的一项是(    ) A、人的力量分两
下列句子中标点符号有误的一项是(    ) A、人的力量分两部分:一是生理上的力量,一是心理上的力量。 B、“一年之计在于春”,刚起头儿,有的是
Tom pretended ______ it;but in fact,he knew it very well. A.not to listen
Tom pretended ______ it;but in fact,he knew it very well. A.not to listen to B.not to hear about C.not to have heard about D.not to be listening to
下图为细胞融合过程,以下叙述正确的是             
下图为细胞融合过程,以下叙述正确的是                                                                        
It was not until midnight      they reached the camp site. A. that    
It was not until midnight      they reached the camp site. A. that            B. when C. while           D. as
 ---I hear you won’t go on a school trip with us.   ---Yes. my mother has
 ---I hear you won’t go on a school trip with us.   ---Yes. my mother has to _______, she is seriously ill. A. be taking care of     B. take care of    C. be taken care  D. be taken car
已知半径为1的动圆与圆(x-5)2+(y+7)2=16相切,则动圆圆心的
已知半径为1的动圆与圆(x-5)2+(y+7)2=16相切,则动圆圆心的轨迹方程是A.(x-5)2+(y+7)2=25B.(x-5)2+(y+7)2=17或(x-5)2+(y+7)2=15C.(x-5)2+(y+7)2=9D.(x-5)
None of the shoes in the shop fit me well. They are ____ too big ____ too small.
None of the shoes in the shop fit me well. They are ____ too big ____ too small.             A. both; and         B. either; or        C. not only; but also       D.
曾国藩是晚清一位极具争议的人物,但对他的家书,无论是
曾国藩是晚清一位极具争议的人物,但对他的家书,无论是欣赏他的人还是鄙视他的人都推崇备至。他的家书不仅是一部记录家常的书信集,更是一部

最新题目