下列语句片断中,four的值为:( )。 int three=3; char ne="1"; char four=(char)(three+one);
A.3
B.1
C.31
D.4
第1题:
建立一个“职员”表,表中有5个字段:职员号、姓名、性别、年龄、部门。要求职员号属性的值惟一,并且不能为空值。建立该表的SQL语句可以是______。
A.CREATE TABLE职员(职员号CHAR(6),姓名CHAR(8),;性别CHAR(2),年龄INT(4),部门CHAR(12))
B.CREATE TABLE职员(职员号C1LAR(6) NULL,姓名 CHAR(8),;性别CHAR(2),年龄INT(4),部门CHAR((12))
C.CREATE TABLE职员(职员号CHAR(6) NOT NULL UNIQUE,;姓名CHAR(8),性别CHAR(2),年龄INT(4),部门CHAR(12))
D.CREATE TABLE职员(职员号CHAR(6)UNIQUE,姓名CHAR(8),;性别CHAR(2),年龄INT(4),部门CHARR(12))
第2题:
2、下列语句片段中,four的值为 public static void main(String[] args) { int i=3; char c1 = '1'; char c2 = (char) (i + c1); System.out.println(c2); } A. 3 B. 1 C. 31 D. 4
第3题:
7、下面语句错误的是()。
A.int *p; *p=20;
B.char *s="abcdef"; printf("%s\n",s);
C.char *str="abcdef"; char *p; p=str
D.char *str;str="abcdef";
第4题:
下列语句能给数组赋值,而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";}
B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};
C.String s[]=new String[] {"Zero","One","Two","Three","Four"};
D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};
第5题:
下列给字符串二维数组进行赋值的语句中,错误的是()。
A.String s[ ] [ ] = new String [ ] [ ] { { “One “ , “ Two “ }, { “ Three “ , “ Four “ } } ;
B.String s[ ] [ ] = { { “ One “ , “Two “},{ “ Three “ , “ Four “ } } ;
C.String s[ ] [ ] = new String [ ] [ ] { { “Zero”} , { “ One ” , “Two” , “ Three” , “ Four” } } ;
D.String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;