A:AnswerI don’t believe this connector would work. The part that goes into the phone needs to look similar to the connection head of your charging cord.
A:AnswerIf it is a newer iPad with a USB-C port then yes, this is the ideal connector for doing what you want. The older (pre-2018) iPads I am familiar with do not have USB-C.
A:AnswerYou would use this adapter (USB-A to USB-C) and the charging cable (lightning to USB-A). Plug the USB-C side into the iMac then plug the USB-A (the wall side) of the charging cable into the adapter and then plug cable into the lightning port on the bottom of the iPad like you were charging it.