b00902HW 板


LINE

※ [本文轉錄自 NTU-Exam 看板 #1BTZ7xFP ] 作者: andy74139 (月^4) 看板: NTU-Exam 標題: [試題] 98上 周承復 計算機概論 期末考 時間: Sat Feb 13 13:00:41 2010 課程名稱︰ 計算機概論 課程性質︰ 必修 課程教師︰ 周承復 開課學院: 電機資訊學院 開課系所︰ 資訊工程學系 考試日期(年月日)︰ 2010/01/09 考試時限(分鐘): 100分鐘 是否需發放獎勵金: 是 (如未明確表示,則不予發放) 試題 : 1. (20%) Security a) (5%) Distinguish between symmetric-key and asymmetric-key cryptography b) (5%) List the security services provided by a digital signature c) (5%) Alice often needs to encipher plaintext written in lowercase letter (a to z). If she uses a shift cipher, what is the range of keys from which she can select. (Remember that the ciphertext would be composed of the lowercase letters.) d) (5%) In a simple transposition cipher, what is the maximum number of characters that will be changed in the ciphertext if only a single character is changed in the plaintext? 2. (30%) Programming Language a) (10%) Draw the parse tree for the expression x-y✕z+y✕x based on the syntax diagrams in Figure 1? Figure 1: http://w.csie.org/~b97902133/CS/ntuexam_CS_F1.png
b) (10%) Briefly describe the task of each of the following. (a) Lexical analyzer, (b) Parser, and (c) Code Generator c) (5%) The following is a program segment and the definition of a procedure named sub. . procedure sub . . X ← 8; . apply procedure sub; X ← 2; print the value of X; . . . What value will be printed by the program segment if X is a global variable? What value will be printed by the program segment if X is a declared as a local variable within the procedure? d) (5%) What does it mean to say that a programming language is strongly typed? 3. (30%) Software Engineering a) (10%) What is the difference between coupling and cohesion? Which should be minimized and which should be maximized? Why? b) (10%) Describe (a) the data coupling, and (b) the control coupling, which are represented by the following structure chart. ┌──┐ │ A │ └──┘ ╱│\ w↗╱ │ \\w ╱╱ │ \↘ ↙ ↓ ↘ ┌──┐ ┌──┐ ┌──┐ │ B │ │ C │ │ D │ └──┘ └──┘ └──┘ \ │ \ ││w \ │↓ ↘ ↓ ┌──┐ │ E │ └──┘ c) (10%) In each case below indicate whether the activity relates to glass-box testing or black-box testing. (i) Testing to see if the system performs in a timely manner (ii) Designing test data to ensure that each instruction is executed at least once (iii) Testing to see if the software system meets the requirements identified during original analysis 4. (30%) Data Structure a) (5%) Suppose the expression X[1,1] referred to the first-row, first-column entry in a two-dimensional array with 5 rows and 7 columns. If the array is stored in row-major order beginning at memory address x and each entry in the array requires n memory cells, what address polynomial would be used to compute the address of the biginning of the entry X[I,J]? b) (5%) Suppose the expression X[0,0] referred to the first-row, first-column entry in a two-dimensional array with 5 rows and 7 columns. If the array is stored in column-major order beginning at memory address x and each entry in the array requires n memory cells, what address polynomial would be used to compute the address of the beginning of the entry X[I,J]? c) (5%) What sequence of nodes from the tree A / \ B C / \ / \ D E F G would be printed if the follwing recursive procedure were applied to it? procedure printTree (Tree) if (Tree is not empty) then (print the root of Tree; apply the procedure printTree to the right subtree of Tree) d) (5%) If the longest path in a binary tree contains five nodes, what is the maximum number of terminal nodes that could be in the tree? e) (10%) The following represents a portion of a computer's main memory. Address Contents 50 51 51 56 52 53 53 57 54 58 55 50 56 57 57 52 58 53 (i) What would be stored at address 50 after executing the instruction "Copy the contents of the memory cell at address 54 to address 50"? (ii) What would be stored at address 50 after executing the instruction "Copy the contents of the memory cell pointed to by the cell at address 54 to address 50"? 5. (20%) DataBase a) (10%) Given the relation Parts containing the attributes PartName, PartNumber, and SupplierID as well as the relation Suppliers containing the attributes SupplierID, Address, FaxNumber, write a sequence of SELECT, PROJECT, and JOIN operations to obtain the supplier identifications and fax numbers for all the suppliers that supply the part whose part number is X4J26. b) (5%) Describe the distinction between class description and cluster analysis. c) (5%) Which structures are designed to provide efficient access to randomly chosen items:(a) sequential file, (b) indexed file, (c) hash file, (d) hash table (multiple choice) ※ 編輯: cchao28 來自: 140.112.239.109 (01/02 12:38)







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:e-shopping站內搜尋

TOP