单选

在下列程序中:

 Program test(input, output);

 var i. j:integer;

 procedure calc(p1, p2: integer);

 beginp2: = 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=(6);

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

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

  • A.3
  • B.6
  • C.10
  • D.16
参考答案
您可能感兴趣的试题

(66)

  • A.service
  • B.servant
  • C.servants
  • D.services

(65)

  • A.logging
  • B.going
  • C.coming
  • D.achieving

(64)

  • A.visiting
  • B.assessing
  • C.accessing
  • D.calling

(63)

  • A.database
  • B.gateway
  • C.router
  • D.computers

Which of the following statements about object oriented database is not correct?(72).

  • A.Each object has a unique object identify in the system
  • B.Encapsulation and inheritance are two important features of object oriented database
  • C.A subclass can inherit the attributes and methods of all its superclasses
  • D.A supereloss includes the attributes and methods at all subclasses
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服