以下有关数组定义的语句序列中,错误的是______。A.Static arr1(3)

题型:单项选择题

问题:

以下有关数组定义的语句序列中,错误的是______。

A.Static arr1(3) Arr1(1)=100 arr1(2)="Hello" arr1(3)=123.45

B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=InputBox("输入:") ReDimarr2(siz ...... End Sub

C.Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ...... End Sub

D.Dim n As Integer Private Sub Command4_Click() Dim arr4(As Integer ...... End Sub

考点:地方公务员二级VISUALBASIC笔试318
题型:单项选择题

婴儿进行人际交流的重要手段是()。

A、情绪和语言 

B、表情和手势 

C、情绪和动作 

D、理解能力和表达能力

题型:单项选择题

手术帽、手术衣、纱布绷带属于

A.第一类
B.第二类
C.第三类
D.基本质量特性
E.质量保证

题型:单项选择题

下列选项中,( )不属于中外合资基金管理公司的境外股东应当具备的条件。

A.实缴资本不少于5亿元人民币的等值可自由兑换货币
B.依其所在国家或者地区的法律设立,合法存续并具有金融资产管理经验的金融机构,财务稳健,资信良好
C.所在国家或者地区具有完善的证券法律和监管制度,其证券监管机构已与中国证监会或者中国证监会认可的其他机构签订证券监管合作谅解备忘录,并保持着有效的监管合作关系
D.最近3年没有受到监管机构或者司法机关的处罚

题型:单项选择题

药品到货后,库管员收货完成后,应将签字确认后的随货同行单移交()

A.质管员

B.养护员

C.销售员

D.验收员

题型:单项选择题

请完成以下程序,首先由一个类Example2_3实现Serializable接口,并有三个成员变量,分别为int型、double型和String型,可以用toString的方法显示这三个成员变量。在main方法中创建这个Example2_3的持久对象,根据用户在命令行输入的三个参数来设定其中成员变量的值。然后,将这个对象写入名为TheSerial.data的文件,并显示成员变量。最后从文件TheSerial.data中读出三个成员变量并显示出来。
注意:请勿改动main()主方法和其他已有语句内容,仅在横线处填入适当语句。
import java.io.*;
class TheSerial implements Serializable

private int intValue;
private double doubleValue;
private String string;
TheSerial()

intValue = 123;
doubleValue = 12.34;
string = "Serialize Test";

public void setDouble(double d)

doubleValue = d;

public void setInt(int i)

intValue = i;

public void setString(String s)

string = s;

public String toString()

return("int="+intValue+"double="+doubleValue+" string="+string);


public class Example2_3

public static void main(String argv[])

TheSerial e1 = new TheSerial();
TheSerial e2;
try

e1.setInt(Integer.parseInt(argv[0]));
e1.setDouble(Double.parseDouble(argv[1]));
e1.setString[argv[2]);

catch(Exception e)

e1.setString(e.getMessage));

System.out.println(e1);
try

FileOutputStream oS = new FileOutputStream("TheSerial.data");
ObjectOutputStream oIS = new ObjectOutputStream(oS);
______;

catch(IOException ioException)

System.out.println(ioException.getMessage());

try

FileInputStream iS = new FileInputStream("TheSerial. data");
ObjectInputStream oIS = new ObjectInputStream(iS);
______
System.out.println(e2);

catch(IOException ioException)

System.out.println(ioException.getMessage());

catch(ClassNotFoundException cnfException)

System.out.println(cnfException.getMessage());


更多题库