Lead Programmer
Lead Programmer Interview Questions and Answers
Q1. Find 3rd highest salary from employee table in SQL.
Use SQL query with ORDER BY and LIMIT to find 3rd highest salary from employee table.
Use ORDER BY clause to sort salaries in descending order
Use LIMIT 2,1 to skip first two highest salaries and get the third highest salary
Example: SELECT salary FROM employee_table ORDER BY salary DESC LIMIT 2,1
Q2. What is CORS policy in web api?
CORS policy allows or restricts cross-origin requests in web APIs.
CORS stands for Cross-Origin Resource Sharing.
It is a security feature implemented by browsers to prevent unauthorized access to resources on a different origin.
CORS policy is enforced by the browser based on the response headers sent by the server.
Access-Control-Allow-Origin header specifies which origins are allowed to access the resource.
If the request origin does not match the allowed origins, the browser w...read more
Lead Programmer Jobs
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month