所屬科目:技檢◆電腦軟體設計-C++-乙級
(A)3 (B)4 (C)5 (D)6 。
(A)1 (B)2 (C)3 (D)4 。
(A)240ff40 (B)240ff46 (C)240ff52 (D)240ff58 。
(A)240ff80 (B)240ffc6 (C)240fed4 (D)240fedd 。
(A)abcde, 1 (B)cdefg, 0 (C)bcdef, -1 (D)abcde, 0 。
(A)0 (B)7 (C)8 (D)10 。
(A)2 (B)3 (C)4 (D)5 。
(A)12 (B)11 (C)可以編譯,無法執行 (D)無法編譯 。
(A)0 (B)20 (C)可以編譯,無法執行 (D)無法編譯 。
(A)11 (B)12 (C)可以編譯,無法執行 (D)無法編譯 。
(A)10 (B)20 (C)可以編譯,無法執行 (D)無法編譯 。
(A) (B)(C) (D)將 Z 初始化 。
(A)甲、乙、丙均正確 (B)僅甲、乙正確 (C)僅甲、丙正確 (D)僅乙、丙正確 。
(A)CLobj(3,5); 則 obj.Sum() 之值為 5 (B)CL obj(3); 則 obj.Sum() 之值為 3 (C)CL obj; 則 obj.Sum() 之值為 0 (D)CL r(2,5); CL obj(r.Sum()) 則obj.Sum() 之值為 12 。
(A)x.w (B)x.i (C)x.f(y) (D)f(y) 。
(A)class A 繼承class C,class B 亦繼承 class C (B)class B 繼承 class A,class A 亦繼承class C (C)class C 繼承 class A,class A 亦繼承 class B (D)class C 繼承class A,class C 亦繼承 class B 。
(A)class C 自class A 繼承了 f1,f3 (B)class C 自 class B 繼承了 f2,f4 (C)class C 自 classA 繼承了 f1 (D)class C 自 class B 繼承了 f2 。
(A)1 2 3 (B)1 2 5 (C)1 2 3 5 (D)1 2 4 5 3 。
(A)My nameis Rover, and my breed is a Weiner (B)My name is Rover (C), and mybreed is a Weiner (D)不會印出任何內容 。
(A)My name is Rover, and my breed is a Weiner (B)My name isRover (C), and my breed is a Weiner (D)不會印出任何內容 。
(A)pb()可以呼叫自己以及 pd() (B)pd()可以呼叫自己以及 pb() (C)outside()可以呼叫自己以及pd()與 pb() (D)outside()可以呼叫自己但不可以呼叫 pb() 。
(A)pb()可以使用成員 b1, b2 及 d (B)pd()可以使用成員 b1 及 d (C)outside()可以使用成員 pd()(D)outside()可以使用成員 pb() 。
(A)2 (B)5 (C)6(D)8 。
(A)int x=3,y=4; cout << larger(x,y); (B)float x=3, y=4; cout << larger(x,y); (C)charx='3', y='4'; cout << larger(x,y); (D)char x[]="3", y[]="4"; cout <
(A) (B) (C) (D) 。