Lesson 018

Pseudocode

Planning Before Coding

1:00

How to plan an algorithm in plain language before writing real code — using standard keywords, the three control structures, and a clear translation workflow.

By the end, you can

  • Explain what pseudocode is and why programmers use it before writing real code.
  • Identify the three control structures (sequence, selection, iteration) in a pseudocode snippet.
  • Use standard keywords (SET, IF/THEN/ELSE/ENDIF, WHILE, FOR EACH, INPUT, OUTPUT, RETURN) correctly.
  • Order the steps of an algorithm in pseudocode so the logic is correct (e.g., initialize before looping, loop before returning).
  • Apply the conventions of uppercase keywords and indentation to write clear, readable pseudocode.
  • Explain the string-concatenation pitfall when translating pseudocode INPUT into JavaScript.
  • Describe the three limitations of pseudocode and explain why it does not replace testing.
  • Distinguish pseudocode, flowcharts, and real code by purpose and executability.
Up next in Programming Foundations
Questions or feedback?