To check if those segments are parallel, we can compare the slope of the lines that contain them. To find the slope using two points, we can use the following formula

Using this formula for the segment AB, we have

Now, using this formula for CD

When the slopes are equal, the lines are parallel, if one slope is minus the inverse of the other, they are perpendicular, otherwise they are neither.
Since

They are perpendicular.