阿摩線上測驗
登入
首頁
>
程式語言
>
96年 - 96 關務特種考試_四等_資訊處理:程式語言概要#39368
> 申論題
一、請用中文描述下列文法所定義的語言:(20 分)
->
-> a
| a
-> b
| b
-> c
| c
相關申論題
二、命令語言(imperative language)中的變數(variable)是電腦什麼元件的抽象描述? (10 分)
#117433
三、有下列 JAVA 程式片段,請寫出執行結果。(20 分) String s4 = new String(“restful”) ; String s5 = new String(“restful”) ; String s6 = new String(“peaceful”) ; String s7 = s4 ; String s8 = “restful” ; String s9 = “restful” ; System.out.println(s4.equals(s5)) ; System.out.println(s4.equals(s6)) ; System.out.println(s4 == s5) ; System.out.println(s4 == s7) ; System.out.println(s4 == s8) ; System.out.println(s8 == s9) ;
#117434
⑴若 try 區段無 exception 產生,請依序指出那些 statement list 會被執行。(10 分)
#117435
⑵若 try 區段有 exception-class1 的 exception 產生,請依序指出那些 statement list 會 被執行。(10 分)
#117436
⑶若 try 區段有 exception-class2 的 exception 產生,請依序指出那些 statement list 會 被執行。(10 分)
#117437
五、輸入 34 於下列 getBinary 遞迴程式,請問回傳值為何?(20 分) /** getBinary returns a String representation of the binary * equivalent of a specified integer n. * The worstTime(n) is O(log n).* * @param n – an int in decimal notation. * @return the binary equivalent of n, as a String * @throws IllegalArgumentException, if n is less than 0 */ public static String getBinary (int n) { if (n < 0) throw new IllegalArgumentException( ); if (n
#117438
五、請描述何謂白箱測試(white-box testing)和黑箱測試(black-box testing) 。 (10 分)
#556119
四、請問下列 C 語言程式執行後的輸出為何?
#556118
8. student_func(&stu1);
#556117
7. stu1.last_name = "Donald";
#556116
相關試卷
114年 - 114 公務升官等考試_薦任_資訊處理:程式語言#133261
114年 · #133261
114年 - 114 司法特種考試_三等_檢察事務官電子資訊組:程式語言#129571
114年 · #129571
113年 - 113 司法特種考試_三等_檢察事務官電子資訊組:程式語言#122108
113年 · #122108
112年 - 112 公務升官等考試_薦任_資訊處理:程式語言#117323
112年 · #117323
112年 - 112 司法特種考試_三等_檢察事務官電子資訊組:程式語言#116208
112年 · #116208
111年 - 111 司法特種考試_三等_檢察事務官電子資訊組:程式語言#110333
111年 · #110333
111年 - 111 身心障礙特種考試_三等_資訊處理:程式語言#107554
111年 · #107554
110年 - 110 公務升官等考試_薦任_資訊處理:程式語言#103744
110年 · #103744
110年 - 110 司法特種考試_三等_檢察事務官電子資訊組:程式語言#103229
110年 · #103229
110年 - 110 高等考試_三級_資訊處理:程式語言#102818
110年 · #102818