OUCC

 
 
 

OUCC Tutorials

Blockly Coding Tasks

This type of task is very flexible: Task authors can set problems where a variety of solutions can be given credit for producing the correct answer. These tasks use Function blocks and take this form:
Function Example

Try writing this code into the function in the workspace below.
simple code

This function now adds the values in the variables b and c, adds them and returns the sum. Run the program to see how this works.

Next >>

Recommended practice
Functions, Procedures and Subroutines

Example 1
Example 2
Example 3
Example 4

Tutorials index


[ tutorials | terms | privacy | info@oucc.uk ]


UKCT Challenges are proud to use The Cuttle Platform to host our challenges.
The Cuttle system can be used for maths and science competitions, entrance exams or employee exams.