The correct option is
D Detailed step-by-step solution:
In this pattern, we can see that the number of lines is increasing to complete the shape.
There is only 1 line in the first shape, and 1 more line is added in the second shape.
So, there will be 3 lines in the third shape, 4 in the fourth, and 5 lines in the fifth shape.
Therefore, we can see that the third and the fifth shape are incorrect, as the third block has only 2 lines and the fifth block has 3 lines.
So, the correct complete pattern will be as shown below.
Hence, Option B is correct.