Chet Miller has already directly answered your specific questions. This is only intended to supplement it by providing further background on the concepts involved, in particular with regard to your first question.
Heat and work are two different and distinct means of transferring energy between a system and its surroundings. Heat $Q$ is energy transfer due solely to temperature difference. In order for it to occur there must be a temperature difference and the nature of the boundary between the system and its surroundings has to permit the flow of energy in the form of heat. Work $W$ is energy transfer due to force times displacement.
Although the two means of energy transfer are different, the result of the transfer on the change in internal energy $\Delta U$ can be identical as they are related by the first law which, for a closed system (no mass transfer) is given by
$$\Delta U=Q-W$$
Where $Q$ is positive if heat is added to the system and $W$ is positive if work is done by the system. Applying the above to your first question, using the example of an ideal gas contained in a cylinder fitted with a piston:
Let the piston be movable and the piston/cylinder be perfectly thermally insulated so that no heat can transfer between the gas and the environment outside the piston/cylinder. So in the first law equation $Q=0$. Work is then done on the gas by compressing it. We call this an adiabatic compression. Thus from the first law $\Delta U=-W$.
For an ideal gas, any process, the change in internal energy depends only on the change in temperature per the equation $\Delta U=nC_{v}(T_{f}-T_{i})$ where $T_i$ and $T_f$ are the initial and final temperatures of the gas. Therefore the first law becomes
$$nC_{v}(T_{f}-T_{i})=-W\tag{1}$$
(Since work is done on the gas, $W$ is negative making $\Delta U$ positive).
Now if instead we don't have a thermally insulated piston/cylinder and we lock the piston in place so that it cannot move, no work can be done i.e., $W=0$. We immerse the piston/cylinder in a constant temperature heat bath where $T=T_f$. Heat transfer to the gas increases the temperature from $T_i$ to T_f$. So now, from the first law
$$nC_{v}(T_{f}-T_{i})=Q\tag{2}$$
Equations (1) and (2) demonstrate that we can have the same change in temperature of the system by doing either adiabatic work or by heat transfer.
Hope this helps.