String[] str = {"abc", "def", "ghi", "jkl"};
A. "ghi"
B. "def"
C. A reference to the String "ghi" 字符串“ghi”的引用
D. A reference to the String "def" 字符串“def”的引用
查看答案
String[] names = {"abc", "def", "ghi", "jkl"};
A. for (int i = 0;i < names.length; i++) System.out.println(names[i].length);
B. for (int i = 0;i < names.length(); i++) System.out.println(names[i].length);
C. for (int i = 0;i < names.length; i++) System.out.println(names[i].length());
D. for (int i = 0;i < names.length(); i++) System.out.println(names[i].length());
A search algorithm: 一个搜索算法:
A. is a way to locate a specific item in a larger collection of data是在更大的数据集合中定位特定项的一种方法
B. is rarely used with arrays 很少与数组一起使用
C. arranges elements in ascending order 按升序排列元素
D. arranges elements in descending order 按降序排列元素
The binary search algorithm: 二分查找算法:
A. is less efficient than the sequential search algorithm 效率比顺序搜索算法低
B. will cut the portion of the array being searched in half each time the loop fails to locate the search value 当循环无法定位搜索值时,将被搜索的数组部分减半
C. will have a maximum number of comparisons equal to the number of elements in the array将具有与数组中元素数量相等的最大比较数
D. will have an average of N/2 comparisons, where N is the number of elements in the array 将有N/2次比较的平均值,其中N是数组中元素的数量
在资产负债表中,可按总账科目的余额直接填列的是()。
A. 短期借款
B. 短期借款
C. 固定资产
D. 应收账款