Dynamic analysis is the testing of code for quality, security, and safety through various methods like unit testing, integration testing, system testing, and others, that require code execution. Static analysis is the process of examining source code without execution.