一起答
单选

采用顺序搜索方法查找长度为n的顺序表时,搜索成功的平均搜索长度为(36)。

  • A.n
  • B.n/2
  • C.(n-1)/2
  • D.(n+1)/2
试题出自试卷《软件水平考试(初级)程序员上午(基础知识)模拟试卷3》
参考答案
查看试卷详情
相关试题
  1. TCP service is obtained by having both the sender and the receiver create and points, which are called(75).

    • A.Network address
    • B.supenet address
    • C.socket
    • D.IP address
  2. (74)is a contiguous, numbered set of variables of a given base type, which can be used and passed to functions as a unit.

    • A.Record
    • B.Array
    • C.Parameter
    • D.File
  3. In C language, the usual expression statements are(73)or function calls.

    • A.I/Os
    • B.operations
    • C.assignments
    • D.evaluations
  4. The CPU is composed of two components, which are(66).

    • A.asthmatics logic unit and controller
    • B.arithmetic logic unit and memory
    • C.memory and controller
    • D.controller and storage
  5. (67)is a sequence of letters and digits, the first character must be a letter.

    • A.An identifier
    • B.A string
    • C.An array
    • D.A program
  6. (51)

    • A.1,1,1
    • B.1,1
    • C.1
    • D.i,k
  7. (50)

    • A.0
    • B.i,k,0
    • C.i,k
    • D.i-1,k-1
  8. (49)

    • A.1
    • B.2
    • C.2
    • D.4
  9. 若有一个仓库,可以存放P1、P2:两种产品,但是每次只能存放一种产品,要求:

    ①w=P1的数量-P2的数量  ②-i<w<k(i、k为正整数)

     若用PV操作实现P1和P2产品的入库过程,至少需要(51)同步信号量及(52)个互斥信号量,其中,同步信号量的初值分别为(53),互斥信号量的初值分别为(54)。

    • A.1
    • B.2
    • C.3
    • D.4
  10. (47)

    • A.原型项目
    • B.概念项目
    • C.改进项目
    • D.风险项目