TechAhead interview question

Pattern making, oops, sql and basic C programming questions.