设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。A.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 . strname = smith .strsex = .smark = 89 End With End SubB.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 .strname = "smith" .strscx = "男" .smark = 89 End With End SubC.Sub Commandl_Click0 Dim student As Stutype With Stutype ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End With End SubD.Sub Command1 _Click() Dim student As Stutype With student .ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End student End Sub

设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。

A.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 . strname = smith .strsex = .smark = 89 End With End Sub

B.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 .strname = "smith" .strscx = "男" .smark = 89 End With End Sub

C.Sub Commandl_Click0 Dim student As Stutype With Stutype ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End With End Sub

D.Sub Command1 _Click() Dim student As Stutype With student .ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End student End Sub


相关考题:

设在工程中定义了下列类型: Type Stutype ino As Integer strname As String*20 Strsex As String*1 Smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作 A. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname=smith .strsex=男 .smark=89 End With End Sub B. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub C. Sub Command1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub D. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End student End Sub

要建立一个学生成绩的随机文件,如下定义了学生的记录类型,由学号、姓名、三门课 程成绩(百分制)组成,下列程序段正确的是( )。A.Typepestudl no As Integer name As String score(1 To 3)As Single End TypeB.Typestudl no As Integer no As Integer name As String*10 score()As Single End TypeC.Typestudl no As Integer name As String*10 score(1 To 3)As Single End TypeD.Typestudl no As Integer name As String score(1 To 3)As Single End Type

假设有如下的记录类型: Type Student number As String name AS String age As Integer End Type 则正确引用该记录类型变量的代码是______。A.Student. name="" s. name="张红"B.Dim s As Student s. Dame="张红"C.Dim s As Type Student s. name="张红"D.Dim s As Type s. name="张红"

设有如下的用户定义类型: Type Student number As String name As string age As Integer End Type 则以下正确引用该类型成员的代码是______。A. Student name="李明”B.Dim s As Student s.name="李明"C.Dim s As Type Student s.name="李明"D.Dim s As Type s.name="李明"

(35)在C盘当前文件夹下有一个已经建立好的顺序文件Alph.txt,文件内容为只含有字母的一个字符去、串(有双引号界定符)。单击窗体,打开Alph.txt文件,读取字符串显示在文本框Text1中,最后将重新排列的字符串存入AipO.txt文件中(无双引号界定符)。请选择横线处合适的语句 Private Sub Fom_Load() Dim StrIn As String,StrOut As String Open"C/:Alph.txt"For Input As#1 ______ Close Text1.Text=StrIn ______ Text2.Text=StrOut Open"C/:AlpO.txt"For Output As#2 ______ Close End Sub Private Function StrSort(s As String)As String Dim sArr()As String*1,i As Integer,j As Integer,n As Integer Dim t As String*1 n=Lem(s) Redim sArr(n) For i=1 To n sArr(i)=Mid(s,i,1) Next i For i=1 To n-1 For j=i+1 To n If sArr(i)sArr(j)Then t=sArr(i):sArr(i)=sArr(j):sArr(j)=t End If Next j,i For i=1 To n StrSort=StrSortsArr(i) Next i End FunctionA.Input#1,StrIn StrIn Print#2,StrOut B.Input#1,StrIn StrOut(StrIn) Print#2,StrOutC.Input#2,StrIn StrOut(StrIn) Print#1,StrOutD.Input#1,StrIn StrOut(StrIn) Input#2,StrOut

(12)要建立一个随机文件记录学生的信息,下列定义了学生的记录类型,由学号、姓名、五门课程成绩(百分制)组成,下列的定义正确的是。A.Type stu no As Integer name As String score(1 To 5)As Single End Type B.Type stuno As Integename As String*10score()As SingleEnd TypeC.Type stu no As Integer name As String*10 score(1 To 5)As Single End Type D.Type stuno As Integername As Stringscore()As SingleEnd Type

下列程序中,实现将封装数据类型Integer和基本数据类型int之间的转换,以及Integer,int类型和String类型之间的转换。请将程序补充完整。程序运行结果如下:123456456public class ex7_1{public static void main(String[]args) {Integer intObj;int n;String s;intObj = new Integer(123);n=intObj.__________;System.out.printin(Integer.toString(n));s=new String("456");intObj=Integer._________;System.out.println(intObj.__________);n=Integer.parseInt(s);System.out.println(Integer.toString(n));}}

设有如下的记录类型: TypeStudent number As String name AS String age As Integer End Type 则正确引用该记录类型变量的代码是( )。A.Student.name="张红"B.Dim s As Student s.name="张红"C.Dim s As Type Student s.name="张红"D.Dim s As Type s.name="张红"

设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single End Type 在窗体上画一个名为Connnand1的命令按钮,要求当执行事件过程Command1_Click时,在c:\的随机文件student..dat写入一条记录。下列能够完成该操作的事件过程是( )。A.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_B.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_nC.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_nD.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,

