background image

B.charAt 用于获取指定位置上的字符

C.

String   s=”mstanford”;S.substring(1,3) 的 结 果 是

sta

D.Equals 方法用于比较两个字符内容是否相同,区分大小

10.

下列聚合函数中正确的是(

A.

SUM(*)

B.MAX(*)

C.COUNT(*)

D.AVG(*)

11.

下列

JAVA 代码片段中,不合法的是(

A.

String a=”abcdefg”;a-=”cde”;

B.

String a=”abcdefg”;a+=”cde”;

C.Integer j=new Integer(27);j-=7;

D.Integer j=new Integer(27);j--;

12.在 HTML 中,使用 HTML 元素的 class 属性,将样式用于

网页上某个段落的代码,如下所示

<p class =”firstp”>这是一个段落</p>

下列选项中,(

)正确定义了上述代码引用的样式规则。

A.

<style type=”text/css”>p{color;red}</style>

B.<style

 

type=”text/css”> 

#firstp{color;red}</style>

C.<style 

type=”text/css”>.firstp{color;red}</style>