Recently published items
-
Make a plot
QuestionDemonstrates how to display a plot generated in R.
Published on 09/02/2022 14:35 CC BY -
Assign a variable
QuestionThe student must write R code to assign the given value to the variable
x.Published on 09/02/2022 14:34 CC BY -
Make a plot with matplotlib
QuestionThis question shows how to display a plot generated in matplotlib from code written by the student.
Published on 09/02/2022 10:57 CC BY -
Make a copy of a list
QuestionGiven an unknown list, the student must write Python code to create a copy of it.
There's an alternative to catch the case where the student's variable is just a reference to the original list.
Published on 09/02/2022 10:56 CC BY -
Get the last item in a list
QuestionGiven an unknown list, the student has to write code to return the last item in the list.
Published on 09/02/2022 10:56 CC BY -
Get the first item in a list
QuestionGiven a randomly-generated list, the student must write code to return its first value.
There's an alternative to check if they get the second item, which they might do if they don't realise Python lists are zero-indexed.
Published on 09/02/2022 10:55 CC BY -
Exploration activity: Define a class, add methods to it, then use it
QuestionIn four parts, the student builds up the definition of a class representing a rectangle. First they write the constructor, then add methods to compute area and perimeter.
In the final part, they must use the methods to write a function which determines if a rectangle's area is larger than its perimeter.
Published on 09/02/2022 10:54 CC BY -
Compute the standard deviation of a sample using numpy
QuestionThe student must write code to compute the standard deviation of an unknown list of measurements.
The suggested answer uses numpy.std.
Published on 09/02/2022 10:54 CC BY -
TEST Piecewise and Composite Functions
Exam (8 questions)This test will assess a students ability to work with piecewise and composite functions.
Published on 08/02/2022 18:23 CC BY -
NCM4 Piecewise Function Domain and Range
QuestionNo description given
Published on 08/02/2022 18:19 CC BY-NC-ND