AI智能推荐题库-试题通 AI智能整理导入题库-试题通
×
首页 题库中心 库克谷计算机基础知识 题目详情
C90FAA98D48000013881138914B11768
库克谷计算机基础知识
3,075
单选题

设有序表中的元素为(13,18,24,35,47,50,62),则在其中利用二分法查找值为24的元素需要经过( )次比较。

A
1
B
2
C
3
D
4

答案解析

正确答案:C
库克谷计算机基础知识

扫码进入小程序
随时随地练习

相关题目

单选题

下列程序的功能是统计字符串中"array"的个数,在程序的空白处应填入的正确选项是:
  public class FindKeyWords{
  public static void main(sring[] args){
  String 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;
  String 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");
  }
  }

单选题

String、StingBuffer都是______类,都不能被继承。

单选题

Java中的基本数据类型int在不同的操作系统平台的字长是:

单选题

为使Java程序独立于平台,Java虚拟机把字节码与各个操作系统及硬件:

单选题

阅读下列程序片段
  public void test(){
  try{
  sayHello();
  system.out.println("Hello");
  } catch (ArrayIndexOutOfBoundException e) {
  System.out.println("ArrayIndexOutOfBoundException");
  }catch(Exception e){
  System.out.println("Exception");
  }finally {
  System.out.println("Finally");
  }
  }
  如果sayHello( )方法正常运行,则test( )方法的运行结果将是:

单选题

自定义异常类的父类可以是:

单选题

下列变量名的定义中,符合Java命名约定的是:

单选题

为了将HelloApplet(主类名为HelloApplet.class)嵌入在greeting.html文件中,应该在下列greeting.html文件的横线处填入的代码是:
  
  
   Greetings
  
  
  
  

  
  

单选题

在关闭浏览器时调用,能够彻底终止Applet并释放该Applet所有资源的方法是:

单选题

在一个线程中调用下列方法,不会改变该线程运行状态的是:

关闭登录弹窗
专为自学备考人员打造
勾选图标
自助导入本地题库
勾选图标
多种刷题考试模式
勾选图标
本地离线答题搜题
勾选图标
扫码考试方便快捷
勾选图标
海量试题每日更新
波浪装饰图
欢迎登录试题通
可以使用以下方式扫码登陆
APP图标
使用APP登录
微信图标
使用微信登录
试题通小程序二维码
联系电话:
400-660-3606
试题通企业微信二维码