基礎ict-u07-d01

In course pseudocode, the symbol <- means:

A. Assignment, storing a value in a variable✓ 答案
B. Testing whether two values are equal
C. A network connection between two computers
D. A comment that the program ignores

解說

An assignment statement writes a value into a variable, so total <- 0 stores zero. Tests are written with a comparison such as = or >, which is why the two symbols must not be confused in a trace.

「演算法與偽代碼」全部 20 題 · 資訊及通訊科技 MCQ 題庫