Learn C++ Online

Testing and debugging

On this page
This lesson contains approximately 40 minutes of video content.

Testing vs. debugging

What to do and not to do

Careful considerations

Informal testing and debugging

Assert

Formal tests

Questions

Q1

QT&D Q1

This question is ungraded.

Which of the following makes your code MORE difficult to read?

Q2

QT&D Q2

This question is ungraded.

Which of the following are examples of informal testing and debugging?

Q3

QT&D Q3

This question is ungraded.

True or false: Informal testing is a perfect substitute for formal testing.

Q4

QT&D Q4

This question is ungraded.

What happens when an assertion’s expression evaluates to false? (assume that the assertion is not bypassed by any compilation flags)

Q5

QT&D Q5

This question is ungraded.

Which type of formal testing verifies the behavior of low-level code in isolation from the rest of the system?