若ASP服务器的根目录是“C:///wwwroot”,虚拟目录别名“temp”对应的路径是“C:///wwwroot/asp/temp”,则浏览temp目录下的文件“test.asp”正确的是()。
第1题:
假设temp.dbf数据表中有两个字段“歌手号”和“最后得分”。下面程序段的功能是:将temp.dbf中歌手的“最后得分”填入“歌手”表对应歌手的“最后得分”字段中(假设已增加了该字段)。在下划线处应该填写的SQL语句是 ______。 USE歌手 DO WHILE.NOT.EOF() _________________ REPLACE歌手.最后得分WITH a [2] SKIP ENDDO
A.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号TO ARRAY a
B.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号INTO ARRAY a
C.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号TOFILEa
D.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号INTO FILE a
第2题:
下列程序的招待结果是【 】。
include <iostream. h>
float temp;
float & fn2(float r)
{
temp=r* r* 3.14;
return temp;
}
void main( )
{
float a=fn2(5.0);
float& b=fn2(5.0)
b=20;
cout<<temp<<end1;
}
第3题:
A、http://localhost/studentaspx
B、http://127.0.0.1/studentaspx
C、http://localhost/homework/studentaspx
D、http://127.0.0.1/homework
第4题:
“SELECT*FROM投稿表TO FILE temp WHERE审稿结果=ˋ通过ˊ”语句的功能是( )。
A.将查询结果保存到临时temp.dbf文件中
B.将查询结果保存到temp.txt文本文件中
C.将查询结果保存到temp表中
D.将查询结果保存到数组temp中
第5题:
欲执行程序temp.prg,应该执行的命令是( )。
A.DO PRG temp.prg
B.DOtemp.prg
C.DO CMD temp.prg
D.DO FORM. temp.prg
第6题:
假设 temp.dbf 数据表中有两个字段 “ 歌手号 ” 和 “ 最后得分 ” 。 下面程序的功能是 : 将 temp.dbf 中歌手的 “ 最后得分 ” 填入 “ 歌手 ” 表对应歌手的 “ 最后得分 ” 字段中 ( 假设已增加了该字段 ) 。 在下划线处应该填写的 SQ L 语句是
USE 歌手
DO WHILE .NOT.EOF()
_________________
REPLACE 歌手 . 最后得分 WITH a[2]
SKIP
ENDDO
A)SELECT * FROM temp WHERE temp. 歌手号 = 歌手 . 歌手号 TO ARRAY a
B)SELECT * FROM temp WHERE temp. 歌手号 = 歌手 . 歌手号 INTO ARRAY a
C)SELECT * FROM temp WHERE temp. 歌手号 = 歌手 . 歌手号 TO FILE a
D)SELECT * FROM temp WHERE temp. 歌手号 = 歌手 . 歌手号 INTO FILE a
第7题:
下列程序的执行结果是______。
include<iostream.h>
float temp;
float&fn2(float r)
{
temp=r*r*3.14;
return temp;
}
void main( )
{
float a=fn2(5.0);
float&b=fn2(5.0);
b=20;
cout<<temp<<endl;
}
第8题:
A.错误
B.正确
第9题:
阅读以下说明及C++程序代码,将应填入(n)处的语句写在对应栏内。
【说明】
本程序的功能是生成螺旋方阵,用户可以输入该方阵的行列数,然后就生成对应的螺旋方阵。例如:当n=5时,对应的螺旋方阵如下:
1 16 15 14 13
2 17 24 23 12
3 18 25 22 11
4 19 20 21 10
5 6 7 8 9
【C++代码】
include"stdio.h"
include"iostream,h"
int array[11][11];
int temp;
int ROW;
void godown(int &m,int &a)
{
for(temp=1; temp<=ROW;temp++)
if(array[temp][a]==0)
array[temp][a]=(1);
a++;
}
void goright(int &m,int &b)
{
for(temp=1;temp<=ROW;temp++)
if(array[b][temp]==0)
array[b][temp]=m++;
b--;
}
void goup(int &m.int &c)
{
for(temp=ROW;temp>0;temp-)
if(array[temp][c]==0)
array[temp][c]=m++;
c--;
}
void goleft(int &m,int &d)
{
for(temp=ROW;temp>0;temp--)
if(array[d][temp]==0)
array[d][temp]=m++;
(2);
}
void main()
{
int a,b,c,d,max,m;
cin>>ROW;
cout>>end1;
for(a=1;a<=ROW;a++)
for(b=1;b<=ROW;b++)
(3);
m=1;
a=d=1;
b=c=ROW;
max=(4);
whiie(m<=max)
{
godown(m,a);
(5) (m,b);
goup(m,c);
goleft(m,d):
}
for(a=1;a<=ROW;a++)
{
for(b=1;b<=ROW;b++)
printf("%3d ",array[a][b]);
cout<<end1;
}
}
第10题:
欲执行程序temp.prg,应该执行的命令是( )。
A.DO PRG temp.prg
B.DO temp.prg
C.DO CMD temp.prg
D.DO FORM. remp.prg