网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
SET TALK OFF CLEAR USE 学生 ACCEPT ""请输入学生学号:"" TO XH LOCATE FOR 学号=XH IF !EOF( ) REPLACE ALL 奖学金 WITH奖学金+10 ? 学号,姓名,奖学金 ELSE ?""没有找到!"" ENDIF USE SET TALK ON 以上程序的功能是()
- A、将“学生”表中指定学生的奖学金都替换成10,并显示该学生的学号、姓名、奖学金
- B、将“学生”表中指定学生的奖学金加10,并显示该学生的学号、姓名、奖学金
- C、将“学生”表中所有学生的奖学金都替换成10,并显示学生的学号、姓名、奖学金
- D、将“学生”表中指定学生的奖学金加10%,并显示该学生的学号、姓名、奖学金
参考答案
更多 “ SET TALK OFF CLEAR USE 学生 ACCEPT ""请输入学生学号:"" TO XH LOCATE FOR 学号=XH IF !EOF( ) REPLACE ALL 奖学金 WITH奖学金+10 ? 学号,姓名,奖学金 ELSE ?""没有找到!"" ENDIF USE SET TALK ON 以上程序的功能是()A、将“学生”表中指定学生的奖学金都替换成10,并显示该学生的学号、姓名、奖学金B、将“学生”表中指定学生的奖学金加10,并显示该学生的学号、姓名、奖学金C、将“学生”表中所有学生的奖学金都替换成10,并显示学生的学号、姓名、奖学金D、将“学生”表中指定学生的奖学金加10%,并显示该学生的学号、姓名、奖学金” 相关考题
考题
有如下一段程序: SET TALK OFF A=1 B=0 DO WHILE A<=100 IF.NOT.A/2=INT(A/2) B=B+A ENDIF A=A+1 ENDDO ? B SET TALK ON RETURN 该程序的功能是______。A.求1~100之间的累加和B.求1~100之间的累加和除以2的商C.求1~100之间的偶数之和D.求1~100之间的奇数之和
考题
考生文件夹下有一个表“成绩.dbf”,使用菜单设计器制作一个名为“cd1”的菜单,菜单只有一个“成绩统计”子菜单。“成绩统计”菜单中有“学生平均成绩”、“课程平均成绩”和“关闭”3个子菜单:“学生平均成绩”子菜单统计每位学生的平均成绩;“课程平均成绩”子菜单统计每门课程的平均成绩;“关闭”子菜单使用SET SYSMENU TO DE-FAULT来返回系统菜单。 (2)有如下命令序列,其功能是根据输入的考试成绩显示相应的成绩等级。 SET TALK OFF CLEAR INPUT”请输入考试成绩:”TO cj Di=iiI(cj60,”不及格”,iif(cj=90,”优秀”,iif(cj =80,”良好”,”及格”))) ??”成绩等级为:”+dj SET TALKN 请编写程序“cx2.prg”,用DO CASE型分支结构实现该命令程序的功能。
考题
设有如下程序文件: SET TALK OFF CLEAR DIMENSION a(2,3) i=1 DO WHILE i<=2 j=1 DO WHILE j<=3 a(i,)=i+j ??a(i,j) j=j+1 ENDDO ? i=i+1 ENDDO SET TALK ON RETURN 执行此程序,程序的运行结果为A.2 3 4 3 4 5B.1 2 3 3 4 5C.1 2 3 2 4 6D.2 3 4 4 5 6
考题
设CJ.DBF数据库有2条记录,内容如下: Record # XM EF 1 李四 550.00 2 张三 750.00 程序如下: SET TALK OFF USE CJ M->EF=0 DO WHILE.NOT.EOF() M->EF=M->EF+EF SKIP ENDDO ?M->EF RETURN 该程序执行的结果是A.1300B.1000C.1600D.1200
考题
数据库文件$TU.DBF,” 姓名“字段均为学生全名,执行下列命令序列中最后一条?命令显示( )。 USE STU INDEX ON姓名TO STUI SET TALK OFF FIND李 DISPLAY姓名,性别 RECORD# 姓名,性别 1 李涛 男 SET EXACT ON FIND李 ?EOF()A..F.B..T.C.0D.1
考题
执行如下程序,最后S的显示值为 SET TALK OFF S=0 i=5 X=11 DO WHILE S<=x S=S +i I = I +l ENDDO ?s SET TALK ONA.5B.11C.18D.26
考题
有如下程序: SET TALK OFF M=O N=O DO WHILE NM M-M+N N=N-10 ENDDO ?M RETURN 运行此程序显示M的值( )。A.0B.10C.100D.99
考题
有如下一段程序: SET TALK OFF AY="Hello World!" BY="X" CY=ASC(BY)+1 DY=30 EY=CHR(DY*2+5)+CHR(CY) EY=EY ?"EY." SET TALK ON RETURN 执行该程序后,屏幕显示的结果为A.AYB.BYC.Hello World!D.程序出错
考题
执行如下程序,最后S的显示值为( )。 SET TALK OFF s=0 i=2 x=10 DO WHILE s一一X S=S+i i=i十l ENDDO ?S SET TALK ONA.12B.14C.16D.18
考题
执行如下程序,最后s的显示值为 SET TALK OFF S=0 i=5 x=11 DO WHILE s=x s=s+i i=i+l ENDD0 7 S SET TALK ONA. 5B. 11C. 18D. 26
考题
下列程序的运行结果是 SET TALK OFF STORE 0 TO S N=20 DO WHILE N>S S=S+N N=N-2 ENDDO ?S RETURNA.0B.2C.20D.18
考题
数据库文件STU。DBF,“姓名”字段均为学生全名,执行下列命令序列中最后一条?命令显示( )。 USE STU INDEX ON姓名TO STU1 SET EXACT OFF FIND李 DISPLAY姓名,性别 RECORD#姓名,性别 1 李涛 男 SET EXACT ON FIND李 ?EOF()A.FB.TC.OD.1
考题
执行下列程序: CLEAR SET TALK OFF STORE 1 TO i,a,b DO WHILE i<=3 DO PROG1 ??"P("+STR(i,1)+")="+STR(a,2)+"," i=i+1 ENDDO ??"b="+STR(b,2) RETURN PROCEDURE PROGl a=a*2 b=b+a SET TALK ON RETURN 程序的运行结果为A.P(1)=2,P(2)=3,P(3)=4,b=15B.P(1)=2,P(2)=4,P(3)=6,b=8C.P(1)=2,P(2)=4,P(3)=6,b=18D.P(1)=2,P(2)=4,P(3)=8,b=15
考题
有如下一段程序: SET TALK OFF A=1 B=0 DO WHILE A<=100 IF.NOT.A/2=INT(A/2) B=B+A ENDIF A=A+1 ENDDO ?B SET TALK ON RETURN 该程序的功能是A.求1到100之间的累加和B.求1到100之间的累加和除以2的商C.求1到100之间的偶数之和D.求1到100之间的奇数之和
考题
【程序说明】 设有表文件“职工.DBF”(有字段:职工编号、姓名、民族)和“工资.DBF”(有字段:职工编号、工资),要在它们之间建立逻辑连接,然后为每个少数民族职工的工资增加 200元,最后显示全体职工的职工编号、姓名和工资。【程序】SET TALK OFFSELECT 1USE 职工 (5) TO ZGBHSELECT 2USE 工资SET RELATION TO (6)REPLACE 工资 WITH (7) FOR (8)LIST职工编号, (9) ,工资SET RELATION TOCLOSE DATASET TALK ONRETURN(5)A.INDEX ON 姓名B.INDEX TO 职工编号C.INDEX ON 职工编号D.INDEX ON 职工编号 OF ZGBH
考题
执行下列程序,最后S的显示值为( )。 SET TALK OFF s=0 i=2 x=10 DO WHILE s<=x s=s+i i=i+1 ENDDO ?s SET TALK ONA.12B.14C.16D.18
考题
在数据库应用系统中,为数据安全使用口令程序。要使输入的口令不在屏幕上显示,在口令输入命令的前后应分别使用命令()A、SET CONSOLE ON和SET CONSOLE OFFB、SET CONSOLE OFF和SET CONSOLE ONC、SET CONFIRM OFF和SET CONFIRM OND、SET DELETED OFF和SET DELETED ON
考题
禁止在Visual FoxPro窗口中显示程序运行结果的命令为()。A、SET ESCAPE OFFB、SET TALK OFFC、SET EXTACT OFFD、SET CONSOLE OFF
考题
You are troubleshooting a Catalyst 5000 trunk in the network. What should you do if there’s adisagreement about the VLANs configured to use the trunk?()A、Reload the active VLAN configurationB、Clear the affected port and bring it up againC、Explicitly set the trunk for the VLAN to be onD、Remove all the VLANs set
考题
A user has forgotten their BIOS password on their computer. Which of the following would atechnician use to allow the user access to their PC?()A、Remove the BIOS chip on the PCB、Re-flash the BIOSC、Run password cracking software on the users PCD、Set the password clear jumper on the motherboard
考题
You are the administrator of a Windows 2000 network. You purchase 25 new portable computers that have a preinstalled version of Windows 98. You upgrade the 25 new computers to Windows 2000 Professional. You want to remove the Logoff option from the start menu on the 25 new computers. Which two methods can you use to accomplish this goal?()A、 On the advanced tab of the task bar and start menu dialog box, clear the Display log off option.B、 On the advanced tab of the task bar and start menu dialog box, clear the administrative tools option. C、On the general tab of the task bar and start menu dialog box, clear the personalized menus option. Log off and then log on to the computers.D、 Use a local computer policy that will not include the logoff option on the start menu.E、 Use the user profiles tab within the properties of my computer to change the profile from the local profile to a roaming user profile.
考题
单选题One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase, you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS; 202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()A
session.removeAll(USE_CASE_ATTRS);B
for( String attr : USE_CASE_ATTRS ){ session.remove(attr); }C
for( String attr : USE_CASE_ATTRS ){session.removeAttribute(attr);}D
for( String attr : USE_CASE_ATTRS ){session.deleteAttribute(attr);}E
session.deleteAllAttributes(USE_CASE_ATTRS);
热门标签
最新试卷