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.

6 - Regular Languages GapFill

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

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

Set notation, as well as its attendant terms, is a language in its own right, and it's important to get to grips with the basics of it, since sets in computer science are ubiquitous. The number of elements in a set is known as the set's  capacityproportioncardinalitymagnitude, i.e. a value of '7' in this context means that a set contains seven elements.

The  ConstantCommonCartesianCoordinate product of two sets outputs all combinations of the two sets in the form of  bi-partstupletscoordinatesordered pairs. For example, this operation performed on the sets 1, 2 and 3, 4 would produce (1,3), (1,4), (2,3), (2,4). Note that this operation can be performed upon more than two sets, as well as on a single set. Any set whose members can all be found within another set can be described as a  semi-setsubordinate setsummed setsubset of that other set.

The  intersectionuniondifferencemembership of two sets produces an output containing only elements that are present in both of the component sets. The  unionmembershipdifferenceintersection of two sets outputs all members of both sets, with any duplicate values removed (since no set can contain the same value twice). Finally, the  membershipintersectionuniondifference applied to sets A and B would output all members of set A except for those that also belong to set B. This operation performed on sets B and A would have a different outcome from the same operation performed on sets A and B.

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

Pass Mark
72%