admin 管理员组

文章数量: 1087675


2024年3月13日发(作者:stir什么意思)

《管理信息系统》题库

一、单项选择题:

1.main()方法的返回类型是( B )。

A、int B、void C、boolean D、static

2.下面哪个是正确的?( D )

A、String temp [] = new String {“a” “b” “c”};

B、String temp [] = {“a” “b” “c”}

C、String temp = {“a”, “b”, “c”}

D、String temp [] = {“a”, “b”, “c”};

3.System类在哪个包中?( D )

A、 B、 C、 D、

4.容器被重新设置大小后,哪种布局管理器的容器中的组件大小不随容器大小的变化而改变?

1

( B )

A、CardLayout B、FlowLayout

C、BorderLayout D、GridLayout

5.哪个关键字可以抛出异常?( C )

A、transient B、finally C、throw D、static

6.执行完下面的程序片段后,下面哪个结论是正确的?( B )

int a,b,c;

a=1;

b=2;

c=(a+b>3?a++:++b);

A、a的值是2,b的值是3 B、a的值是1,b的值是3

C、a的值是1,b的值是2

D、c的值是false

2


本文标签: 容器 返回 意思 抛出 程序