Concept:
A microcontroller is a compact integrated system designed to perform specific control tasks.
Step 1: Microprocessor structure
A microprocessor mainly contains CPU only and requires external components like memory and I/O ports.
Step 2: Microcontroller structure
A microcontroller integrates CPU, memory, and I/O ports on a single chip.
Step 3: Memory inclusion
It includes RAM and ROM/Flash internally.
Step 4: I/O ports inclusion
It also has built-in input/output ports for direct interfacing.
Step 5: Conclusion
\[
\boxed{\text{On-chip memory and on-chip ports}}
\]
Final Answer:
\[
\boxed{(A)}
\]