问题 单项选择题


阅读下列程序说明和程序,在每小题提供的若干可选答案中,挑选一个正确答案。

【程序说明】 计算1~30之间能够被3整除的奇数的阶乘和。
【程序】
** 主程序
SET TALK OFF
S=0
FOR I=1 TO 30 STEP 2
IF (4)
(5)
S=S+N
ENDIF
ENDFOR
“1到30之间能被3整除的奇数阶乘和为:”+ (6)
SET TALK ON
RETURN
** 过程 P1.PRG
PARAMETERS M
(7)
N=1
FOR J=1 TO M
N=N*J
ENDFOR
(8)

A.STR(

B.VAL(

C.CHR(

D.DTOC(

答案

参考答案:A

解析: STR()是数据型转换成字符型函数,VAL()是字符串型转换成数值型函数,CHR()是 ASCII码转换成字符函数,DTOC()是日期转换成字符函数。

判断题
单项选择题

Strange things have been happening to England. Still (1) from the dissolution of the empire in the years (2) World War Ⅱ, now the English find they are not even British. As the cherished "United Kingdom" breaks into its (3) parts, Scots are clearly (4) and the Welsh, Welsh. But who exactly are the English What’s left of them, with everything but the (5) half of their island taken away

Going back in time to (6) roots doesn’t help. First came the Celts, then the Romans, then Angles, Saxons, Jutes, Danes. Invasion after invasion, until the Norman Conquest. English national identity only seemed to find its (7) later, on the shifting sands of expansionism, from Elizabethan times onwards. The empire seemed to seal it. But now there’s just England, (8) of a green island in the northern seas, lashed by rain, scarred by two (9) of vicious industrialization fallen (10) dereliction, ruined, as D.H. Lawrence thought, by "the tragedy of ugliness," its abominable architecture.

Of all English institutions, the one to (11) on would surely be the pub. Shelter to Chaucer’s pilgrims, home to Falstaff and Hal, throne of felicity to Dr. Johnson, the pub- that smoky, yeasty den of jollity-is the womb of (12) , if anywhere is. Yet in the midst of this national (13) crisis, the pub, the mainstay of English life, a staff driven (14) into the sump of history, (15) as the Saxons, is suddenly dying and evolving at (16) rates. Closing at something like a rate of more than three a day, pubs have become (17) enough that for the first time since the Domesday Book, more than half the villages in England no longer have one. It’s a rare pub that still (18) , or even limps on, by being what it was (19) to be: a drinking establishment. The old (20) of a pub as a place for a "session," a lengthy, restful, increasingly tipsy evening of swigging, is all but defunct.

11()

A.remember

B.count

C.raise

D.differentiate