当前位置:初级网络管理员题库>计算机软件基础知识题库

问题:

[单选] 调用递归过程或函数时,处理参数及返回地址需要用一种称为()的数据结构。

A . 队列
B . 栈
C . 多维数组
D . 顺序表

()属于标记语言。 PHP。 Lisp。 XML。 SQL。 With hundreds of millions of electronic (11)taking place daily, businesses and organizations have a strong incentive to protect the. (12) of the data exchanged in this manner, and to positively ensure the (13) of those involved in the transactions. This has led to an industry-wide quest for better, more secure methods for controlling IT operations,and for deploying strong security mechanisms deeply and broadly throughout networked infrastructures and client devices. One of the more successful concepts to engage the imaginations of the security community has been the development of standards-based security(14) that can be incorporated in the hardware design of client computers. The principle of encapsulating core security capabilities in (15) and integrating security provisions at the deepest levels of the machine operation has significant benefits for both users and those responsible for securing IT operations.空白处(13)应选择() A.identities。 homogeneities。 creations。 operations。 ()属于系统软件,它直接执行高级语言源程序或与源程序等价的某种中间代码。 编译程序。 预处理程序。 汇编程序。 解释程序。 下列选项中不受我国《著作权法》保护的作品是()。 计算机程序。 Flash软件制作的动画。 计算机文档。 计算机软件保护条例。 ()的任务是将来源不同的编译单元装配成一个可执行程序。 编译程序。 解释程序。 链接程序。 装入程序。 调用递归过程或函数时,处理参数及返回地址需要用一种称为()的数据结构。
参考答案:

  参考解析

当在一个函数的运行期间调用另一个函数时,在运行被调用函数之前,系统需要先完成3个操作,即将所有的实参、返回地址等信息传递给被调函数保存;
为被调函数的局部变量分配存储区;
将控制转移到被调函数的入口。
从被调函数返回调用函数之前,系统还要完成3个操作,即保存被调函数的计算结果;
释放被调函数的数据区;
依照被调函数保存的地址将控制转移到调用函数。
当有多个函数构成嵌套调用时,按照"后调用先返回"的原则,上述函数之间的信息传递和控制转移必须通过"栈"来实现,每当调用一个函数时,就在栈顶为它分配一个存储区,每当退出一个函数时,就释放它的存储区,当前正在运行的函数的数据区必在栈顶。递归函数的运行过程类似于多个函数的嵌套调用,只是调用和被调用函数是同一个函数。

在线 客服