The software architecture is a set of software components, subsystems, relationships, interactions, the properties of each of these elements, and the set of guiding principles that together constitute the fundamental properties and constraints of a software system or set of systems. (71) defines a general set of element types and their interactions. The examples include Pipes and Filters, Model-View-Controller, and Reflection. A (72) in software architecture is a representation used to understand or document one or more aspects of a problem or solution. Architecture is usually used in conjunction with many adjunct terms. The (73) defines the key strategies, organization, goals and related processes of the enterprise. At the enterprise level, the (74) may be more of a set of guidelines on how the various software architectures should be constructed consistently across the enterprise. The (75) , which describes the high-level set of elements involved in application from a particular domain along with their interactions, is often used to focus on subsystem definition rather than application process level definition. (72)处填()。
A. model
B. domain
C. component
D. subsystem
查看答案
试题四阅读以下说明和C程序代码,将应填入___(n)___处的语句写在答题纸的对应栏内。[说明]函数MultibaseOutput(long n,int B)的功能是:将一个无符号十进制整数n转换成 B(2≤B≤16)进制数并输出。该函数先将转换过程中得到的各位数字入栈,转换结束后再把B进制数从栈中输出。有关栈操作的诸函数功能见相应函数中的注释。C代码中的符号常量及栈的类型定义如下:# define MAXSIZE 32typedef structint * elem; /* 栈的存储区 */int max; /* 栈的容量,即栈中最多能存放的元素个数 */int top; /* 栈顶指针 */Stack;[C代码]int InitStack(Stack * S,int n) / * 创建容量为n的空栈 */S->elem=(int *)malloc(n * sizeof(int));if(S->elem==NULL)return-1;S->max=n; (1) =O;return 0;int Push(Stack * S,int item) / * 将整数item压入栈顶 * /if(S->top==S->max) printf(“Stack is full! \n”);return-1;(2) =item;return 0;int StackEmpty(StackS) return (! S.top) 1:0; / * 判断栈是否为空 * /int Pop(Stack *S ) / * 栈顶元素出栈 * /if(! S->top)printf(“Pop an empty stack! \n”);return-1;return (3) ;void MultibaseOutput(long n,int B)int m;StackS;if (InitStack(&S,MAXSIZE))printf(“Failure! \n”);return;doif(Push(&S, (4) ))printf(“Failure! \n”);return;n= (5) ;while(n!=0);while(! StackEmpty(S)) / * 输出B进制的数 * /m=Pop(&S);if(m<10)printf(“%d”,m); / * 小于10,输出数字 * /else printf(“%c”,m+55); / * 大于或等于10,输出相应的字符 * /printf(“\n”);
系统测试由若干个不同的测试类型组成,其中 (42) 检查系统能力的最高实际限度,即软件在一些超负荷情况下的运行情况; (43) 主要是检查系统的容错能力。 (42)处填()。
A. 强度测试
B. 性能测试
C. 恢复测试
D. 可靠性测试
近期,各地召开水价听证,讨论水价问题,有些群众反映,一召开听政会就涨价,作为政府物价管理部门,你如何看?
若某航空公司的飞机订票系统有n个订票终端,系统为每个订票终端创建一个售票终端的进程。假设Pi(i=1,2,…,n)表示售票终端的进程,Hj(i=1,2,…,m)表示公共数据区,分别存放各个航班的现存票数,Temp为工作单元。系统初始化时将信号量S赋值为(1)。Pi进程的工作流程如下,a、b和c处将执行P操作和V操作,则图中a、b和c应填入(2) 1()
A. 0
B. 1
C. 2
D. 3