正确答案: A
满足条件的第1条记录
题目:在Visual FoxPro中,使用LOCATEALLFOR命令按条件查找记录,执行该命令后,
解析:A
查看原题
举一反三的答案和解析:
[单选题]如果在命令窗口执行命令“LIST名称”,主窗口中显示: 记录号 名称 1 电视机 2 计算机 3 电话线 4 电冰箱 5 电线 假定名称字段为字符型、宽度为6,那么下面程序段的输出结果是( )。 go 4 SCAN NEXT 2 FOR LEFT(名称,2)=”电” IF RIGHT(名称,2)=”线” EXt ENDIF ENDSCAN ?名称
电线
解析:LEFT(<字符表达式>,<数值表达式>)功能是从字符表达式左边开始,截取<数值表达式>指定长度的字符串。RIGHT(字符表达式,数值表达式):返回一个字符串右边的若干字符,返回值是字符型。
[单选题]下列程序的输出结果是( )。 #includestdio.h> void main() { int b[6]={2,4,6,8,10,12}; int *p=b,**q=&p; printf("%d",*(p++)); printf("%d,",**q); }
2,4
解析:解析:首先定义了一个指向一维数组b的指针p,一个指向指针p的指针变量q,输出*(p++)是先输出*p即b[0]的值,再将指针p指向数组的下一个元素b[1],输出**q是输出指针p所指单元的内容,即b[1]的值。
[单选题]设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single End Type 在窗体上画一个名为Connnand1的命令按钮,要求当执行事件过程Command1_Click时,在c:\的随机文件student..dat写入一条记录。下列能够完成该操作的事件过程是( )。
Sub Command1_C1ick() Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open" c:\student.dat" For input As 1 len=len(student) Put 1,record_
Sub Command1_Click( ) Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:\student.dat" For random As 1 len=len(student) Put 1,record_n
Sub Command1_Click() Dim student As studtype Dim record_no As integer record_no=1 With student .ino=12 .stmame="smith" .strsex="男" .smark=89 End With Open"c:\student.dat" For random As 1 len=len(student) Write 1,record_n
Sub Command1_Click() Dim Student As studtype Dim Record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:\student.dat"For output As 1 len=len(student) Put 1,record_no,