Haha I think I did that exam...

Well sub each x-point into the differential equation to get the gradient of the dash, then draw identical dashes for each corresponding y-value.
For example:
x = 0
dy/dx = sqrt(0) = 0
This means that the dash will have a gradient of 0 and will look like this: _
So, for every x = 0, put a _
This means (0,0) and (0,1) and (0,2) and (0,3) and (0,4) and (0,5) will all have a little dash that looks like this: _
Another example:
Let's take x = 4
dy/dx = sqrt(x) = sqrt(4) = 2
So the gradient of the little dash at EVERY x = 1 will have a gradient of 2, or look something like this: /
So for points (4,0) (4,1) (4,2) (4,3) and (4,4), you will put a little dash that looks like this: /
Repeat for the other x values (1,2,3)
See how each dash is vertically translated?