恳请各位前辈指教几个vb题目?请务必回答准确答案!万分感谢

来源:百度知道 编辑:UC知道 时间:2024/06/01 10:03:05
1、下面的子过程语句说明合法的是()
A、sub f1(ByVal n%()) B,sub f1(n%) As Integer
C,Function f1%(f1%) D,Function f1(ByVal n%)
2;要将通用对话框commondialog1设置成不同的对话框,应通过()属性来设置
A, Name B, Action C, Tag D,Left
3;与“select count(cost) from supplies”等价的语句是()
A,select count(*) from supplies where cost <> Null
B,select count(*) from supplies where cost = Null
C,select count(distinct prod id) from supplies where cost <> Null
D,select count(distinct prod id) from supplies
4;下列Data1.Validate事件的功能是()
private sub Data1.Validate(Action as Integer, Save as Integer)
If save and len(Trim(Text1.text))=0 then
Action=0
End sub
A,若text1内数据发生变化,则关闭数据库。
B,若text1内数据发生变化,则加入新记录。
C,若text1内数据被置空,则确认写入数据
D,若text1内数据被置空,则取消对数据库的操作
5,在菜单编辑器中建立以一个名为pmenu的菜单,用下面语句可以把它作为弹出式菜单弹出,请填空。Form1.______.pmenu

1.D
2.B
3.A
4.D
5.PopupMenu

我以性命担保,绝对没错!
楼主看清楚,我是第一个!

1、下面的子过程语句说明合法的是(D)
A、sub f1(ByVal n%()) B,sub f1(n%) As Integer
C,Function f1%(f1%) D,Function f1(ByVal n%)

A错误:数组不能传值方式传 只能传址
B错误:Sub过程没有返回值 就是没有返回类型
C错误:函数名和参数名不能一样

2 要将通用对话框commondialog1设置成不同的对话框,应通过(B)属性来设置
A, Name B, Action C, Tag D,Left
A:设置的是名字
C:设置的是标签(识别用)
D:设置的是位置(X)
只有B,Action,设置的是对话框样式
当然也可ShowOpen,ShowSave等等显示

3.select count(cost) from supplies”等价的语句是(A)
A,select count(*) from supplies where cost <> Null
B,select count(*) from supplies where cost = Null
C,select count(distinct prod id) from supplies where cost <> Null
D,select count(distinct prod id) from supplies
逻辑倒一倒就是了- -

4.下列Data1.Validate事件的功能是(D)

private sub Data1.Validate(Action as Integer, Save as Integer)
If save and len(Trim(Text1.text))=0 then
Action=0<