以下能正确定义数据类型TelBook的代码是_________。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.TypedefTelBook NameString*10 TelNum Integer End Type

以下能正确定义数据类型TelBook的代码是A.TypeTelBook Name As String*10 TelNum As Integer EndTypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer EndTypeTelBookD.Typedef TelBook Name String*10 TelNum Integer End Type

设有如下的记录类型: Type Student Number As String Name As String Age As Integer End Sub 则能正确引用该记录类型变量的代码是( )。A.Student.name=""B.Dim s As Students.name=“张红”C.Dims As Tye Students.name=“张红”D.DimsAsTypes.name=“张红”

以下能正确定义数据类型TelBook的代码是 ______。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNun As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.TypedefTelBook Name String*10 TelNum Integer End Type

设在工程中定义了如下类型: Type stutype ino As Integer stmame As String*20 strsex As String*1 smark As Single End Type 在窗体上正确使用这个类型的是下列哪个操作( )。A.Sub Command1_click() Dimstudent As Stutype With student .ino=12 .strname=smith .strsex=男 .smark=89 End With End SubB.Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubC.Sub Command1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubD.Sub Command1_click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End student End Sub

要建立一个随机文件记录学生的信息,如下定义了学生的记录类型,由学号、姓名、5门课程成绩(百分制)组成,下列的定义正确的是( )。A.Type sru no As Integer name As String score(1 To 5)As Single End TypeB.Type stu no As Integer name As String*10 score()As Single End TypeC.Type stu no As Integer name As String*10 score(1 To 5)As Single End TypeD.Type stu no As Integer name As String score()As Single End Type

设在工程中定义了下列类型:Type Stutypeino As Integerstrname As String*20strsex As String*1smark As SingleEnd Type在窗体上正确使用这个类型的是下列哪个操作( )。A.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname=smith .strsex=男 .smark=89 End With End SubB.Sub Command1_Click() Dim Student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubC.Sub Comnland1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubD.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname="smith" .strsex="男" .smark=89 End student End Sub

有如下用户定义类型及操作语句: Tyoe Student SNo As String Sname As String SAge As Integer End Type Dim Stu As Student With Stu SNo=”200609001” SName=”陈果果“ A ge=19 End With 执行MsgBox Stu,Age 后,消息框输出结果是 【13】

下列数据类型定义中,正确的是A.Type Student Num As Long Name As String End TypeB.Type Student Num As Integer Name As String * 10 End TypeC.Private Type Num As Long Score As Single End TypeD.Private Type Student Name As String Score(10)As String * 10 End Type

要建立一个随机文件记录学生的信息,下列定义了学生的记录类型,由学号、姓名、五门课程成绩(百分制)组成,下列的定义正确的是( )。A.Type stu no As Integer name As String score(1 To 5)As Single End TypeB.Type stu no As Integer name As String*10 score()As Single End TypeC.Type stu no As Integer name As String*10 score(1 To 5)As Single End TypeD.Type stu no As Integer name As String score()As Single End Type

以下能正确定义数据类型TelBook的代码是______。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum AS Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.Typedef TelBook NameString*10 TelNum Integer EndType

设有如下的记录类型: Type Student number As String name As String age As Integer End Type 则正确引用该记录类型变量的代码是______。A.StUdent.name=""B.Dim s As StUdent s.name="张红"C.Dim s As Type Student s.name="张红"D.Dim s As Type s.name="张红"

由如下程序: Type Student Num As Integer Name As String * 13 End Type Dim stu(30)As Student 该程序段定义了两个程序成分,它们分别是 ______。A.记录类型和记录数组B.记录类型和记录变量C.显示类型和记录数组D.记录变量和记录数组

以下SQL 99语句描述的是(59)。CREATE TYPE Employee(name String,ssn integer);CREATE TYPE ManagerUNDER Employee(degree String,dept String);A.关联关系B.嵌套关系C.继承类型D.聚集关系

有如下程序: Private Type stu X As String Y As Integer End Type Private Sub Command1 Click( ) Dim a As stu X="ABCD" Y=12345 Print a End Sub 程序运行时出现错误,错误的原因是( )。A.Type定义语句没有放在标准模块中B.变量声明语句有错C.赋值语句不对D.输出语句Print不对

以下能正确定义数据类型TelBook的代码是( )。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer. EndType TelBookD.Typedef TelBook Name String*10 TelNum Integer End Type

在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该() A.type array arr_type[emp.ename%type] index by binary_integer;B.type table arr_type[emp.ename%type] index by binary_integer;C.type arr_type is table of emp.ename%type index by binary_integer;D.type arr_type is pl_sql table of emp.ename%type index by binary_integer;

在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该()A、type array arr_type[emp.ename%type] index by binary_integer;B、type table arr_type[emp.ename%type] index by binary_integer;C、type arr_type is table of emp.ename%type index by binary_integer;D、type arr_type is pl_sql table of emp.ename%type index by binary_integer;