1) they went to the shop yesterday (они ходили вчера в магазин)
they did not went to the shop yesterday
did they went to the shop yesterday?
2) he was in class last Monday (он был на уроке (в классе) в прошлый пн)
he was not in class last Monday
was he in class last monday?