给出一个算法:     Read x     If  x≤0  Then     f(x)← 4x     Else

给出一个算法:

    Read x

    If  x≤0  Then

    f(x)← 4x

    Else

    f(x)←2 x

    End  If

    Print  f(x)

    根据以上算法,可求得f(—3)+f(2)的值为           ·             

答案

-8


解析:

:由题意:∴f(-3)+f(2)=-8

点评:本题考查算法、分段函数,属于容易题

相关题目

Now that she is out of job, Lucy ____ going back to school, but she hasn’t dec
Now that she is out of job, Lucy ____ going back to school, but she hasn’t decided yet.    A. had considered    B. has been considering  C. considered  D. is going to consider
下列属于文化形式的有(   ) ①思想    ②理论    ③信
下列属于文化形式的有(   ) ①思想    ②理论    ③信仰    ④法律    ⑤文学    ⑥政治 A.①②③⑥    B.①②③⑤    C.①②⑤⑥    D.①
2010年10月 17日,中国第三届花鼓灯歌舞节暨蚌埠投资贸易洽
2010年10月 17日,中国第三届花鼓灯歌舞节暨蚌埠投资贸易洽谈会在安徽蚌埠市开幕。花鼓灯跻身首批国家级非物质文化遗产。蚌埠市通过多年的努力探
水稻是喜温植物,春季育秧时,通常傍晚向秧田灌水,早晨
水稻是喜温植物,春季育秧时,通常傍晚向秧田灌水,早晨将水放出,以防霜冻.隐含的物理知识是,水的           较大.气温降低时,水能  
某年,清政府户部奏议说:“就中国目前财力而论,实属万
某年,清政府户部奏议说:“就中国目前财力而论,实属万不能堪。然而和议既成,赔款已定,无论如何窘急,必须竭力支持。”同时,“很多汉人目
A、B两列火车在同一轨道上同向行驶,A在前,速度为vA=10m/s,
A、B两列火车在同一轨道上同向行驶,A在前,速度为vA=10m/s,B在后,速度为vB=30m/s.因大雾能见度低,B车在距A车500m时,才发现前方有A车.这时B车立即刹
Many years ago, there was a family named Franklin. They lived in Boston. There w
Many years ago, there was a family named Franklin. They lived in Boston. There were five girls and six boys in the family. On a January day in 1706 another baby was born. The boy's mother and her hus
“Cambridge” is a famous university ___ a long history. A. for   B. on  
“Cambridge” is a famous university ___ a long history. A. for   B. on     C. together       D. with

最新题目