Concept:
This is a simple first-order differential equation where the variables are separable. We can integrate the right-hand side directly with respect to \( x \).
Step 1: Separate the variables.
\[ dy = (e^x + 1) dx \]
Step 2: Integrate both sides.
\[ \int dy = \int (e^x + 1) dx \]
\[ y = \int e^x dx + \int 1 dx \]
Step 3: Final evaluation.
\[ y = e^x + x + C \]
This matches option (B).