Commit 705d2d75 authored by lh5918's avatar lh5918
Browse files

Beefed up explanation for gap 5

parent 85f4f630
No preview for this file type
......@@ -419,7 +419,9 @@ Each of the program branches is executed in its own scope, which are denoted by
A scoping statement introduces a new program scope, which is denoted by the \lit{begin} and \lit{end} tokens.
\paragraph{Sequential Composition:}
\hl{This statement composes two statements into one line, to be executed in order. It is denoted by} \lit*{\hl{<stat> ; <stat>}}. \hl{For example, for s1 ; s2, both s1 and s2 must be valid for this to be a valid statement, and s1 will be executed before s2.}
\hl{This statement composes two statements into one line, to be executed in order. It is denoted by a}
\lit{\hl{;}} \hl{character between the two statements. For example, we can compose the statements s1 and s2 by writing} \lit{\hl{s1 ; s2}} \hl{.}
\hl {Both s1 and s2 must be valid statements for this composed statement to be valid, and s1 will be executed before s2.}
\fillgap{\hl{Define/describe sequential composition} \\ \hl{i.e. }\lit*{\hl{<stat> ; <stat>}} }{2 marks}
\subsection{Expressions}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment