After the preposition "mit", you have to use the dative case. That's why "die Lampe" (feminine nominative) becomes "mit der Lampe" (feminine dative). So the sentence Duolingo gave you is fine, whereas *"Was ist mit die Lampe?" is wrong.
See also:
http://german.about.com/library/blcase_sum.htm