CGI interview question

1.OOPS principles 2.Basic sql questions