问题 单项选择题

代码走查(code walkthrough)和代码审查(code inspection)是两种不同的代码评审方法,这两种方法的主要区别是______。

A.在代码审查中由编写代码的程序员来组织讨论,而在代码走查中由高级管理人员来领导评审小组的活动

B.在代码审查中只检查代码中是否有错误,而在代码走查中还要检查程序与设计文档的一致性

C.在代码走查中只检查程序的正确性,而在代码审查中还要评审程序员的编程能力和工作业绩

D.代码审查是一种正式的评审活动,而代码走查的讨论过程是非正式的

答案

参考答案:D

解析: 代码审查是一种正式的评审活动,而代码走查的讨论过程是非正式的。因此选项D说法正确。而选项A的说法应改正为“在代码走查中由编写代码的程序员来组织讨论,而在代码审查中由高级管理人员来领导评审小组的活动”。
选项B的说法应改正为“无论代码审查和代码走查都要检查程序与设计文档的一致性”。
选项C中说要评审程序员的编程能力和工作业绩也是不对的。

多项选择题
单项选择题

Since we are social beings, the quality of our lives depends in large measure on our interpersonal relationships. One strength of the human condition is our tendency to give and receive support from one another under stressful circumstances. Social support consists of the exchange of resources among people based on their interpersonal ties. Those of us with p support systems appear better able to cope with major life changes and daily hassles. People with p social ties live longer and have better health than those without such ties. Studies over a range of illnesses, from depression to heart disease, reveal that the presence of social support helps people fend off illness, and the absence of such support makes poor health more likely.
Social support cushions stress in a number of ways. First, friends, relatives, and co-workers may let us know that they value us. Our self-respect is strengthened when we feel accepted by others despite our faults and difficulties. Second, other people often provide us with informational support. They help us to define and understand our problems and find solutions to them. Third, we typically find social companionship supportive. Engaging in leisure-time activities with others helps us to meet our social needs while at the same time distracting us from our worries and troubles. Finally, other people may give us instrumental support—financial aid, material resources, and needed services—that reduces stress by helping us resolve and cope with our problems.

Interpersonal relationships are important because______.

A. they are indispensable to people’s social well-being
B. they awaken people’s desire to exchange resources
C. they help people to cope with life in the information age
D. they can cure a range of illnesses such as heart disease,etc.