Find the Jordan normal form of the operator $e^{d/dt}$ in the space of quasi-polynomials $\{e^{\lambda t}p(t)\}$ where the degree of the polynomial $p$ is less than $5$, and of the operator $\text{ad}_A$, $B\mapsto [A, B]$, in the space of $n\times n$ matrices $B$, where $A$ is a diagonal matrix.
### Part 1: Jordan Normal Form of \( e^{d/dt} \)

1. **Operator Analysis**:
   The operator \( \frac{d}{dt} \) acts on quasi-polynomials \( e^{\lambda t} p(t) \) where \( p(t) \) is a polynomial of degree less than 5. For a polynomial \( p(t) \), we have:
   \[
   \frac{d}{dt}(e^{\lambda t} p(t)) = e^{\lambda t} (\lambda p(t) + p'(t))
   \]
   This can be written as:
   \[
   \frac{d}{dt} = \lambda \text{id} + f
   \]
   where \( f(p) = p'(t) \).

2. **Exponential of the Operator**:
   We need to find \( \exp\left(\frac{d}{dt}\right) \). Using the linearity of the exponential function for operators, we get:
   \[
   \exp\left(\frac{d}{dt}\right) = \exp(\lambda \text{id} + f) = e^{\lambda} \exp(f)
   \]

3. **Nilpotent Operator \( f \)**:
   The operator \( f \) (differentiation) is nilpotent with index 6 because the highest degree of \( p(t) \) is 4, and the 5th derivative of any polynomial of degree less than 5 is zero. Thus, \( f^6 = 0 \).

4. **Jordan Form of \( f \)**:
   Since \( f \) is nilpotent with index 6, in any basis, \( f \) admits a Jordan form similar to \( J_6 \), the Jordan nilpotent matrix of order 6:
   \[
   J_6 = \begin{pmatrix}
   0 & 1 & 0 & 0 & 0 & 0 \\
   0 & 0 & 1 & 0 & 0 & 0 \\
   0 & 0 & 0 & 1 & 0 & 0 \\
   0 & 0 & 0 & 0 & 1 & 0 \\
   0 & 0 & 0 & 0 & 0 & 1 \\
   0 & 0 & 0 & 0 & 0 & 0
   \end{pmatrix}
   \]

5. **Exponential of \( f \)**:
   The Jordan form of \( \exp(f) \) is \( I_6 + J_6 \), where \( I_6 \) is the identity matrix of order 6.

6. **Combining Results**:
   Therefore, the Jordan form of \( \exp\left(\frac{d}{dt}\right) \) is:
   \[
   e^{\lambda} (I_6 + J_6) = e^{\lambda} I_6 + e^{\lambda} J_6
   \]

### Part 2: Jordan Normal Form of \( \text{ad}_A \)

1. **Operator Definition**:
   The operator \( \text{ad}_A \) is defined as \( B \mapsto [A, B] \), where \( A \) is a diagonal matrix. This can be written as:
   \[
   \text{ad}_A = A \otimes I - I \otimes A^T
   \]

2. **Diagonalizability**:
   If \( A \) is diagonalizable with spectrum \( \{\lambda_i\}_i \), then \( \text{ad}_A \) is also diagonalizable.

3. **Spectrum of \( \text{ad}_A \)**:
   The spectrum of \( \text{ad}_A \) is given by the set \( \{\lambda_i - \lambda_j\}_{i,j} \).

The final answer is \( \boxed{ e^{\lambda} I_6 + e^{\lambda} J_6 } \) for the first part and the spectrum \( \{\lambda_i - \lambda_j\}_{i,j} \) for the second part.