cp2023_ag6

  • Home
    • SMap
    • reveal
    • blog
  • About
  • INFO
  • mass-spring-damper
  • Euler Method
  • replit
    • step1
    • step2
    • step3
    • step4
    • 補充
  • gd
  • work
    • 台灣國旗
    • 美國國旗
    • 日本國旗
    • 中國國旗
    • 英國國旗
    • 韓國國旗
  • test
    • w15_test
    • exam_test
      • 錯的題目
  • 倉儲及網站評分
  • 個人學習心得
  • file
  • Brython
exam_test << Previous Next >> 倉儲及網站評分

錯的題目

解開課程中所給定的 Portable_2023_fall_1.3g_5g.7z 壓縮檔案, 可以發現其中包含一個 data 目錄  對的

計算機程式課程除了要求下載 Portable_2023_fall_1.3g_5g.7z (需要下載密碼)之外,也可以直接使用電腦輔助設計室中  錯的


以下程式碼中的 return 0, 表示 main 函式執行後, 將會傳回 0 這個整數值 對的
#include <stdio.h>

int main(void) {
printf("Hello World中文\n");
return 0; 


以下程式碼中 main(void) 的 void 表示主函式的輸入變數是"空"的, 也就是沒有輸入輸入變數的意思. 錯的
#include <stdio.h>

int main(void) {
printf("Hello World中文\n");
return 0;
}

在 Replit 環境中, 可以利用 cc 指令來解譯 C 程式  錯的

GUI並非網路設定查詢介面

(41223118)

從說明安裝 Apps, 如何設定網路, 查驗是否正確連網教學影片中, 可以了解機械設計工程系網段的 IPv4 Gateway 為 140.130.17.254. 解答:錯

以下程式碼中的 return 0, 表示 main 函式執行後, 將會傳回 0 這個整數值. 解答:錯
#include <stdio.h>

int main(void) {
printf("Hello World中文\n");
return 0;
}

以下程式碼中的 "{" 與 "}", 並非必要, 省略之後, 可以節省硬碟儲存空間. 解答:錯
#include <stdio.h>

int main(void) {
printf("Hello World中文\n");
return 0;
}

cp2023 計算機程式課程的終極目標在於: 說明計算機程式語言在現階段機電資整合設計中的相關應用. 解答:錯

除了使用 Replit, cp2023 已經利用 s1512.cycu.org 當作自架伺服器, 並已經寄信給所有修課成員登入此伺服器的帳號與密碼. 解答:錯

計算機程式上課時若要使用 IPv6 網路協定, 可以將 DNS 伺服器設為 2001:288:6004:17:2023::3 解答:錯

課程中的 C 程式練習二, 要求學員下載的 jsliu_c_programming.pdf (需要下載密碼) 電子書中的第八頁曾經提到:
#include <stdio.h>
這一行是把 stdio.h 包進來一起 compile, 這個檔案是 ANSI 標準, 裡面放了許多 C 標準 I/O (輸出輸入) 函數 (functions) 的定義 (definition), 寫這一行的目的簡單講是因為在程式中使用了printf 這個函數輸出字串到螢幕上, 這個函數的定義放在 stdio.h 中. ANSI C 規定你用到的函數或變數必需要有定義. 解答:錯

課程中的 C 程式練習二, 要求學員下載的 jsliu_c_programming.pdf (需要下載密碼) 電子書, 總共有 100 頁. 解答:錯

Replit 之前雖然提供免費可執行 C 程式的環境, 但是從 2023.11 開始已經無法使用.
解答:錯

採用 Replit 執行 C + gd 的程式之前, 必須要先確定 replit.nix 中已經安裝 gd 程式庫, 設定內容如下:

{ pkgs }: {
deps = [
pkgs.gd
];
}\
解答:錯

#include <stdio.h>

// 主函式
int main() {
// Start a Gnuplot process using popen
FILE *gnuplotPipe = popen("gnuplot -persistent", "w");
if (!gnuplotPipe) {
fprintf(stderr, "Failed to start Gnuplot.\n");
return 1;
}

// Use Gnuplot plotting commands, specify font and output as PNG
fprintf(gnuplotPipe, "set terminal png font 'default,10' size 800,400\n");
fprintf(gnuplotPipe, "set output './../images/gnuplot_ex1.png'\n");
fprintf(gnuplotPipe, "plot sin(x)");
// Close popen
pclose(gnuplotPipe);

return 0;
}

以上程式若正確執行, 會在 images 目錄下劃出 cos(x) 函式的圖形. 解答:錯

Replit 雖然提供免費可執行 C 程式的環境, 但是無法執行 C + gnuplot 的繪圖程式.
解答:錯

這個影片提到要安裝 gnuplot 套件與 gd 繪圖程式庫, 必須設定到 replit.nix 檔案中.解答:對

說明近端的可攜環境是透過 C 程式檔案的副檔名來判定是否為 C 程式, 並呼叫 Tiny C Compiler 執行 C 程式. 解答:對

(41223114)


exam_test << Previous Next >> 倉儲及網站評分

Copyright © All rights reserved | This template is made with by Colorlib