{
  "categoryId": "11902",
  "categoryName": "電腦軟體設計(C++)",
  "level": "B",
  "questions": [
    {
      "id": "6f01e82ab3",
      "no": 1,
      "stem": "C++語言將分號放在 if 指令敘述右小括號後面，會發生以下何種情況？",
      "options": {
        "A": "邏輯錯誤",
        "B": "語法錯誤",
        "C": "編譯錯誤",
        "D": "執行時期例外錯誤"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "a3248dccfb",
      "no": 2,
      "stem": "有關C++語言中變數命名，下列那一個錯誤？",
      "options": {
        "A": "Void",
        "B": "_123",
        "C": "print",
        "D": "int"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "a7226d42b3",
      "no": 3,
      "stem": "有關C++語言中控制結構的敘述，以下那一個錯誤？",
      "options": {
        "A": "while 判斷後面的條件，若成立就做迴圈主體",
        "B": "for 後面小括號內可以給初始值、條件判斷與每次迴圈前必做動作",
        "C": "if 後面小括號內為條件判斷式",
        "D": "switch 若沒有break 則會繼續執行下去"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0b2208e7d8",
      "no": 4,
      "stem": "C++語言要比較二個字串大小，要使用以下那一個函式或運算子？",
      "options": {
        "A": "equals",
        "B": "=",
        "C": "compareTo",
        "D": "=="
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "02802c5026",
      "no": 5,
      "stem": "C++語言停止程式執行的指令，是以下那一個？",
      "options": {
        "A": "quit(0);",
        "B": "end(0);",
        "C": "abort(0);",
        "D": "exit(0);"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "e64cc8fee2",
      "no": 6,
      "stem": "若C++語言的函式沒有回傳值，在方法名稱前面要使用以下那一個保留字？",
      "options": {
        "A": "public",
        "B": "private",
        "C": "void",
        "D": "null"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "04a469048d",
      "no": 7,
      "stem": "若C++語言的函式有回傳值，在方法主體內要使用以下哪一個保留字？",
      "options": {
        "A": "void",
        "B": "throws",
        "C": "return",
        "D": "invoke"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "58fe508ed8",
      "no": 8,
      "stem": "有關C++程式寫作風格，以下何者正確？",
      "options": {
        "A": "每一行長度最好不要少於 100 字",
        "B": "程式設計師寫作風格不標準，程式將無法編譯執行",
        "C": "註解符號可以使用//...和/* ...",
        "D": "一個變數宣告使用一行比較好"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "42a9c30807",
      "no": 9,
      "stem": "有關C++程式一般寫作風格(coding convention)，以下何者錯誤？",
      "options": {
        "A": "指標變數命名以小寫p 開頭",
        "B": "最好以動作命名函式(Function)",
        "C": "全域常數命名以大寫字母和底線區隔複合字",
        "D": "程式指令最好全部都往左對齊，不要有任何空白縮排"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "49aee192c6",
      "no": 10,
      "stem": "有關C++語言前置處理的描述，何者正確？",
      "options": {
        "A": "前置處理指令屬於C 的語法指令",
        "B": "前置處理指令只能出現在程式的最前頭",
        "C": "前置處理是在編譯前進行",
        "D": "#include 和 #set 是前置處理指令"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "e9c8d31566",
      "no": 11,
      "stem": "有關C++語言的變數命名，以下何者正確？",
      "options": {
        "A": "%abcd",
        "B": "1abcd",
        "C": "fruit- apple_long_name",
        "D": "_a_long_name"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "c2edbacba8",
      "no": 12,
      "stem": "下列何者為C 語言的動態記憶體管理函數？",
      "options": {
        "A": "new, delete",
        "B": "malloc, free",
        "C": "copy, paste",
        "D": "define, typedef"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "009d75f77e",
      "no": 13,
      "stem": "下列C++之typedef 用法何者正確？",
      "options": {
        "A": "typedef integer;",
        "B": "typedef int;",
        "C": "typedef int integer;",
        "D": "typedef integer int;"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "67e4eb484a",
      "no": 14,
      "stem": "C++語言的字串是字元陣列，使用那一個字元標示字串的結束？",
      "options": {
        "A": "'\\n'",
        "B": "'\\0'",
        "C": "'\\t'",
        "D": "'\\r'"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "49e5f1bf61",
      "no": 15,
      "stem": "對於C++ 語言特性的敘述，以下那一個錯誤？",
      "options": {
        "A": "變數和陣列的儲存特性是暫時性的儲存，該應用程式結束就會消失",
        "B": "當超出區域變數範圍時，區域變數資料將無法使用",
        "C": "檔案可以長期維持大量資料",
        "D": "資料放在檔案中稱為短暫瞬間資料"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "14eb2f51db",
      "no": 16,
      "stem": "以下何者不是C++ 語言整數資料型態？",
      "options": {
        "A": "double",
        "B": "short",
        "C": "byte",
        "D": "int"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "302ece8d51",
      "no": 17,
      "stem": "以下何者是C++ 語言的關鍵字(Keyword)？",
      "options": {
        "A": "BIOS",
        "B": "this",
        "C": "then",
        "D": "pointer"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "b820de3e35",
      "no": 18,
      "stem": "以下哪一個C++ 語言運算子有最高的優先等級？",
      "options": {
        "A": "unary +",
        "B": "binary +",
        "C": "%",
        "D": "*"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "d2df9e5887",
      "no": 19,
      "stem": "C++ 語言宣告陣列 int x[100]，最小索引值是以下那一個？",
      "options": {
        "A": "-1",
        "B": "0",
        "C": "1",
        "D": "2"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "b5a3297c10",
      "no": 20,
      "stem": "C++ 語言宣告陣列 int x[100]，最大索引值是以下那一個？",
      "options": {
        "A": "98",
        "B": "99",
        "C": "100",
        "D": "101"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "36ac5f5004",
      "no": 21,
      "stem": "如果C 語言遞迴函式沒有基本案例(Base Case)，以下那一個敘述正確？",
      "options": {
        "A": "程式將產生不正確結果",
        "B": "產生編譯錯誤",
        "C": "產生 MissingBaseCaseException",
        "D": "程式無法停止"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "714c069560",
      "no": 22,
      "stem": "有關引入(include)輸出輸入所需各種功能的相關宣告，下列語法何者正確？",
      "options": {
        "A": "#include ＜ iostream.h＞",
        "B": "#include ＜Iostream.h＞",
        "C": "#include ＜iostream＞",
        "D": "#include \"iostream\""
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "39de4bec38",
      "no": 23,
      "stem": "若C 程式巨集(macro)定義如下，程式執行結束後之結果為何？",
      "options": {
        "A": "ans1=12, ans2=23",
        "B": "ans1=12, ans2=35",
        "C": "ans1=30, ans2=23",
        "D": "ans1=30, ans2=35"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-023-39de4bec38.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "2125c1a193",
      "no": 24,
      "stem": "函數f1 之第一個參數的資料結構為陣列，下列有關陣列在函數f1 之宣告方式，何者是正確？",
      "options": {
        "A": "void f1(int array, int size);",
        "B": "void f1(int& array, int size);",
        "C": "void f1(int array(100), int size);",
        "D": "void f1(float array[], int size);"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "5fca968b2e",
      "no": 25,
      "stem": "函數f1 之第一個參數的資料結構為陣列int pages[10][30];，下列有關二維陣列在函數f1 之宣告方式，何者是正確？",
      "options": {
        "A": "void f1(int pages[][], int size);",
        "B": "void f1(int pages[][30], int size);",
        "C": "void f1(int pages[10][], int size);",
        "D": "void f1(int& pages, int size);"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "ca87a5cf7a",
      "no": 26,
      "stem": "若p1 為一個陣列指標，欲釋放陣列記憶空間，下列寫法何者是正確？",
      "options": {
        "A": "delete [] p1;",
        "B": "delete p1[];",
        "C": "delete *p1;",
        "D": "delete p1;"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "b27fb0aa69",
      "no": 27,
      "stem": "若C++程式片段如下，下述何者在執行編譯(Compile)時是正確的？",
      "options": {
        "A": "ptr1 = \"training\";",
        "B": "*ptr1 = 'S';",
        "C": "ptr2 = \"area\";",
        "D": "*ptr2 = 'P';"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-027-b27fb0aa69.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "26561284f1",
      "no": 28,
      "stem": "若C++程式片段如下，下述何者在執行編譯(Compile)時是正確的？",
      "options": {
        "A": "ptr1 = \"knowledge\";",
        "B": "*ptr1 = 'D';",
        "C": "ptr2 = \"management\";",
        "D": "*ptr2 = 'S';"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "4c7ca50d0c",
      "no": 29,
      "stem": "下列C++之語法何者與(!(x＜15 && y＞=3))同義？",
      "options": {
        "A": "(x＞15 && y＜=3)",
        "B": "(x＞=15 && y ＜ 3)",
        "C": "(x＞=15 || y ＜ 3)",
        "D": "(x＞15 || y ＜ 3)"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "2e7bb286ad",
      "no": 30,
      "stem": "依據以下之定義，下列之用法何者正確？",
      "options": {
        "A": "SOCCER-- = BASEBALL",
        "B": "BASEBALL++ = SOCCER",
        "C": "HOCKEY + FOOTBALL ＜＞SOCCER",
        "D": "FOOTBALL ＜= SOCCER"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0c9a7f07e7",
      "no": 31,
      "stem": "下列C++程式片段，輸出結果何者正確？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-031-0c9a7f07e7.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "40e14c7ec1",
      "no": 32,
      "stem": "依據C++以下之變數宣告，下列之用法何者錯誤？",
      "options": {
        "A": "p=q;",
        "B": "*p=56;",
        "C": "p=x;",
        "D": "*p=*q;"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "94b4a87643",
      "no": 33,
      "stem": "依據C++以下之變數宣告，欲將num 值加1，下列敘述何者正確？",
      "options": {
        "A": "p++;",
        "B": "(*p)++;",
        "C": "(＆num)++;",
        "D": "(*num)++;"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-033-94b4a87643.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "c4f1924c0d",
      "no": 34,
      "stem": "在會議室有n 個人，每個人彼此會握手寒喧一次，欲知道此n 個人共握手幾次，下列遞迴函式之寫法何者是正確的？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "圖D"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01",
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-034-c4f1924c0d-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-034-c4f1924c0d-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-034-c4f1924c0d-C.svg"
        ],
        "D": [
          "images/B/11902/redrawn/q-wi01-034-c4f1924c0d-D.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder"
      ]
    },
    {
      "id": "f22a7d4252",
      "no": 35,
      "stem": "有一C 語言之switch 敘述如下，此敘述等同於下列那一個程式片段？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "圖D"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-035-f22a7d4252.svg"
      ],
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-035-f22a7d4252-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-035-f22a7d4252-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-035-f22a7d4252-C.svg"
        ],
        "D": [
          "images/B/11902/redrawn/q-wi01-035-f22a7d4252-D.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "8caa4ae4f7",
      "no": 36,
      "stem": "依據以下之C++程式片段，其輸出結果何者正確？",
      "options": {
        "A": "ALGEBRA",
        "B": "0",
        "C": "1",
        "D": "\"ALGEBRA\""
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-036-8caa4ae4f7.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "af4e4642ba",
      "no": 37,
      "stem": "對於C 語言字串的定義，以下那一個錯誤？",
      "options": {
        "A": "char s[]=\"123\";",
        "B": "char s[3]=\"123\";",
        "C": "char s[]=\"1\";",
        "D": "char s[]={'1', '2', '3', '\\0'};"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "8f907a768e",
      "no": 38,
      "stem": "C 語言宣告2 維陣列 int num[3][4]，有一指標變數(int *p)指向此二維陣列的的一個元素，以下那一個方式正確？",
      "options": {
        "A": "p=num;",
        "B": "p=num[1][2];",
        "C": "p=num[0][0];",
        "D": "p = *num;"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "3ef859b55c",
      "no": 39,
      "stem": "C 程式中宣告 double d[2][3]且所有元素都給定值後，以下那一個可以取出特定元素的值？",
      "options": {
        "A": "d[2][3]",
        "B": "*(*d+1)",
        "C": "**(d+2)",
        "D": "*(d+1)"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "cc5b78f8f6",
      "no": 40,
      "stem": "對於C 程式的宣告char s[5][6]; char *p;，下列那一個正確？",
      "options": {
        "A": "p=s;",
        "B": "p =s[2][4];",
        "C": "p=s[0][0];",
        "D": "p = *s;"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0e39f926a9",
      "no": 41,
      "stem": "C 語言陣列敘述，以下哪一個正確？",
      "options": {
        "A": "char a[10]; gets();",
        "B": "char a[1],b[2]; gets(a,b);",
        "C": "puts(\"AAA BBB\");",
        "D": "char a[3]; scanf(\"%f\", a);"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "58ec53f027",
      "no": 42,
      "stem": "對於C 程式的宣告，char *b, *d[8]; int x=5, y, *z; 以下那一個比較正確？",
      "options": {
        "A": "b= malloc(x*sizeof(char));",
        "B": "b=(char *) malloc(x* sizeof(char));",
        "C": "d=(char *) malloc(x* sizeof(char));",
        "D": "x = (int *) malloc(y* sizeof(int));"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "72f97f69d5",
      "no": 43,
      "stem": "對於以下C++程式，執行後發生編譯錯誤的是那一個？",
      "options": {
        "A": "if ( answer == 7 ) printf( \"correct\" ); else printf( \"incorrect\" );",
        "B": "printf( answer != 7 ？ \"correct\" : \"incorrect\" );",
        "C": "printf( answer ＜＞ 7 ？ \"correct\" : \"incorrect\" );",
        "D": "answer == 7 ？ printf( \"correct\" ) : printf( \"incorrect\" );"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "401d0a186c",
      "no": 44,
      "stem": "針對以下C++程式片段，執行後x 值是以下那一個？",
      "options": {
        "A": "0",
        "B": "1",
        "C": "2",
        "D": "3"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-044-401d0a186c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "f9a3f2bcf2",
      "no": 45,
      "stem": "針對以下C++程式片段，執行後x 值是以下那一個？",
      "options": {
        "A": "8.04",
        "B": "5.5",
        "C": "8",
        "D": "5"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-045-f9a3f2bcf2.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b8cf53307b",
      "no": 46,
      "stem": "針對以下C++程式片段，執行後sum 值是以下那一個？",
      "options": {
        "A": "10",
        "B": "15",
        "C": "55",
        "D": "66"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-046-b8cf53307b.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "7ec9d2f3e4",
      "no": 47,
      "stem": "針對以下C++程式，執行後輸出是以下那一個？",
      "options": {
        "A": "2",
        "B": "3",
        "C": "4",
        "D": "5"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-047-7ec9d2f3e4.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "6d78af26e7",
      "no": 48,
      "stem": "C++程式指令printf(\"%6.2f\", 597.7231); 執行後輸出為以下那一個？",
      "options": {
        "A": "597.723",
        "B": "597.72",
        "C": "000597.72",
        "D": "597"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "224ad010eb",
      "no": 49,
      "stem": "下列之宣告何者是同義？",
      "options": {
        "A": "甲丁",
        "B": "丙丁",
        "C": "甲丙",
        "D": "丙戊"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-049-224ad010eb.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "625b6bee64",
      "no": 50,
      "stem": "對於以下C 程式，執行後輸出是那一個？",
      "options": {
        "A": "3",
        "B": "4",
        "C": "5",
        "D": "6"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-050-625b6bee64.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d06daaf2f4",
      "no": 51,
      "stem": "對於以下C 程式，執行後輸出是那一個？",
      "options": {
        "A": "3",
        "B": "4",
        "C": "5",
        "D": "6"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-051-d06daaf2f4.svg"
      ],
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "ce916271b9",
      "no": 52,
      "stem": "對於以下C 程式，執行後輸出是那一個？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-052-ce916271b9.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "a2d8bb83d5",
      "no": 53,
      "stem": "對於以下C 程式，執行後輸出是那一個？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-053-a2d8bb83d5.svg"
      ],
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "335bd1ceba",
      "no": 54,
      "stem": "對於以下C 程式，執行後如果第一個和第二個輸出是240ff18 和 240ff38，則第三個輸出是那一個？",
      "options": {
        "A": "240ff40",
        "B": "240ff46",
        "C": "240ff52",
        "D": "240ff58"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-054-335bd1ceba.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "3e259d67e5",
      "no": 55,
      "stem": "針對以下C 程式，執行後如果第一個和第二個輸出是240ff18 和 240ff38，則第三個輸出是那一個？",
      "options": {
        "A": "240ff80",
        "B": "240ffc6",
        "C": "240fed4",
        "D": "240fedd"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-055-3e259d67e5.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "daeed32951",
      "no": 56,
      "stem": "針對以下C 程式，執行後輸出何者正確？",
      "options": {
        "A": "abcde, 1",
        "B": "cdefg, 0",
        "C": "bcdef, -1",
        "D": "abcde, 0"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-056-daeed32951.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "dc290c716c",
      "no": 57,
      "stem": "針對以下C 程式，執行後輸出是那一個？",
      "options": {
        "A": "0",
        "B": "7",
        "C": "8",
        "D": "10"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-057-dc290c716c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "34cbeb473e",
      "no": 58,
      "stem": "針對以下C 程式，執行完後輸出結果是那一個？",
      "options": {
        "A": "2",
        "B": "3",
        "C": "4",
        "D": "5"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-058-34cbeb473e.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b8a82f4237",
      "no": 59,
      "stem": "針對以下C++ 程式，執行完後輸出結果是那一個？",
      "options": {
        "A": "12",
        "B": "11",
        "C": "可以編譯，無法執行",
        "D": "無法編譯"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-059-b8a82f4237.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "a63a8451fc",
      "no": 60,
      "stem": "針對以下C++ 程式，執行完後輸出結果是哪一個？",
      "options": {
        "A": "0",
        "B": "20",
        "C": "可以編譯，無法執行",
        "D": "無法編譯"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-060-a63a8451fc.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "1c5d8b8a16",
      "no": 61,
      "stem": "針對以下C++ 程式，執行完後輸出結果是那一個？",
      "options": {
        "A": "0",
        "B": "20",
        "C": "可以編譯，無法執行",
        "D": "無法編譯"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-061-1c5d8b8a16.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "38f721440c",
      "no": 62,
      "stem": "針對以下C++ 程式，執行完後輸出結果是那一個？",
      "options": {
        "A": "11",
        "B": "12",
        "C": "可以編譯，無法執行",
        "D": "無法編譯"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-062-38f721440c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "66f3692230",
      "no": 63,
      "stem": "針對以下C++ 程式，執行完後輸出結果是那一個？",
      "options": {
        "A": "10",
        "B": "20",
        "C": "可以編譯，無法執行",
        "D": "無法編譯"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-063-66f3692230.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "4adff95445",
      "no": 64,
      "stem": "依據以下類別之定義，下列之輸出何者是正確的？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "將Z 初始化"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-064-4adff95445.svg"
      ],
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-064-4adff95445-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-064-4adff95445-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-064-4adff95445-C.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "60c4c6061d",
      "no": 65,
      "stem": "有兩個類別One 與Two，定義如下，下列有關 A, B, C 三個陣列之宣告，何者是正確的？",
      "options": {
        "A": "甲、乙、丙均正確",
        "B": "僅甲、乙正確",
        "C": "僅甲、丙正確",
        "D": "僅乙、丙正確"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-065-60c4c6061d.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b728de4684",
      "no": 66,
      "stem": "有一個類別CL，定義如下，下列之宣告，何者是正確的？",
      "options": {
        "A": "CL obj(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"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "91fe16988b",
      "no": 67,
      "stem": "有一個類別A，定義如下，欲使用類別A 內之成員，下列之寫法何者是正確的？",
      "options": {
        "A": "x.w",
        "B": "x.i",
        "C": "x.f(y)",
        "D": "f(y)"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-067-91fe16988b.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "c9368d23b6",
      "no": 68,
      "stem": "在C++中若類別MyClass 之內容已經完成定義，如果new 不能配置所需數量之記憶體，將引發一個例外，下列程式片斷之寫法何者正確？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "在C++中只能使用p== NULL 來判斷所配置記憶體之數量是否足夠，不能使用try/catch 檢查"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-068-c9368d23b6-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-068-c9368d23b6-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-068-c9368d23b6-C.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder"
      ]
    },
    {
      "id": "dae9944d24",
      "no": 69,
      "stem": "以下為C++ 語言的三個class 宣告，下列敘述何者正確？",
      "options": {
        "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"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-069-dae9944d24.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "7326eb14e1",
      "no": 70,
      "stem": "以下為C++語言的三個class 宣告，下列敘述何者正確？",
      "options": {
        "A": "class C 自 class A 繼承了f1,f3",
        "B": "class C 自class B 繼承了f2,f4",
        "C": "class C 自class A 繼承了f1",
        "D": "class C 自class B 繼承了f2"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "beb4e07130",
      "no": 71,
      "stem": "假設C++中有一個名稱為SomeClass 的類別，則類別的解構子 (Destructor)的宣告，下列項目何者正確？",
      "options": {
        "A": "virtual ~SomeClass();",
        "B": "~SomeClass();",
        "C": "~SomeClass(bool b);",
        "D": "virtual bool ~SomeClass();"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "18218b772f",
      "no": 72,
      "stem": "下列C++程式片段是有關例外(Exception)之處理，其輸出結果何者是正確的？",
      "options": {
        "A": "1 2 3",
        "B": "1 2 5",
        "C": "1 2 3 5",
        "D": "1 2 4 5 3"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-072-18218b772f.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d3ecf575d4",
      "no": 73,
      "stem": "依據以下類別之定義，下列C++程式之輸出何者是正確的？",
      "options": {
        "A": "My name is Rover, and my breed is a Weiner",
        "B": "My name is Rover",
        "C": ", and my breed is a Weiner",
        "D": "不會印出任何內容"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-073-d3ecf575d4.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "85ccc33b88",
      "no": 74,
      "stem": "依據以下類別之定義，下列C++程式最後一個敘述之輸出，下列何者是正確？",
      "options": {
        "A": "My name is Rover, and my breed is a Weiner",
        "B": "My name is Rover",
        "C": ", and my breed is a Weiner",
        "D": "不會印出任何內容"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "7ecb60a478",
      "no": 75,
      "stem": "依據以下類別之定義，下列之敘述何者是不正確的？",
      "options": {
        "A": "pb()可以呼叫自己以及pd()",
        "B": "pd()可以呼叫自己以及pb()",
        "C": "outside()可以呼叫自己以及 pd()與pb()",
        "D": "outside()可以呼叫自己但不可以呼叫pb()"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-075-7ecb60a478.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "e8633c2e61",
      "no": 76,
      "stem": "依據以下類別之定義，下列之敘述何者是不正確的？",
      "options": {
        "A": "pb()可以使用成員b1, b2 及d",
        "B": "pd()可以使用成員b1 及 d",
        "C": "outside()可以使用成員pd()",
        "D": "outside()可以使用成員pb()"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-076-e8633c2e61.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "47f3f67976",
      "no": 77,
      "stem": "依據以下Rational 類別之定義，其成員函數個數有幾個？",
      "options": {
        "A": "2",
        "B": "5",
        "C": "6",
        "D": "8"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-077-47f3f67976.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "cf3705ae4c",
      "no": 78,
      "stem": "C++中定義Template 函數如下：下列函數呼叫何者是錯誤？",
      "options": {
        "A": "int x=3, y=4; cout << larger(x,y);",
        "B": "float x=3, y=4; cout << larger(x,y);",
        "C": "char x='3', y='4'; cout << larger(x,y);",
        "D": "char x[]=\"3\", y[]=\"4\"; cout << larger(x,y);"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-078-cf3705ae4c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "099aefa207",
      "no": 79,
      "stem": "下列C++程式之輸出結果為何？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "圖D"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-079-099aefa207.svg"
      ],
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-079-099aefa207-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-079-099aefa207-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-079-099aefa207-C.svg"
        ],
        "D": [
          "images/B/11902/redrawn/q-wi01-079-099aefa207-D.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "bd681982d6",
      "no": 80,
      "stem": "下列C++程式之輸出結果為何？",
      "options": {
        "A": "圖A",
        "B": "圖B",
        "C": "圖C",
        "D": "圖D"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-080-bd681982d6.svg"
      ],
      "optionImages": {
        "A": [
          "images/B/11902/redrawn/q-wi01-080-bd681982d6-A.svg"
        ],
        "B": [
          "images/B/11902/redrawn/q-wi01-080-bd681982d6-B.svg"
        ],
        "C": [
          "images/B/11902/redrawn/q-wi01-080-bd681982d6-C.svg"
        ],
        "D": [
          "images/B/11902/redrawn/q-wi01-080-bd681982d6-D.svg"
        ]
      },
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "image-option-placeholder",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "2e970fcf0a",
      "no": 81,
      "stem": "下列哪些運算子，那一個不能定義超載(Overload)",
      "options": {
        "A": "=",
        "B": "==",
        "C": ".",
        "D": "[]"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "7dbddff5f5",
      "no": 82,
      "stem": "在C++ 中，一個類別(Class)可藉由下列那一個保留字來傳遞出其private 屬性給其他類別？",
      "options": {
        "A": "public",
        "B": "private",
        "C": "friend",
        "D": "protected"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "1a87583c7f",
      "no": 83,
      "stem": "下列關於「樣板函式」(Template Function)的描述，何者不正確？",
      "options": {
        "A": "以同樣的函式碼處理不同的參數型態",
        "B": "可以動態改變函式中的變數型態",
        "C": "可以宣告傳回值",
        "D": "須與「超載化函式」(Overloaded Functions)一起使用"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "3f4cef4f09",
      "no": 84,
      "stem": "下列關於「超載化函式」(Overloaded Functions)的描述何者正確？",
      "options": {
        "A": "一組「超載化函式」中，每一個函式都有著相同的名稱",
        "B": "一組「超載化函式」中，每一個函式的參數個數都必須一樣",
        "C": "一組「超載化函式」中，每一個函式的參數資料型態可以動態改變",
        "D": "一組「超載化函式」中，每一個函式的參數資料型態需相互對應"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "4d8bcbc2f2",
      "no": 85,
      "stem": "如何判斷類別的建構子(Constructor)是否執行成功？",
      "options": {
        "A": "將建構子的傳回值宣告成bool，若建構子執行成功就傳回true，否則傳回false，讓呼叫建構子的建構子程式可以利用建構子的傳回值判斷執行是否成功",
        "B": "無法判斷",
        "C": "在建構子執行失敗時引發例外，再使用try...catch 結構判斷建構子是否執行成功",
        "D": "建構子一定會執行成功"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "40d7b6cd1a",
      "no": 86,
      "stem": "下列有關解構子(Destructor)的描述何者是正確的？",
      "options": {
        "A": "類別中方法名稱和類別名稱完全相同的方法，方法的名稱前面要加上一個\"~\"字元",
        "B": "可以宣告傳回值與參數",
        "C": "成員物件會依類別之建構順序解構",
        "D": "類別的物件建立時，會自動被呼叫"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "494865f84f",
      "no": 87,
      "stem": "下列有關類別中宣告成protected 的資料成員(Data Member)和方法 (Method) 何者是正確的？",
      "options": {
        "A": "不可以被宣告該資料成員或方法的類別所用",
        "B": "可以被繼承自該類別的子類別所用",
        "C": "應用程式中任何地方都可以使用",
        "D": "除了宣告該資料成員或方法的類別可以使用外，其他地方都不可以使用"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "28ae522dfd",
      "no": 88,
      "stem": "C++ 語言的方法中，以下哪一個保留字可以代表物件本身？",
      "options": {
        "A": "String",
        "B": "hidden",
        "C": "default",
        "D": "this"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0855733e65",
      "no": 89,
      "stem": "C++ 語言的變數只能在類別產生的物件範圍內使用，是以下那一種變數？",
      "options": {
        "A": "區域變數",
        "B": "全域變數",
        "C": "實體變數",
        "D": "靜態變數"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "6ea9f85564",
      "no": 90,
      "stem": "設計一個命名為run 的C++虛擬函式，以下那ㄧ個宣告正確？",
      "options": {
        "A": "const void run();",
        "B": "virtual void run() const =0;",
        "C": "const void run()=0;",
        "D": "void run()virtual＝0"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "125737976c",
      "no": 91,
      "stem": "下列有關建構子(Constructor)與解構子(Destructor)的描述何者是正確？",
      "options": {
        "A": "建構子與解構子可以宣告傳回值",
        "B": "物件建立時會自動呼叫類別的建構子，物件毀去時會自動呼叫類別的解構子",
        "C": "建構子與解構子可以被繼承",
        "D": "一個類別僅能定義一個建構子與解構子"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "d049fad290",
      "no": 92,
      "stem": "下列有關類別的朋友(friend)關係的描述，何者是正確的？",
      "options": {
        "A": "如果類別乙是類別甲的朋友類別，則類別甲是類別乙的朋友類別",
        "B": "如果類別乙是類別甲的朋友類別，則類別乙的方法可以取用類別甲宣告成private 的資料成員",
        "C": "如果類別乙是類別甲的朋友類別，則類別乙也是類別甲的子類別的朋友類別",
        "D": "類別僅可以擁有一個朋友類別"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "f30036180e",
      "no": 93,
      "stem": "有關虛擬函數(Virtual Function)的敘述何者正確？",
      "options": {
        "A": "宣告虛擬函數的類別必需宣告成朋友(friend)關係",
        "B": "宣告虛擬函數的類別不可以被繼承",
        "C": "C++編譯程式呼叫虛擬函數時會以動態結合(Dynamic Binding)方式判斷欲呼叫的是哪一個類別的虛擬函數",
        "D": "C++編譯程式呼叫虛擬函數時會以靜態結合(Static Binding)方式判斷欲呼叫的是哪一個類別的虛擬函數"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "980d0c15be",
      "no": 94,
      "stem": "C++ 繼承方式的特性，下列何者是正確？",
      "options": {
        "A": "舊的物件可以從新的物件繼承而來",
        "B": "新的物件繼承舊的物件時，會把舊的物件的程式碼拷貝一份到新的物件中",
        "C": "新的物件可以加入新的資料成員和成員函數",
        "D": "新的物件不可以對舊的物件的行為重新定義"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "4e6ec77ef4",
      "no": 95,
      "stem": "對於C++程式基礎類別A 與其衍生類別B，以下敘述那一個正確？",
      "options": {
        "A": "B 可使用A 的私有函式",
        "B": "A 中定義的函式可以使用B 中定義的公開函式",
        "C": "B 中定義的函式可以使用A 中定義的保護資料成員",
        "D": "A 中定義的函式可以使用B 中定義的私有資料成員"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "51b743261b",
      "no": 96,
      "stem": "對於C++程式基礎類別A 與其衍生類別B，以下敘述那一個正確？",
      "options": {
        "A": "以 A 宣告的指標變數可以指向以B 造出的物件的位址",
        "B": "以B 宣告的指標變數可以指向以A 造出的物件的位址",
        "C": "以B 造出的物件可以使用A 的任何函式",
        "D": "以A 造出的物件可以使用B 的公開函式"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "5869800fae",
      "no": 97,
      "stem": "C++程式的類別中，設計私有或保護等級的資料成員，是物件導向哪一種特性的表現？",
      "options": {
        "A": "Abstract",
        "B": "Polymorphism",
        "C": "Encapsulation",
        "D": "Inheritance"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0c01b3231d",
      "no": 98,
      "stem": "C++ 語言抽象類別的虛擬函式(Virtual Function)會使用以下那ㄧ個修飾子？",
      "options": {
        "A": "public",
        "B": "private",
        "C": "fnent",
        "D": "package"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "b9f9bf72e2",
      "no": 99,
      "stem": "一個C++語言類別A 使用有三個純虛擬函式(Pure Virtual Function)的介面I，並實做其中一個函式，則此類別是以下那一種類別？",
      "options": {
        "A": "Concrete",
        "B": "Abstract",
        "C": "fnent",
        "D": "Friend"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "c2d05eea43",
      "no": 100,
      "stem": "有關C++語言繼承的敘述，以下那ㄧ個正確？",
      "options": {
        "A": "有多重類別繼承",
        "B": "只有單一介面繼承",
        "C": "Abstract 類別不可以繼承另一個Abstract 類別",
        "D": "類別繼承方式只有public 和 protected"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "f47ca81a4a",
      "no": 101,
      "stem": "有關C++語言多型的敘述，以下何者正確？",
      "options": {
        "A": "必須宣告使用指標變數",
        "B": "必須使用Early Binding",
        "C": "Function 必須使用Abstract 關鍵字",
        "D": "必須定義Pure Virtual Function"
      },
      "answer": "A",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "dea3061c0a",
      "no": 102,
      "stem": "下列之區塊，何者可以捕捉任何型態之例外？",
      "options": {
        "A": "catch(){ }",
        "B": "catch(...){ }",
        "C": "catch(*){ }",
        "D": "catch(exception){ }"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "0edec55b6a",
      "no": 103,
      "stem": "catch 區塊最多可以有幾個參數？",
      "options": {
        "A": "0",
        "B": "1",
        "C": "2",
        "D": "3"
      },
      "answer": "B",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "bb5b9c43c0",
      "no": 104,
      "stem": "欲將運算子＜=超載，下列之函數名稱何者正確？",
      "options": {
        "A": "overload＜=",
        "B": "＜ =new",
        "C": "operator＜=",
        "D": "＜=operator"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "d52439aba1",
      "no": 105,
      "stem": "下列之運算子，何者可以定義超載？",
      "options": {
        "A": ".",
        "B": ".*",
        "C": "::",
        "D": "++"
      },
      "answer": "D",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "434300c01f",
      "no": 106,
      "stem": "下列之運算子，何者可以定義超載(overload)？",
      "options": {
        "A": ".",
        "B": "::",
        "C": "==",
        "D": "sizeof"
      },
      "answer": "C",
      "kind": "single",
      "chapter": "wi01"
    },
    {
      "id": "cca0feaa01",
      "no": 107,
      "stem": "有關C++語言的敘述，以下哪些為正確？",
      "options": {
        "A": "函式的參數傳遞可以透過 Call by Value",
        "B": "函式中可以定義其他函式",
        "C": "函式的參數傳遞可以透過 Call by Address",
        "D": "可以用浮點數陣列表示字串"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "f170603011",
      "no": 108,
      "stem": "有關C++語言陣列(Array)的敘述，以下那些正確？",
      "options": {
        "A": "陣列的大小在程式執行時可以改變",
        "B": "編譯器支援檢查所使用陣列之註標(Index)是否在宣告範圍中",
        "C": "陣列在函數間是用位址傳遞",
        "D": "陣列內可以存放其他陣列的位址"
      },
      "answer": [
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "c0c2ffc928",
      "no": 109,
      "stem": "有關C++語言的敘述，下列那些為正確？",
      "options": {
        "A": "封裝(Encapsulation)使物件內的資料易於保護",
        "B": "繼承(Inheritance)使程式易於修改",
        "C": "多重繼承 (Multiple Inheritance)是一較具爭議性的功能",
        "D": "動態連結(Dynamic Binding)增加程式的執行效率"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "582c537eb2",
      "no": 110,
      "stem": "有關C++語言遞迴（Recursion）的敘述，下列哪些為正確？",
      "options": {
        "A": "一般使用遞迴解決問題較使用迴圈解決問題，需要宣告更多的變數",
        "B": "尾端遞迴 (Tail- Recursion) 經過適當編譯後的執行效率可以與迴圈相同",
        "C": "所有的遞迴函式均可以迴圈改寫",
        "D": "遞迴函式的執行需要用到堆疊(Stack)"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "9698a2a2d7",
      "no": 111,
      "stem": "C++語言程式設計師釋放不用的記憶體空間，下列那些為正確？",
      "options": {
        "A": "使用 delete 來釋放記憶體",
        "B": "使用System.gc()來釋放記憶體",
        "C": "使用free 來釋放記憶體空間",
        "D": "不用管它，編譯器會自動處理"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "285b87bebd",
      "no": 112,
      "stem": "以下C++語言程式片段，執行後會印出那些值？",
      "options": {
        "A": "0",
        "B": "2",
        "C": "4",
        "D": "5"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-112-285b87bebd.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "aa5b1e608b",
      "no": 113,
      "stem": "以下C++語言程式片段，執行後那些值會包括在程式輸出的一部份？",
      "options": {
        "A": "16",
        "B": "15",
        "C": "23",
        "D": "21"
      },
      "answer": [
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-113-aa5b1e608b.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "9c10b1b8c0",
      "no": 114,
      "stem": "關於以下C++語言程式片段，下列敘述那些為錯誤？",
      "options": {
        "A": "執行f(3)回傳14",
        "B": "執行f",
        "C": "回傳28(3)執行f(5)回傳41",
        "D": "執行f(5)回傳49"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-114-9c10b1b8c0.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "dc685536c7",
      "no": 115,
      "stem": "以下C++語言程式片段，執行後那些值會包括在下列程式輸出的一部份？",
      "options": {
        "A": "10",
        "B": "20",
        "C": "30",
        "D": "40"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-115-dc685536c7.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "135246eb38",
      "no": 116,
      "stem": "有一C++類別B 定義如下，其成員函式x 無法被以下那些覆寫 (Override)？",
      "options": {
        "A": "private: double x(int x);",
        "B": "protected: int x(double x);",
        "C": "public: double x(double x);",
        "D": "public: double x(int x);"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "77c1c92265",
      "no": 117,
      "stem": "以下C++程式宣告，那些為正確？",
      "options": {
        "A": "int a[]={1, 2};",
        "B": "char *a[3];",
        "C": "char s[10]=\"test\";",
        "D": "int n=5, a[n]"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "cf74cf5b79",
      "no": 118,
      "stem": "下列C++語言程式片段執行後，那些值包含在s 的輸出中？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": [
        "A",
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-118-cf74cf5b79.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "1845bfadf0",
      "no": 119,
      "stem": "下列C++語言程式片段執行後，那些值包含在s 的輸出中？",
      "options": {
        "A": "50",
        "B": "70",
        "C": "90",
        "D": "110"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-119-1845bfadf0.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "9aa23dbe18",
      "no": 120,
      "stem": "下列C++語言程式片段執行後，那些值包含在s 的輸出中？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": [
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-120-9aa23dbe18-s1.svg",
        "images/B/11902/redrawn/q-wi01-120-9aa23dbe18-s2.svg"
      ],
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "e90f21d97c",
      "no": 121,
      "stem": "下列C++語言程式片段執行後，執行後那些值會包括在程式輸出的一部份？",
      "options": {
        "A": "1",
        "B": "2",
        "C": "3",
        "D": "4"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-121-e90f21d97c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "181f52a94a",
      "no": 122,
      "stem": "下列C++語言程式片段執行後，執行後那些值會包括在程式輸出的一部份？",
      "options": {
        "A": "9",
        "B": "8",
        "C": "7",
        "D": "6"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-122-181f52a94a.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "9ba650a795",
      "no": 123,
      "stem": "下列C++語言程式片段，那些宣告正確？",
      "options": {
        "A": "int a[2][3];",
        "B": "int b[][3]={0,1,2,3};",
        "C": "int c[100][100]={0};",
        "D": "int d[3][]={{1,2},{1,2,3},{1,2,3,4}}"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "dc69d8dd09",
      "no": 124,
      "stem": "下列C++語言程式片段，哪些函式宣告正確？",
      "options": {
        "A": "int* set(int*, int);",
        "B": "void func();",
        "C": "string error(int);",
        "D": "char[10] sum(int*, int)"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "d290acf7a8",
      "no": 125,
      "stem": "下列C++語言敘述，那些可以定義一種新的資料型別？",
      "options": {
        "A": "typedef struct { int v; } v1;",
        "B": "typedef v2=int;",
        "C": "typedef int v3;",
        "D": "typedef v4: int"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "11dbb930c7",
      "no": 126,
      "stem": "執行完下列C++語言程式片段後，那些是printf 輸出的值？",
      "options": {
        "A": "d",
        "B": "X",
        "C": "x-20",
        "D": "20"
      },
      "answer": [
        "A",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-126-11dbb930c7.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "4eafc13baa",
      "no": 127,
      "stem": "下列C++語言程式片段中，那些可以正確執行？",
      "options": {
        "A": "char s1[10]; s1=\"Ctest\";",
        "B": "char s2[]={'C', 't', 'e', 's', 't','\\n'};",
        "C": "char s3[20]=\"Ctest\";",
        "D": "char *s4=\"Ctest\\n\""
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "658238f6c6",
      "no": 128,
      "stem": "執行完下列C++語言程式片段後，輸出結果為以下那些值？",
      "options": {
        "A": "1",
        "B": "4",
        "C": "7",
        "D": "100"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-128-658238f6c6.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "7316bba70d",
      "no": 129,
      "stem": "C++程式f() 執行後，以下那些輸出描述正確？",
      "options": {
        "A": "那一行印出 A, BB",
        "B": "(B)那一行印出A, AB",
        "C": "那一行印出B,B",
        "D": "(C)那一行印出B,AB"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-129-7316bba70d.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b1709854b1",
      "no": 130,
      "stem": "C++語言程式fr(15,6)，執行後那些值會包括在下列程式輸出的一部份？",
      "options": {
        "A": "6",
        "B": "3",
        "C": "2",
        "D": "1"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-130-b1709854b1.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d5cceb2fb3",
      "no": 131,
      "stem": "執行完下列C++語言程式片段後，那些值會包括在下列程式輸出的一部份？",
      "options": {
        "A": "0",
        "B": "3",
        "C": "5",
        "D": "7"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-131-d5cceb2fb3.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "f075e37526",
      "no": 132,
      "stem": "執行完下列C++語言程式片段後，那些值會包括在程式輸出的一部份？",
      "options": {
        "A": "1",
        "B": "3",
        "C": "5",
        "D": "7"
      },
      "answer": [
        "A",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-132-f075e37526.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "50f721dad8",
      "no": 133,
      "stem": "執行完下列C++語言程式片段後，那些敘述正確？",
      "options": {
        "A": "**p=40",
        "B": "**(p+1)=20",
        "C": "**p+3=30",
        "D": "**(p+3)=30"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-133-50f721dad8.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b89203ed96",
      "no": 134,
      "stem": "針對下列C++語言fn 程式，那些敘述錯誤？",
      "options": {
        "A": "執行 fn(\"abcd\"); 回傳5",
        "B": "執行 fn(\"\"); 會產生錯誤",
        "C": "執行 char a[]={'a', 'b', 'c'}; fn(a); 會回傳4",
        "D": "本程式無法編譯執行"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "54272dfe58",
      "no": 135,
      "stem": "針對下列C++語言fn 程式，那些敘述正確？",
      "options": {
        "A": "甲印出1",
        "B": "乙印出2",
        "C": "丙印出8",
        "D": "丁印出2"
      },
      "answer": [
        "A",
        "B"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-135-54272dfe58.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "a2c826255c",
      "no": 136,
      "stem": "下列C++程式碼中，那些為錯誤的指令？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-136-a2c826255c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d4c5f66235",
      "no": 137,
      "stem": "下列C++程式碼中，那些為正確的指令？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "A",
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-137-d4c5f66235.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "91fe9098a1",
      "no": 138,
      "stem": "對於下列C++程式碼之輸出，那些敘述為正確？",
      "options": {
        "A": "甲輸出1，乙輸出10",
        "B": "丙輸出1，丁輸出202",
        "C": "丙輸出102，丁輸出10",
        "D": "丙輸出1，丁輸出 10"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-138-91fe9098a1.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "de3e760f1e",
      "no": 139,
      "stem": "下列C++程式碼，那些指令不正確？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-139-de3e760f1e.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "600a7087b1",
      "no": 140,
      "stem": "下列有關C++的敘述那些是正確的？",
      "options": {
        "A": "每個類別都需要一個複製建構子 (Copy Constructor)",
        "B": "沒有設置複製建構子的類別仍然可以進行兩物件複製",
        "C": "通常類別中包含陣列成員，並在宣告物件時需要做物件內容之複製，則需要宣告一複製建構子",
        "D": "通常類別中包含指標(Pointer) 成員，並在宣告物件時需要做物件內容之複製，則需要宣告一複製建構子"
      },
      "answer": [
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "6ebcb6b3c2",
      "no": 141,
      "stem": "下列那些C++指令需要使用複製建構子(Copy Constructor)？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-141-6ebcb6b3c2.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "4890a7f928",
      "no": 142,
      "stem": "對於下列C++程式碼之輸出，那些敘述為正確？",
      "options": {
        "A": "甲輸出1，乙輸出10",
        "B": "丙輸出1，丁輸出202",
        "C": "丙輸出102，丁輸出10",
        "D": "丙輸出1，丁輸出 10"
      },
      "answer": [
        "A",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-142-4890a7f928-s1.svg",
        "images/B/11902/redrawn/q-wi01-142-4890a7f928-s2.svg",
        "images/B/11902/redrawn/q-wi01-142-4890a7f928-s3.svg",
        "images/B/11902/redrawn/q-wi01-142-4890a7f928-s4.svg"
      ],
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "b7870ec945",
      "no": 143,
      "stem": "下列有關C++的vector 樣版類別敘述那些是正確的？",
      "options": {
        "A": "vector 是一種基本資料型別",
        "B": "vector 提供泛型之功能",
        "C": "vector 是一種容器(container)",
        "D": "vector 只提供int 型別"
      },
      "answer": [
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "006a60218d",
      "no": 144,
      "stem": "下列有關C++的vector 樣版類別的使用那些是正確的？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-144-006a60218d.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "5eeccb7b43",
      "no": 145,
      "stem": "下列關於C++的vector 樣版類別的使用那些是錯誤的？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "A",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-145-5eeccb7b43.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "1a2a15c617",
      "no": 146,
      "stem": "下列關於C++的list 的使用那些是錯誤的？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-146-1a2a15c617.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d9337ef139",
      "no": 147,
      "stem": "下列有關C++的list 樣版類別敘述那些是正確的？",
      "options": {
        "A": "list 是一種容器 (Container)",
        "B": "list 為雙向鏈結串列(Doubly Linked List)",
        "C": "list 僅提供循序存取功能",
        "D": "list 可提供隨機存取功能"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "c75bbb2d66",
      "no": 148,
      "stem": "下列有關C++的vector 與list 樣版類別敘述那些是正確的？",
      "options": {
        "A": "vector 不具雙向串列(Doubly Linked List)功能",
        "B": "vector 具list 與stack 的功能",
        "C": "vector 僅提供循序存取功能",
        "D": "vector 可提供隨機存取功能"
      },
      "answer": [
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "9e6383b1cb",
      "no": 149,
      "stem": "下列C++程式中底線部份，下列敘述那些是錯誤的？",
      "options": {
        "A": "甲應填入char *",
        "B": "乙應填入char *",
        "C": "甲應填入class T",
        "D": "乙應填入class T"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-149-9e6383b1cb.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "63120e33ad",
      "no": 150,
      "stem": "v1 是C++的vector 樣版類別所宣告的一個物件，下列那些指令可用來隨機存取v1 中註標(index)為3 的資料：",
      "options": {
        "A": "v1.data[3]",
        "B": "v1.at",
        "C": "(3)v1[3]",
        "D": "v1.data()[3]"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "c3fd9cfb42",
      "no": 151,
      "stem": "對於下列C++的程式，那些敘述正確？",
      "options": {
        "A": "當輸入為3 則輸出為2",
        "B": "當輸入為3 則輸出為4",
        "C": "當輸入為3 則存取到非原陣列之內容，有可能發生錯誤或輸出不可預期的值",
        "D": "當輸入為1 則存取到非原陣列之內容，有可能發生錯誤或輸出不可預期的值"
      },
      "answer": [
        "A",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-151-c3fd9cfb42.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "ca11ea76ec",
      "no": 152,
      "stem": "使用下列C++程式宣告，那些指令的輸出相同？",
      "options": {
        "A": "s1=&s[4][1]; cout ＜＜s1[0]＜＜endl;",
        "B": "s1=s[4]; cout ＜＜s1[1]＜＜endl;",
        "C": "s2=&(s+4); cout ＜＜(*s2)[1]＜＜endl;",
        "D": "s2=&s[4] ; cout ＜＜(*s2)[1]＜＜endl;"
      },
      "answer": [
        "A",
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-152-ca11ea76ec.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "3a40d4b8f3",
      "no": 153,
      "stem": "下列C++程式之輸出為string1，那些指令可填入空格底線部份？",
      "options": {
        "A": "*dest=",
        "B": "dest[i]=sou[i]",
        "C": "sou[i]=",
        "D": "dest[i]="
      },
      "answer": [
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-153-3a40d4b8f3.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "903432f650",
      "no": 154,
      "stem": "下列C++程式輸出為string1，下列敘述那些是錯誤的？",
      "options": {
        "A": "甲應填入 sou[i]",
        "B": "乙應填入*dest++=*sou++",
        "C": "乙應填入*++dest=*++sou",
        "D": "乙應填入dest[i]=sou[i]"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-154-903432f650.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "b3457f27e9",
      "no": 155,
      "stem": "下列C++程式輸出為string1，那些敘述是錯誤的？",
      "options": {
        "A": "甲應填入*sou",
        "B": "乙應填入*dest++=*sou++",
        "C": "乙應填入dest[i]=sou[i++]",
        "D": "乙應填入 dest[i]=sou[++i]"
      },
      "answer": [
        "A",
        "B",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-155-b3457f27e9.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "5c525c40d9",
      "no": 156,
      "stem": "下列C++程式中那些指令是錯誤的？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "B",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-156-5c525c40d9.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "134494291e",
      "no": 157,
      "stem": "下列C++程式中那些指令是錯誤的？",
      "options": {
        "A": "甲",
        "B": "乙",
        "C": "丙",
        "D": "丁"
      },
      "answer": [
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-157-134494291e-s1.svg",
        "images/B/11902/redrawn/q-wi01-157-134494291e-s2.svg",
        "images/B/11902/redrawn/q-wi01-157-134494291e-s3.svg"
      ],
      "tags": [
        "restored-from-official-pdf",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop",
        "official-embedded-figure-crop"
      ]
    },
    {
      "id": "f0735fca9c",
      "no": 158,
      "stem": "有關下列C++程式輸出，那些錯誤？",
      "options": {
        "A": "c1=255",
        "B": "uc1=255",
        "C": "c1=-255",
        "D": "uc1=0"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-158-f0735fca9c.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "a55d3f5513",
      "no": 159,
      "stem": "有關下列C++程式輸出，哪些錯誤？",
      "options": {
        "A": "c1=-1",
        "B": "uc1=-1",
        "C": "c1=0",
        "D": "c1=- 128"
      },
      "answer": [
        "A",
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-159-a55d3f5513.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "a1a5ed2112",
      "no": 160,
      "stem": "有關下列C++程式輸出，哪些錯誤？",
      "options": {
        "A": "c1=-1",
        "B": "c2=-1",
        "C": "c2=-32",
        "D": "c1=- 128"
      },
      "answer": [
        "A",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-160-a1a5ed2112.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "5d6630b8b6",
      "no": 161,
      "stem": "有關下列C++程式的敘述那些錯誤？",
      "options": {
        "A": "輸出s1==s2",
        "B": "輸出s1!=s2",
        "C": "下列程式可判斷兩字串是否相等",
        "D": "將 if…else 兩行程式改為s1==s2 ? cout ＜＜s1==s2 : cout＜＜s1!=s2 就可判斷兩字串是否相等"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-161-5d6630b8b6.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "d77d352f21",
      "no": 162,
      "stem": "有關下列C++程式執行完畢後各變數的值，那些敘述正確？",
      "options": {
        "A": "i=2",
        "B": "k=3",
        "C": "j=2",
        "D": "k=2"
      },
      "answer": [
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-162-d77d352f21.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    },
    {
      "id": "e6f99faf25",
      "no": 163,
      "stem": "下列那些是C++程式語言所具備的功能？",
      "options": {
        "A": "執行期型態訊息(Runtime type information)",
        "B": "一次編譯，到處執行",
        "C": "樣板 (template)",
        "D": "多重繼承"
      },
      "answer": [
        "A",
        "C",
        "D"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "d2c8c9d2ce",
      "no": 164,
      "stem": "對於C++的關鍵字virtual 及private，表現出那個C++特性？",
      "options": {
        "A": "virtual 與封裝 (encapsulation)相關",
        "B": "virtual 與多型(polymorphism)相關",
        "C": "private 與封裝 (encapsulation)相關",
        "D": "private 與多型(polymorphism)相關"
      },
      "answer": [
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01"
    },
    {
      "id": "5a2a50f5bb",
      "no": 165,
      "stem": "對於下列C++程式的輸出，那些錯誤？",
      "options": {
        "A": "c1.m1=0",
        "B": "c1.m1=1",
        "C": "c2.m1=0",
        "D": "c2.m1=1"
      },
      "answer": [
        "B",
        "C"
      ],
      "kind": "multi",
      "chapter": "wi01",
      "images": [
        "images/B/11902/redrawn/q-wi01-165-5a2a50f5bb.svg"
      ],
      "tags": [
        "official-embedded-content-crop",
        "redrawn-symbol",
        "official-pdf-vector-redraw",
        "auto-vectorized-source-crop"
      ]
    }
  ],
  "chapters": [
    {
      "id": "wi01",
      "title": "Ｃ++",
      "questionIds": [
        "6f01e82ab3",
        "a3248dccfb",
        "a7226d42b3",
        "0b2208e7d8",
        "02802c5026",
        "e64cc8fee2",
        "04a469048d",
        "58fe508ed8",
        "42a9c30807",
        "49aee192c6",
        "e9c8d31566",
        "c2edbacba8",
        "009d75f77e",
        "67e4eb484a",
        "49e5f1bf61",
        "14eb2f51db",
        "302ece8d51",
        "b820de3e35",
        "d2df9e5887",
        "b5a3297c10",
        "36ac5f5004",
        "714c069560",
        "39de4bec38",
        "2125c1a193",
        "5fca968b2e",
        "ca87a5cf7a",
        "b27fb0aa69",
        "26561284f1",
        "4c7ca50d0c",
        "2e7bb286ad",
        "0c9a7f07e7",
        "40e14c7ec1",
        "94b4a87643",
        "c4f1924c0d",
        "f22a7d4252",
        "8caa4ae4f7",
        "af4e4642ba",
        "8f907a768e",
        "3ef859b55c",
        "cc5b78f8f6",
        "0e39f926a9",
        "58ec53f027",
        "72f97f69d5",
        "401d0a186c",
        "f9a3f2bcf2",
        "b8cf53307b",
        "7ec9d2f3e4",
        "6d78af26e7",
        "224ad010eb",
        "625b6bee64",
        "d06daaf2f4",
        "ce916271b9",
        "a2d8bb83d5",
        "335bd1ceba",
        "3e259d67e5",
        "daeed32951",
        "dc290c716c",
        "34cbeb473e",
        "b8a82f4237",
        "a63a8451fc",
        "1c5d8b8a16",
        "38f721440c",
        "66f3692230",
        "4adff95445",
        "60c4c6061d",
        "b728de4684",
        "91fe16988b",
        "c9368d23b6",
        "dae9944d24",
        "7326eb14e1",
        "beb4e07130",
        "18218b772f",
        "d3ecf575d4",
        "85ccc33b88",
        "7ecb60a478",
        "e8633c2e61",
        "47f3f67976",
        "cf3705ae4c",
        "099aefa207",
        "bd681982d6",
        "2e970fcf0a",
        "7dbddff5f5",
        "1a87583c7f",
        "3f4cef4f09",
        "4d8bcbc2f2",
        "40d7b6cd1a",
        "494865f84f",
        "28ae522dfd",
        "0855733e65",
        "6ea9f85564",
        "125737976c",
        "d049fad290",
        "f30036180e",
        "980d0c15be",
        "4e6ec77ef4",
        "51b743261b",
        "5869800fae",
        "0c01b3231d",
        "b9f9bf72e2",
        "c2d05eea43",
        "f47ca81a4a",
        "dea3061c0a",
        "0edec55b6a",
        "bb5b9c43c0",
        "d52439aba1",
        "434300c01f",
        "cca0feaa01",
        "f170603011",
        "c0c2ffc928",
        "582c537eb2",
        "9698a2a2d7",
        "285b87bebd",
        "aa5b1e608b",
        "9c10b1b8c0",
        "dc685536c7",
        "135246eb38",
        "77c1c92265",
        "cf74cf5b79",
        "1845bfadf0",
        "9aa23dbe18",
        "e90f21d97c",
        "181f52a94a",
        "9ba650a795",
        "dc69d8dd09",
        "d290acf7a8",
        "11dbb930c7",
        "4eafc13baa",
        "658238f6c6",
        "7316bba70d",
        "b1709854b1",
        "d5cceb2fb3",
        "f075e37526",
        "50f721dad8",
        "b89203ed96",
        "54272dfe58",
        "a2c826255c",
        "d4c5f66235",
        "91fe9098a1",
        "de3e760f1e",
        "600a7087b1",
        "6ebcb6b3c2",
        "4890a7f928",
        "b7870ec945",
        "006a60218d",
        "5eeccb7b43",
        "1a2a15c617",
        "d9337ef139",
        "c75bbb2d66",
        "9e6383b1cb",
        "63120e33ad",
        "c3fd9cfb42",
        "ca11ea76ec",
        "3a40d4b8f3",
        "903432f650",
        "b3457f27e9",
        "5c525c40d9",
        "134494291e",
        "f0735fca9c",
        "a55d3f5513",
        "a1a5ed2112",
        "5d6630b8b6",
        "d77d352f21",
        "e6f99faf25",
        "d2c8c9d2ce",
        "5a2a50f5bb"
      ]
    }
  ],
  "sourceUrl": "https://owinform.wdasec.gov.tw/owInform/DLowFile/119022A12.pdf",
  "sourceHash": "bf420c3db0470105",
  "updatedAt": "2026-04-12T22:31:27.975733"
}
