If you have the handle of an entity (handent handle) returns the entity name of the entity, which you can then use in an entget call to retrieve the dxf data. If you convert a handle to an object via (vla-handletoobject handle) you can access the object's properties and methods.
What was your teacher's original question?