Introduction to Pseudocode
According to the Oxford English Dictionary, pseudocode is: "a notation resembling a simplified programming language, used in program design". The word "pseudo" can mean "artificial" or "imitation" or "pretend"; therefore, we can think of pseudocode as meaning "artificial, imitation or pretend programming code".
Pseudocode is not a real programming language. Although pseudocode may look like code written in some programming languages, because it may often use similar keywords (such as "print", "input" and "if"), and even follow the same language rules (the grammar or "syntax" of a programming language), there are many different forms of pseudocode which can include statements written in plain English (or other human language).
The purpose of pseudocode is that it can be easily understood by programmers no matter which programming language they are most familiar with, and it is useful for solving problems in a structured, formal way.
Pseudocode is the means by which programming knowledge and computational thinking skills are examined and assessed.
OCR Exam Reference Language
Experience has shown that many novice programming students find pseudocode difficult to learn, particularly if they are familiar with popular high-level programming languages such as Python. Although an excellent language, Python does not have facility for switch-case selection or do-until iteration constructs.
Some variants of BASIC, such as BASIC256, are closer to the form of pseudocode used by some UK examination boards, but BASIC256 does not have an elseif facility as part of its selection syntax.
Using the Scratch-like blocks visual programming paradigm that many novice programmers will already be familiar with, pseudoBlox enables programmers to quickly build programs and solve problems, and then run their programs and see the output right here in the browser, generating perfectly formed and syntactically correct pseudocode in the form of OCR Exam Reference Language, specifically for the J277 GCSE Computer Science qualification.
(pseudoBlox is not endorsed by the OCR exam board.)
Comparison Operators
Arithmetic Operators
Boolean Operators
Comments and Variables
Selection
Selection
Iteration
String handling
File handling
Arrays
Subroutines
Random