How to generate contour from DEM in QGIS?

There are many methods or sources for obtaining contour like cartographic source (digitalization of old topo map), stereo-pairs, lidar data, photogrammetric methods, GIS softwares etc.

One of the data source for contour is Digital Elevation Model (DEM). In this tutorial we will learn how we can get contour through DEM in QGIS. Follow the following steps: