Skip to content
← Back to glossary

擬似言語Pseudocode

Learn in the textbookControl Structures and Notation Methods

DefinitionPseudocode (擬似言語) is a notation that describes an algorithm in a fixed, near-prose format, free from the grammar of any particular programming language.

ExplanationIn the format used in past exam questions from fiscal 2022 onward, assignment is written with ←, which puts the value of the expression on the right into the variable on the left. Selection is enclosed by if … endif, iteration by while … endwhile or for … endfor, and indentation marks the range of the body. In a function that groups processing together, the values it receives are called arguments (引数) and the value it returns is called the return value (戻り値).

AnalogyIt is like a recipe note written only with fixed symbols and phrases so that it works in any restaurant's kitchen.

Memory hook擬似 means imitating the real thing: it is a way of writing that imitates a real programming language.

Related past-exam questions(9 questions)