Conditional expressions identify conditions that are tested to enable the object program to select between alternate paths of control depending…