欧美一区二区视频观看视频_爱情电影网av一区二区_在线能看的av网址_免费av一区二区

題目網 >職業資格類 >軟考 >試題列表
開-閉原則(Open-Closed Principle,OCP)是面向對象的可復用設計的基石。開-閉原則是指一個軟件實體應當對( )開放,對( )關閉;里氏代換原則(Liskov Substitution Principle,LSP)是指任何( )可以出現的地方,(請作答此空)一定可以出現。依賴倒轉原則(Dependence Inversion Principle,DIP)就是要依賴于( )而不依賴于( ),或者說要針對接口編程,不要針對實現編程。
A.變量
B.常量
C.基類對象
D.子類對象
常見的網絡操作系統有UNIX、Windows CE和Linux。
某計算機系統采用頁式存儲管理方案,假設其地址長度為32位,其中頁號占20位,頁內地址占12位。系統中頁面總數與頁面大小分別為()。
A.1K,1024K
B.4K,1024K
C.1M,1K
D.1M,4K
()不會影響測試質量。
A.用戶需求頻繁變化
B.測試流程不規范
C.采用背靠背測試方式
D.測試周期被壓縮
在面向對象技術中,不同的對象在收到同一消息時可以產生完全不同的結果,這一現象稱為(39),它由(40)機制來支持。利用類的層次關系,把具有通用功能的消息存放在高層次,而不同的實現這一功能的行為放在較低層次,在這些低層次上生成的對象能夠給通用消息以不同的響應。
A.綁定
B.繼承
C.消息
D.多態
以下關于RISC和CISC的敘述中,不正確的是( )
A.RISC通常比CISC的指令系統更復雜
B.RISC通常會比CISC配置更多的寄存器
C.RISC編譯器的子程序庫通常要比CISC編譯器的子程序庫大得多
D.RISC比CISC更加適合VLSI工藝的規整性要求
下列不屬于報文認證算法的是()
A.MD5
B.SHA-1
C.RC4
D.HMAC
邏輯覆蓋標準包括()。①判定覆蓋②語句覆蓋③條件判定覆蓋④修正條件判定覆蓋⑤條件組合覆蓋
A.①③④⑤
B.①②③⑤
C.①②④⑤
D.①②③④⑤
There is nothing in this world constant but inconstancy.-SWIFT
Project after project designs a set of algorithms and then plunges into construction of customer-deliverable software on a schedule that demands delivery of the first thing built.
In most projects,the first system built is( )usable.It may be too slow,too big,awkward to use,or all three.There is no( )but to start again,smarting but smarter,and build a redesigned version in which these problems are solved.The discard and( )may be done in one lump,or it may be done piece-by-piece.But all large-system experience shows that it will be done.Where a new system concept or new technology is used,one has to build a system to throw away,for even the best planning is not so omniscient(全知的)as to get it right the first time.
The management question,therefore,is not whether to build a pilot system and throw it away.You will do that.The only question is whether to plan in advance to build a(請作答此空),or to promise to deliver the throwaway to customers.Seen this way,the answer is much clearer.Delivering that throwaway to customers buys time,but it does SO only at the( )of agony(極大痛苦)for the user,distraction for the builders while they do the redesign,and a bad reputation for the product that the best redesign will find hard to live down.
Hence plan to throw one away;you will,anyhow.
A.throwaway
B.system
C.software
D.product
軟件評測師下午場考試一共有()道題?
A.4
B.5
C.6
D.7
計算機中CPU對其訪問速度最快的是
A.內存
B.Cache
C.通用寄存器
D.硬盤
根據輸入輸出等價類邊界上的取值來設計用例的黑盒測試方法是()
A.等價類劃分法
B.因果圖法
C.邊界值分析法
D.場景法
開-閉原則(Open-Closed Principle,OCP)是面向對象的可復用設計的基石。開-閉原則是指一個軟件實體應當對( )開放,對( )關閉;里氏代換原則(Liskov Substitution Principle,LSP)是指任何( )可以出現的地方,( )一定可以出現。依賴倒轉原則(Dependence Inversion Principle,DIP)就是要依賴于(請作答此空)而不依賴于( ),或者說要針對接口編程,不要針對實現編程。
A.程序設計語言
B.建模語言
C.實現
D.抽象
( )has become a fact of modern life,with millions of people now shopping on-line.
A.E-mail
B.E-commerce
C.E-learning
D.E-communication
三總線結構的計算機總線系統由()組成。
A.CPU總線、內存總線和IO總線
B.數據總線、地址總線和控制總線
C.系統總線、內部總線和外部總線
D.串行總線、并行總線和PCI總線
在UNIX操作系統中,把輸入/輸出設備看作是()。
A.普通文件
B.目錄文件
C.索引文件
D.特殊文件
Extreme Programming(XP)is a discipline of software development with___1___of simplicity,communication,feedback and courage.Successful software development is a teameffort-not just the development team,but the larger team consisting of customer,management and developers.XP is a simple process that brings these people together andhelps them to succeed together.XP is aimed primarily at object-oriented projects using teamsof a dozen or fewer programmers in one location.The principles of XP apply to any__2____project that needs to deliver quality software rapidly and flexibly.An XP project needs a(an)___3__customer to provide guidance.Customers,programmers,managers,are all working___4__to build the system that'sneedeD.Customers-those who have software that needs to be developed-will learn simple,effective ways to___5___what they need,to be sure that they are getting what they need,and to steer the project to success.
1、____
A.importance
B.keys
C.roles
D.values
閱讀下列說明和C代碼,回答問題1至問題3,將解答寫在答題紙的對應欄內。
【說明】模式匹配是指給定主串t和子串s,在主串t中尋找子串s的過程,其中s稱為模式。如果匹配成功,返回s在t中的位置,否則返回-1 。
KMP算法用next數組對匹配過程進行了優化。KMP算法的偽代碼描述如下: 1.在串t和串s中,分別設比較的起始下標i=j=0。 2.如果串t和串s都還有字符,則循環執行下列操作:(1)如果j=-l或者t[i]=s[j],則將i和j分別加1,繼續比較t和s的下一個字符;(2)否則,將j向右滑動到next[j]的位置,即j =next[j]。 3.如果s中所有字符均已比較完畢,則返回匹配的起始位置(從1開始);否則返回-1.其中,next數組根據子串s求解。求解next數組的代碼已由get_next函數給出?!綜代碼】
(1)常量和變量說明
t,s:長度為憫鉑Is的字符串
next:next數組,長度為Is
(2)C程序
#include
#include
#include
/*求next[]的值*/
void get_next( int *next, char *s, int Is)
{
int i=0,j=-1;
next[0]=-1;/*初始化next[0]*/
while(i < ls){/*還有字符*/
if(j==-1l
ls[i]==s[j]){/*匹配*/
j++;
i++;
if( s[i]==s[j])
next[i]
= next[j];
else
Next[i]
= j;
}
else
j = next[j];
}
}
int kmp( int *next, char *t ,char *s, int
lt, int Is )
{
Int i=
0,j =0 ;
while
(i < lt &&(1) ){
if(
j==-1 || (2)){
i
++ ;
j
++ ;
}
else
(3);
}
if (j >= ls)
return (4) ;
else
return -1;
} 【問題1】(8分)
根據題干說明,填充C代碼中的空(1)~(4).
【問題2】(2分)
根據題干說明和C代碼,分析出kmp算法的時間復雜度為(5)(主串和子串的長度分別為It和Is,用O符號表示)。
【問題3】(5分)
根據C代碼,字符串“BBABBCAC”的next數組元素值為(6)(直接寫素值,之間用逗號隔開)。若主串為“AABBCBBABBCACCD”,子串為“BBABBCAC”,則函數Kmp的返回值是(7)。
黑盒測試不能發現______。
A.功能錯誤或者遺漏
B.輸入輸出錯誤
C.執行不到的代碼
D.初始化和終止錯誤
聯系我們 用戶中心
返回頂部