Filter interviews by
Errors can be reported in log files using error_log() function in PHP.
Use error_log() function to log errors in a file
Specify the error message and the log file path as parameters
Example: error_log('Error message', 3, '/var/log/php_errors.log')
Use error_reporting() function to set the level of error reporting
Query to get 4th highest salary from employees table
Use ORDER BY and LIMIT to get the 4th highest salary
Join the employees table with itself to avoid duplicates
Use subquery to get the 4th highest salary
Laravel follows a series of steps to handle a request and generate a response.
The request is first received by the web server and passed to the index.php file in the public directory.
The index.php file loads the Laravel framework and creates an instance of the application.
The application then handles the request by routing it to the appropriate controller method.
The controller method processes the request and retu...
Group by and having are used to group data and filter groups based on conditions.
Group by is used to group data based on a specific column or expression.
Having is used to filter groups based on conditions.
Sample query: SELECT column1, COUNT(column2) FROM table GROUP BY column1 HAVING COUNT(column2) > 10;
Exceptions can be handled using try-catch blocks in PHP.
Use try-catch blocks to enclose the code that may throw an exception.
Catch the exception using catch block and handle it appropriately.
Multiple catch blocks can be used to handle different types of exceptions.
Finally block can be used to execute code regardless of whether an exception occurred or not.
Object-oriented concepts are fundamental principles in programming that allow for the creation and manipulation of objects.
Encapsulation: bundling data and methods together in a single unit (class)
Inheritance: creating new classes from existing ones, inheriting their properties and behaviors
Polymorphism: the ability of objects to take on many forms, allowing for flexibility and extensibility
Abstraction: simplifyin...
Magic methods in PHP are special methods that are automatically called in response to certain events or actions.
Magic methods start with a double underscore (__) followed by the method name.
They are used to implement functionality such as overloading, property access, and object serialization.
Examples of magic methods include __construct(), __get(), __set(), __toString(), etc.
MySQL Join is used to combine rows from two or more tables based on a related column between them.
Join is used to retrieve data from multiple tables in a single query.
It helps in avoiding data redundancy and improves query performance.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Join conditions are specified using the ON keyword.
Example: SELECT * FROM table1 JOIN table2 ON table1.column ...
A join query combines rows from two or more tables based on a related column.
Use INNER JOIN to select records with matching values in both tables.
Example: SELECT * FROM users INNER JOIN orders ON users.id = orders.user_id;
LEFT JOIN returns all records from the left table and matched records from the right table.
Example: SELECT * FROM users LEFT JOIN orders ON users.id = orders.user_id;
RIGHT JOIN returns all record...
Middleware in Laravel is a mechanism that allows filtering HTTP requests entering your application.
Middleware can be used to authenticate users, authorize access, handle CORS, log requests, etc.
Middleware can be applied globally to all routes or specific to certain routes or groups of routes.
To create a middleware, use the `make:middleware` Artisan command.
Middleware can be registered in the `app/Http/Kernel.php` ...
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
1 hr coding with 2 basic questions.
I applied via Approached by Company and was interviewed in Dec 2023. There was 1 interview round.
I applied via Approached by Company and was interviewed before Feb 2023. There were 3 interview rounds.
Simple straightforward test,
Tell me about your self
Case study live scenario
I applied via Naukri.com and was interviewed in Jun 2022. There were 2 interview rounds.
I applied via Recruitment Consultant and was interviewed in Mar 2021. There was 1 interview round.
Object-oriented concepts are fundamental principles in programming that allow for the creation and manipulation of objects.
Encapsulation: bundling data and methods together in a single unit (class)
Inheritance: creating new classes from existing ones, inheriting their properties and behaviors
Polymorphism: the ability of objects to take on many forms, allowing for flexibility and extensibility
Abstraction: simplifying com...
Magic methods in PHP are special methods that are automatically called in response to certain events or actions.
Magic methods start with a double underscore (__) followed by the method name.
They are used to implement functionality such as overloading, property access, and object serialization.
Examples of magic methods include __construct(), __get(), __set(), __toString(), etc.
Arrays and string functions are essential in PHP development.
Array functions: array_push(), array_pop(), array_merge(), array_slice()
String functions: strlen(), str_replace(), strpos(), strtolower()
Examples: array_push($array, 'value'), strlen('hello'), str_replace('world', 'PHP', 'Hello world')
Exceptions can be handled using try-catch blocks in PHP.
Use try-catch blocks to enclose the code that may throw an exception.
Catch the exception using catch block and handle it appropriately.
Multiple catch blocks can be used to handle different types of exceptions.
Finally block can be used to execute code regardless of whether an exception occurred or not.
MySQL Join is used to combine rows from two or more tables based on a related column between them.
Join is used to retrieve data from multiple tables in a single query.
It helps in avoiding data redundancy and improves query performance.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Join conditions are specified using the ON keyword.
Example: SELECT * FROM table1 JOIN table2 ON table1.column = tab...
A join query combines rows from two or more tables based on a related column.
Use INNER JOIN to select records with matching values in both tables.
Example: SELECT * FROM users INNER JOIN orders ON users.id = orders.user_id;
LEFT JOIN returns all records from the left table and matched records from the right table.
Example: SELECT * FROM users LEFT JOIN orders ON users.id = orders.user_id;
RIGHT JOIN returns all records fro...
Group by and having are used to group data and filter groups based on conditions.
Group by is used to group data based on a specific column or expression.
Having is used to filter groups based on conditions.
Sample query: SELECT column1, COUNT(column2) FROM table GROUP BY column1 HAVING COUNT(column2) > 10;
Laravel follows a series of steps to handle a request and generate a response.
The request is first received by the web server and passed to the index.php file in the public directory.
The index.php file loads the Laravel framework and creates an instance of the application.
The application then handles the request by routing it to the appropriate controller method.
The controller method processes the request and returns a...
Middleware in Laravel is a mechanism that allows filtering HTTP requests entering your application.
Middleware can be used to authenticate users, authorize access, handle CORS, log requests, etc.
Middleware can be applied globally to all routes or specific to certain routes or groups of routes.
To create a middleware, use the `make:middleware` Artisan command.
Middleware can be registered in the `app/Http/Kernel.php` file.
...
Top trending discussions
I applied via Naukri.com and was interviewed in May 2023. There were 4 interview rounds.
Some of the top questions asked at the Nalashaa Solutions interview -
based on 7 interview experiences
Difficulty level
Duration
based on 76 reviews
Rating in categories
Senior Software Engineer
49
salaries
| ₹12.3 L/yr - ₹22.1 L/yr |
Software Engineer
32
salaries
| ₹4.2 L/yr - ₹14.7 L/yr |
Lead Engineer
21
salaries
| ₹12.6 L/yr - ₹27.8 L/yr |
Software Developer
19
salaries
| ₹5 L/yr - ₹14 L/yr |
Business Development Executive
14
salaries
| ₹4 L/yr - ₹9.5 L/yr |
Saama Technologies
Jumio
DISYS
Data-Core Systems