一起答
单选

在下列程序中;

 Program test(input, output);

 var i, j: integer;

 procedure calc(p1, p2:integer);

 begin p2:=p2*p2 p1:=p1-p2; p2:=p2-p1;end{caic}

 begin{main}i:=2;j:=3;

 calc(i,j);write(j);

 end{main}

当参数传递采用引用方式(Call by reference)时,所得结果j=(33);

当参数传递采用换名方式(Call by name)时,所得结果j=(34);

当参数传递采用赋值方式(Call by value)时,所得结果j=(35);

 递归是程序设计中很重要的一种控制结构,通常实现递归时,采用的数据结构是(36)。

对那些既可以用递归方式,也可以用循环方式求解的问题,就执行效率而言(37)。

  • A.10
  • B.16
  • C.20
  • D.28
参考答案
查看试卷详情
相关试题
  1. (123)

    • A.after
    • B.when
    • C.while
    • D.before
  2. (124)

    • A.everyone
    • B.everybody
    • C.nobody
    • D.most people
  3. Password is a(n)(71)series of characters that enables a user(72)a file, computer or program. On multi - user systems,(73)user must enter his or her password(74)the computer  will respond to commands. The password helps ensure that unauthorized users do not access the computer. In addition, data files and programs may require a password.

    Ideally, the password should be something(75)could guess. In practice, most people choose a password that is easy to remember, such as their name or their initials. This is one reason it is relatively easy to break into most computer system.

    • A.obvious
    • B.secret
    • C.important
    • D.easy
  4. (121)

    • A.access
    • B.accessing
    • C.accessed
    • D.to access
  5. (122)

    • A.each
    • B.all
    • C.some
    • D.any
  6. (118)

    • A.to determine
    • B.determing
    • C.determined
    • D.determine
  7. (119)

    • A.logic
    • B.logically
    • C.logical
    • D.logician
  8. (116)

    • A.that
    • B.what
    • C.whose
    • D.who
  9. (117)

    • A.logic
    • B.logical
    • C.logically
    • D.logicality
  10. The program memory serves basically as a place(66)instructions, the coded pieces of data(67)direct the activities of the control processing unit(CPU). A group of(68)related in- structions stored in memory is referred to as a program. The CPU "read" each instruction from memory a logically(69)sequence and "use" it to initiate program action. If the program structure is coherent and(70), processing procedures produce intelligible and useful results.

    • A.stored
    • B.to store
    • C.to be stored
    • D.storing