在数轴上,与表示数﹣1的点的距离是2的点表示的数是 [ ]
A.1
B.3
C.±2
D.1或-3
答案:D
读“工业区位因素影响力模式图”,图中各点与中心距离的长短表示各区位因素影响程度的大小。与图示区位条件相匹配的工厂是
A.①——有色金属冶炼厂
B.②——计算机装配厂
C.③——甘蔗榨糖厂
D.④——采矿厂
下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是______。 public class FindKeyWords public static void main(sring[]args) sting text= "An array is a data structur that stores a collection of" +"values of the same type. You access each individual value" +"through an integer index. For example, if a is an array" +"of inergers, then a[i] is the ith integer in the array."; Int arrayCount=0; Int idex=-1; Sting arrarStr="array"; Index=text. indexof(arrayStr); While(index______0) ++arrayCount; Index+=arrayStr. length(); Index=text. indexof(arrayStr,index); System. out. println ("the text contains"+arrayCount+"arrays");
A.< B.=C.<= D.>=