Our site uses cookies. Some of the cookies we use are essential for parts of the site to operate and have already been set. You may delete and block all cookies from this site, but parts of the site will not work. To find out more about cookies on this website, see our Cookie Policy
Accept
© eRevision.uk and ZigZag Education 2025
This test is run by .
Note that your final mark will not be saved in the system.

22 - Functional Programming GapFill

Target Level
C
Running Total
0
0%
Attempt
1 of 3

You must fill all the gaps before clicking ‘Check Answers!’

A function is such that f: A → B, where A is the   parameterinputargumentresult type, and B is the   resultargumentoutputinput type.  A, in this instance, is called the   top-domainsub-domainco-domaindomain, and B is called the   co-domaindomainsub-domaintop-domain, and both are   subsetsparametersbasescoefficients of objects in some data type - real numbers, for example.

Suppose we take the function f(x) = x2 + 2x + 3.  For this function, as with any, each value of x can generate   twonooneany number of result(s).

Two functions can be combined in order to create a new function, and this operation is called functional   conjoinmentconcatenationcompositionco-creation.  With two functions f: P → Q and g: Q → R, performing this operation results in a function whose   co-domain is Pdomain is Psub-domain is Qdomain is Q and   domain is Rsub-domain is Rco-domain is Rdomain is Q.

This is your 1st attempt! You get 3 marks for each one you get right. Good luck!

Pass Mark
72%