有关字段属性,下列叙述错误的是()。
A.不同的字段类型,其字段属性有所不同
B.并不是任意类型的字段都能设置默认值属性
C.有效性规则属性是用于限制此字段输入值的表达式
D.字段大小可用于设置文本、数字或日期/时间等类型字段的最大容量
A.不同的字段类型,其字段属性有所不同
B.并不是任意类型的字段都能设置默认值属性
C.有效性规则属性是用于限制此字段输入值的表达式
D.字段大小可用于设置文本、数字或日期/时间等类型字段的最大容量
第1题
执行下列程序段之后,输出的结果为______。 public class ex43 { public static void main(String[] args) { short a=127; short b=4; a>>>=--b; System.out.println(a); } }
A.10
B.15
C.30
D.128
第2题
执行下列程序段之后,输出的结果为______。
public class exl0
{
public static void main(String[] args)
{
int i=3;
int j=7;
int k=8;
boolean b=j>i∧k!=i;
System.out.println(b);
}
}
第3题
执行下列程序段之后,输出的结果是()。public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System.out.println(c) ; } }
A.2
B.1
C.-1
D.-2
第4题
执行下列程序段之后,输出的结果是______。 public class Test8 { public StatiC void main (String[] args) { byte a=2; short b=3; long c=4; c=a%b*4%b; System.out.println (c); } }
A.2
B.1
C.-2
D.-1
第5题
【单选题】执行下列代码段之后,输出结果为()。 public class H{ public static void main(String[] args){ int sum=2,a=3,b=5,c=7; while (a<b){ while (b!="c){" sum+="b;" b++; } b="5;" a++; system.out.println(sum);> A、23
B、24
C、25
D、26
第6题
执行下面的程序段,输出结果为______。
public class Q
{
public static void main(String argvr))
{
int anar[]=new int[5];
System.out.println(anar[0]);
}
}
第7题
执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String args[]) { int anar[]=new int[5]; System.out.println(anar[0]); } }
第8题
执行下面程序段的输出结果为()。 public class Q { public static void main(String argv[]) { int anar[]一new int[5]; System.out.println(anar[0]); } }
A.0
B.1
C.2
D.5
第9题
执行下面程序段的输出结果为()。 public class Q { public static void main(String argv[]) { int anar[]一new int[5]; System.out.println(anar[0]); } }
A.0
B.1
C.2
D.5
第10题
下面程序段的输出结果为 public class MyClass { public static void main(String args[]) { String s="Helto! How are you?"; System.out.println(s.lastlndexOf("o",16)); } }
A.16
B.o
C.u
D.17
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!