Question 1
All lines having the character sequence ^ followed by $ will be deleted.
All the lines having the first character as $ will be deleted.
All empty lines (no characters in the line) will be deleted
All lines having only spaces will be deleted.