Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?

A strokeRect(x, y, w, h)
B clearRect(x, y, w, h)
C fillRect(x, y, w, h)
D removeRect(x,y,w,h)

Correct Answer: clearRect(x, y, w, h)

StrokeRect(x, y, w, h) draws rectangle without filling it. The clearRect() method clears the specified pixels within a given rectangle. FillRect(x, y, w, h) method draws filled rectangle.

Related Questions

The process of erasing a disk is called -

Next steps