A: String[] list = new String[]{"red", "yellow", "green"};
B: String list = new String{"red", "yellow", "green"};
C: String list = {"red", "yellow", "green"};
D: String[] list = {"red", "yellow", "green"};
举一反三
- 定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
- 下列语句中,可以用来实现改变 HTML 文档背景颜色的是 ( )。 A: document.bgColor=" yellow " B: document.bgColor( )="yellow " C: document.bgColor("yellow") D: document.background=" yellow "
- 29. ( ) refers to A list of undesirable persons. A: "blacklist" B: "Whitelist" C: "Green List" D: "Red List"
- 下面代码能够实现,单击鼠标给按钮添加边框的是() A: $("button").click(function(){ $(this).css("border","1px solid red") }) B: $("button").click(function(){ $(this).css(border,1px solid red) }) C: $("button").dbclick(function(){ $(this).css("border","1px solid red") }) D: $("button").mouseover(function(){ $(this).css("border","1px solid red") })
- <icon>是图标组件,以下哪句代码可以实现一个红色、40像素大小的搜索图标?( ) A: <icon type="search" size="40px" color="red"></icon> B: <icon type="discover" size="40" color="red"></icon> C: <icon type="search" size="40" color="red"></icon> D: <icon type="discover" size="40px" color="red"></icon>
内容
- 0
下列值不为true的表达式有( )。 A: "john" = = "john" B: "john".equals("john") C: "john" = "john" D: "john".equals(new String("john"))
- 1
根据用户在文本框txtName中输入的姓名对Student表进行查询,以下SQL语句定义正确的是__________________。 A: String sql="Select * from Student where Sname="+txtName.getText(); B: String sql="Select * from Student where Sname='"+txtName.getText()+"'"; C: String sql="Select * from Student where Sname like "+txtName.getText(); D: String sql="Select * from Student where Sname like '"+txtName.getText()+"'";
- 2
下面( )是ID的样式规则定义。 A: TR{clore:red;font-family:"隶书";font-size:24px;} B: H2{color:red;font-family:"隶书";} C: D: grass{color:green;font- family:"隶书"; font-size:24px;} E: P{background-color: F: CCFF33;text-align:left;}
- 3
Word中插入数学公式的方法是()。 A: "插入"→"形状"→"公式" B: "开发工具"→"公式" C: "插入"→"公式"→"插入新公式" D: "引用"→"插入"→"公式"
- 4
下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";