简答题

课程名称:软件评测师

题目:阅读下列说明,回答下列问题。[说明] 逻辑覆盖法是设计白盒测试用例的主要方法之一,它是通过对程序逻辑结构的遍历实现程序的覆盖。针对以下由C语言编写的程序,按要求回答问题。Struct_ProtobufCIntRange{Int start_value;Unsigned orig_index;};typedef struct_ProtobufCIntRange ProtobufCIntRange;int int_range_lookup(unsigned n_ranges,const ProtobufCIntRange*ranges,int value)  {unsigned  start,n;                                                         //1start=0;n=n_ranges;while (n>1)  {                                                           //2    unsigned mid=start+n/2;    if(value< ranges[mid].start_value) {    //3         n=mid-start;   //4    }    else if (value>=ranges[mid].start_value+ (int)(ranges[mid+1].orig_index-ranges[mid].orig_index)) {   //5        unsigned new_start=mid+1;                              //6        n=start+n-new_start;        start=new_start;    }    else                                   //7        return  (value-ranges[mid].start_value)+ranges[mid].orig_index;    }    if(n>0){                      //8        unsigned start_orig_index=ranges[start].orig_index;        unsigned range_size=ranges[start+1].orig_index-start_orig_index;        if (ranges[start].start_value<=value && value<(int)(ranges[start].start_value+range_size))         //9,10        return  (value-ranges[start].start_value)+start_orig_index;      //11    }    return -1;                                               //12}  //135、[问题1] 请给出满足100%DC(判定覆盖)所需的逻辑条件。(6分)6、[问题2] 请画出上述程序的控制流图,并计算其控制流图的环路复杂度VG.。(6分)7、[问题3] 请给出[问题2]中控制流图的线性无关路径。(4分)

单选题

课程名称:软件评测师

题目:People are including in an illusion whenever they find themselves explaining at a cocktail(鸡尾酒)party, say, that they are "in computers," or "in electronic funds transfer". the implication is that they are part of the high-tech world, Just between US, they usually aren't. The researchers who made fundamental breakthroughs in those areas are in high-tech business. The rest of US are ___1___ of their work. We use computers and other new technology components to develop our products or to organize our affairs. Because we go about this work in teams and projects and other tightly knit working groups(紧密联系在一起的工作小组), we are mostly in the human communication business. Our successes stem from good human interactions by all participants in the effort, and Our failures stem from poor human interactions.    The main reason we tend to focus on the ___2___ rather than the human side of the work is not because it's more __3____, but because it's easier to do. Getting the new disk drive installed is positively trivial compared to figuring out why Horace is in a blue funk(恐惧) or why Susan is dissatisfied with the company after only a few months. Human interactions are complicated and never very crisp(干脆的,干净利落的)and clean in their effects, but they matter more than any other aspect of the work.    If you find yourself concentrating on the ____4__ rather than the ___5___, you're like the vaudeville character(杂耍人物)who loses his keys on a dark street and looks for them on the adjacent street because, as he explains, "The light is better there!".5、______

单选题

课程名称:软件评测师

题目:People are including in an illusion whenever they find themselves explaining at a cocktail(鸡尾酒)party, say, that they are "in computers," or "in electronic funds transfer". the implication is that they are part of the high-tech world, Just between US, they usually aren't. The researchers who made fundamental breakthroughs in those areas are in high-tech business. The rest of US are ___1___ of their work. We use computers and other new technology components to develop our products or to organize our affairs. Because we go about this work in teams and projects and other tightly knit working groups(紧密联系在一起的工作小组), we are mostly in the human communication business. Our successes stem from good human interactions by all participants in the effort, and Our failures stem from poor human interactions.    The main reason we tend to focus on the ___2___ rather than the human side of the work is not because it's more __3____, but because it's easier to do. Getting the new disk drive installed is positively trivial compared to figuring out why Horace is in a blue funk(恐惧) or why Susan is dissatisfied with the company after only a few months. Human interactions are complicated and never very crisp(干脆的,干净利落的)and clean in their effects, but they matter more than any other aspect of the work.    If you find yourself concentrating on the ____4__ rather than the ___5___, you're like the vaudeville character(杂耍人物)who loses his keys on a dark street and looks for them on the adjacent street because, as he explains, "The light is better there!".4、_______

单选题

课程名称:软件评测师

题目:People are including in an illusion whenever they find themselves explaining at a cocktail(鸡尾酒)party, say, that they are "in computers," or "in electronic funds transfer". the implication is that they are part of the high-tech world, Just between US, they usually aren't. The researchers who made fundamental breakthroughs in those areas are in high-tech business. The rest of US are ___1___ of their work. We use computers and other new technology components to develop our products or to organize our affairs. Because we go about this work in teams and projects and other tightly knit working groups(紧密联系在一起的工作小组), we are mostly in the human communication business. Our successes stem from good human interactions by all participants in the effort, and Our failures stem from poor human interactions.    The main reason we tend to focus on the ___2___ rather than the human side of the work is not because it's more __3____, but because it's easier to do. Getting the new disk drive installed is positively trivial compared to figuring out why Horace is in a blue funk(恐惧) or why Susan is dissatisfied with the company after only a few months. Human interactions are complicated and never very crisp(干脆的,干净利落的)and clean in their effects, but they matter more than any other aspect of the work.    If you find yourself concentrating on the ____4__ rather than the ___5___, you're like the vaudeville character(杂耍人物)who loses his keys on a dark street and looks for them on the adjacent street because, as he explains, "The light is better there!".3、______

单选题

课程名称:软件评测师

题目:People are including in an illusion whenever they find themselves explaining at a cocktail(鸡尾酒)party, say, that they are "in computers," or "in electronic funds transfer". the implication is that they are part of the high-tech world, Just between US, they usually aren't. The researchers who made fundamental breakthroughs in those areas are in high-tech business. The rest of US are ___1___ of their work. We use computers and other new technology components to develop our products or to organize our affairs. Because we go about this work in teams and projects and other tightly knit working groups(紧密联系在一起的工作小组), we are mostly in the human communication business. Our successes stem from good human interactions by all participants in the effort, and Our failures stem from poor human interactions.    The main reason we tend to focus on the ___2___ rather than the human side of the work is not because it's more __3____, but because it's easier to do. Getting the new disk drive installed is positively trivial compared to figuring out why Horace is in a blue funk(恐惧) or why Susan is dissatisfied with the company after only a few months. Human interactions are complicated and never very crisp(干脆的,干净利落的)and clean in their effects, but they matter more than any other aspect of the work.    If you find yourself concentrating on the ____4__ rather than the ___5___, you're like the vaudeville character(杂耍人物)who loses his keys on a dark street and looks for them on the adjacent street because, as he explains, "The light is better there!".2、______