In some programs, students can earn a low-cost master’s degree partially through massive open online courses, or MOOCs.