Add office photos
Engaged Employer

HumaneBITS

4.5
based on 27 Reviews
Filter interviews by

Biocon Limited Interview Questions and Answers

Updated 12 Jun 2024

Q1. Table A has columns A-name, A-desc, A-BID, Table B has B-ID, B-name, A-BID is FK from B table, which JOIN to apply if want to get records which are A and B too.

Ans.

Use INNER JOIN to get records from both Table A and Table B based on the foreign key A-BID.

  • Use INNER JOIN to combine records from Table A and Table B based on the common column A-BID.

  • Specify the join condition using ON clause.

  • Select the columns you want to retrieve from both tables.

Add your answer

Q2. Write PHP script to sort an array without PHP default functions

Ans.

PHP script to sort an array without default functions

  • Create a function to implement a sorting algorithm like bubble sort, selection sort, or insertion sort

  • Loop through the array and compare each element with the next one to determine the order

  • Swap elements if they are in the wrong order until the array is sorted

Add your answer

Q3. Explain how login works in CodeIgniter/Laravel

Ans.

Login in CodeIgniter/Laravel involves creating a form for users to input their credentials, validating the input, checking against database records, and setting a session for authenticated users.

  • Create a login form with fields for username and password

  • Validate user input to ensure it meets required criteria

  • Check the entered credentials against records in the database

  • Set a session for authenticated users to maintain their login status

Add your answer

Q4. How to set session for 5 mins

Ans.

Use the session_set_cookie_params function to set session for 5 mins

  • Use session_set_cookie_params function to set the session cookie lifetime to 5 minutes

  • Example: session_set_cookie_params(300); // 300 seconds = 5 minutes

Add your answer
Discover Biocon Limited interview dos and don'ts from real experiences

Q5. Difference between session & cookie

Ans.

Session stores data on server side while cookie stores data on client side.

  • Session data is stored on the server, while cookie data is stored on the client's browser.

  • Sessions are more secure as the data is not exposed to the client, while cookies can be easily manipulated by the client.

  • Sessions are typically used for storing sensitive information like user credentials, while cookies are used for tracking user behavior or preferences.

  • Sessions expire when the user closes the bro...read more

Add your answer

Q6. Explain PDO in PHP

Ans.

PDO in PHP is a PHP Data Objects extension that provides a consistent interface for accessing databases.

  • PDO stands for PHP Data Objects

  • It is a database access layer providing a uniform method of access to multiple databases

  • It is more secure than the traditional MySQL extension

  • PDO supports prepared statements to prevent SQL injection attacks

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter