He ____ for half an hour when he realized he was painting the wrong
wall.

worked
had worked
has been working
has worked
Advanced Grammar Exercises
Pre-Intermediate Grammar Exercises
Upper-Intermediate Grammar Exercises
English Worksheets