首页/ 题库 / [单选题]有程序:ADD(X,Y)=X**2+YO的答案

有程序:ADD(X,Y)=X**2+YOPEN(8,FILE=‘F’,STATUS=‘NEW’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTED’,REAL=16DO10I=1,4D=ADD(REAL(I),2、0)WRITE(8,REC=I)D10CONTINUECLOSE(8)OPEN(2,FILE=‘F’,STATUS=‘OLD’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTFED’,REAL=6DO20I=2,4,2READ(2,REC=I)CWRITE(*,30)C20CONTINUE20FORMAT(1x,F4.1)CLOSE(2)END执行此程序的结果是:()

单选题
2021-12-27 23:53
A、3.0;11.0
B、6.0;11.0
C、6.0;18.0
D、11.0;18.0
查看答案

正确答案
C

试题解析
当打开一个新文件F.DAT后,共往里写了4条记录。每条记录分别按照定义的语句函数进行计算,第一条记录的值为3.0,第二条记录的值为6.0,第3条记录的值为11.0,第4条记录的值为18.0。按照循环语句只输出第2条及第4条记录的值,则应选择答案C。

相关题目
boost的意思是:help or encourage to increase or improve
eloquent的意思是:fluent or persuasive in speaking or writing

A campus emergency ______ occur at any time of the day or night, weekend, or holiday, with little or no warning.

建筑工程设计专业资质分为甲、乙、丙、丁四级,乙级工程设计专业资质的企业,其主要专业技术人员配备总计应为()人,其中一级注册建筑师和一级结构工程师各为2人。
注册结构工程师分为一级注册结构工程师和二级注册结构工程师。()
在应用ORS液的过程中,错误的做法是()
在应用ORS液的过程中,错误的作法是()
在应用ORS液的过程中,错误的是()
Mainly east 3 or 4 partly cloudy to overcast occasional rain()slowly south moderate or good.
()any case or suspected case of quarantinable disease,or any case of eruptive disease or any death be discovered,the local quarantine officer must be notified immediately.
Should any case or suspected case of quarantinable disease,or any case of eruptive disease or any death be discovered,the local Quarantine Officer must be()immediately.
Masters are()solely responsible for all damages or accidents of whatever kind resulting from the navigating or handling of their vessels by day or by night.
系统中雷达状态包括Unknown、Operational(or ON)、Failed(or OFF)、Detached。
拥有计算机一级B证书的计算机类专业学生,可以免考教育部全国网络教育公共课统一考试中的《计算机应用基础》。
The carrier is liable for loss of or damage to the goods or delay in delivery caused by fire,()the claimant proves that the fire arose from fault or neglect on the part of the carrier,his servants or agents.
Shutdown price(or point,or rule) 停业价格(或停业点、停业原则)
翻译:With Average or With Particular Average(WA or WPA)()
拥有计算机一级B证书的计算机类专业学生,可以免考教育部全国网络教育公共课统一考试中的《计算机应用基础》。
()shall be liable for loss of and damage to the Vessel and/or goods arising or resulting from inaccuracies in stating the description,quantity,weight,measurement or contents.
口服补液及时纠正脱水,应用ORS,说法正确的是()
广告位招租WX:84302438

免费的网站请分享给朋友吧