HCL Interview Question

having few questions in c# and sql