Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
I was assigned to implement basic CRUD operation in an API (the code should be production-ready). I was also instructed to perform Unit tests.
The composer.lock file is used to lock the exact versions of dependencies in a project to ensure consistent builds.
Prevents different versions of dependencies from being installed on different machines
Ensures that all developers are using the same versions of dependencies
Helps in maintaining consistency and stability of the project
To write a custom authentication & middleware in Laravel, you can create a custom guard and middleware classes.
Create a custom guard by extending the 'Illuminate\Auth\Guard' class and implementing the necessary methods like 'validate' and 'user'.
Register the custom guard in the 'auth.php' configuration file.
Create a custom middleware by extending the 'Illuminate\Auth\Middleware\Authenticate' class and implementing the ...
Custom requests with validations in Laravel can be handled using Form Requests.
Create a new Form Request using artisan command: php artisan make:request CustomRequest
Define validation rules in the authorize() and rules() methods of the CustomRequest class
Inject the CustomRequest class into your controller method to automatically validate the incoming request
Polymorphism in Laravel relationships allows a model to belong to multiple other models.
Polymorphic relationships allow a model to belong to multiple other models.
It is useful when a model can belong to more than one other model.
For example, a Comment model can belong to either a Post or a Video model.
Use Laravel's Eloquent ORM with chunking and eager loading for optimized fetching of 5 million records from 3 tables in a single DB.
Use Laravel's Eloquent ORM to fetch records efficiently
Use chunking to process large datasets in smaller, manageable chunks
Utilize eager loading to reduce the number of queries executed
To write a unit test in Laravel #8, use PHPUnit and create test classes that extend the TestCase class.
Create a new test class in the 'tests' directory.
Extend the class with PHPUnit's TestCase class.
Write test methods within the class to test specific functionality.
Use assertions provided by PHPUnit to check if the code behaves as expected.
Run the tests using the 'php artisan test' command.
Use the migrate:rollback command with --step option to rollback to a specific version in Laravel migration.
Use php artisan migrate:rollback --step=n command to rollback n number of migrations.
Specify the number of migrations to rollback to a specific version.
For example, php artisan migrate:rollback --step=3 will rollback the last 3 migrations.
Sessions store data on the server side, while cookies store data on the client side.
Sessions store data on the server side, while cookies store data on the client side.
Sessions are more secure as the data is stored on the server and not accessible by the client.
Cookies are limited in size (4KB) and can be disabled by the client, while sessions have no such limitations.
Laravel uses a unique session identifier to find a specific session for each user.
Laravel generates a unique session ID for each user upon login
The session ID is stored in a cookie on the user's browser
Laravel uses the session ID to retrieve the user's session data from the server
Laravel Notifications allow you to send notifications across multiple channels. Different types of mailers in Laravel include SMTP, Mailgun, and Sendmail.
Laravel Notifications can be sent through email, SMS, Slack, and more
SMTP mailer is commonly used for sending emails in Laravel
Mailgun is a popular mailer service that can be integrated with Laravel for sending emails
Sendmail is another option for sending emails in La
To send asynchronous notifications in Laravel, use queues to handle background processing.
Use Laravel's built-in queue system to send notifications asynchronously.
Define a notification class and use the ShouldQueue interface to indicate that the notification should be sent asynchronously.
Dispatch the notification using the queue driver of your choice (e.g. database, Redis, Amazon SQS).
Laravel Queue is a feature that allows you to delay the execution of a time-consuming task, improving application performance.
Queues help in offloading time-consuming tasks to be processed in the background
Tasks are added to the queue and processed by workers asynchronously
Laravel provides drivers like Redis, Beanstalkd, and Amazon SQS for queue management
To upgrade Laravel, you need to follow the official documentation and use Composer to update dependencies.
Check the Laravel documentation for the specific version you are upgrading to
Update your composer.json file with the new Laravel version
Run 'composer update' command in your terminal to update dependencies
Check for any deprecated features or changes in the new version and make necessary adjustments
Indexing in DB tables improves query performance by allowing the database to quickly locate specific rows.
Indexes help in speeding up data retrieval operations by providing quick access to rows based on the indexed columns.
They reduce the number of disk I/O operations required to fetch data, resulting in faster query execution.
Indexes can also enforce uniqueness constraints and improve the efficiency of joins between t...
The 'Key' directive in Vue is used to uniquely identify elements in a list to improve performance and prevent re-rendering.
Helps Vue efficiently update the DOM by reusing existing elements instead of creating new ones
Prevents unnecessary re-rendering of elements in a list when their order changes
Improves performance by allowing Vue to track and update specific elements based on their keys
Example:
Vue 3 is the latest version of Vue.js with improved performance, new features, and better TypeScript support.
Vue 3 uses a new reactivity system called the Composition API, which offers more flexibility and better organization of code compared to Vue 2's Options API.
Vue 3 introduces a new compiler that generates optimized code for better performance.
Vue 3 provides better TypeScript support with improved type inference a...
Options API is more verbose and flexible, while Composition API is more organized and reusable.
Options API allows defining component options in separate sections like data, methods, computed, etc.
Composition API allows organizing code based on logic and reusability with setup() function.
Options API is suitable for smaller projects or when starting with Vue, while Composition API is recommended for larger projects or co...
The 'env' function in Vue is used to access environment variables in your application.
Use process.env to access environment variables in Vue components
Environment variables can be set in a .env file at the root of your project
Remember to restart your development server after adding or changing environment variables
Using 'Scope' in style allows us to apply styles to specific elements within a component.
Scope in style allows us to target specific elements within a component without affecting others
It helps in organizing and managing styles more efficiently
Scope can be used to prevent styles from leaking out of a component
In such cases, it is important to analyze the issue thoroughly on the production server and implement a fix cautiously.
First, analyze the logs and error messages on the production server to understand the root cause of the issue.
Check for any recent changes or updates that might have caused the problem.
If possible, try to replicate the issue in a controlled environment like staging or local to further investigate.
Consu...
Top trending discussions
posted on 19 Nov 2021
I applied via Naukri.com and was interviewed in May 2021. There was 1 interview round.
Check if a number is prime and optimize the code.
Start by checking if the number is less than 2, in which case it is not prime.
Iterate from 2 to the square root of the number and check if any of them divide the number evenly.
If a divisor is found, the number is not prime. Otherwise, it is prime.
To optimise API calls in React, use asynchronous functions and caching techniques.
Use async/await to handle API calls
Implement caching to reduce network requests
Use memoization to avoid unnecessary re-renders
Consider using a state management library like Redux
Use performance profiling tools like React DevTools
posted on 9 Feb 2022
I applied via Campus Placement
Online Coding Test included some aptitude questions, technical questions followed by 3 coding questions
I applied via Recruitment Consulltant and was interviewed before Apr 2023. There were 3 interview rounds.
An actual component is a reusable and modular piece of software that performs a specific function within a larger system.
Components are often designed to be independent and can be easily integrated into different systems.
Examples of components include buttons, input fields, and dropdown menus in a user interface.
Components can have their own logic, styling, and functionality, making them versatile building blocks for s
Designing the architecture for a software system involves planning the structure and components of the system.
Identify the key components of the system and their interactions
Choose appropriate technologies and frameworks for each component
Consider scalability, performance, security, and maintainability
Create a detailed diagram or documentation of the architecture
posted on 12 Apr 2023
I applied via Recruitment Consulltant and was interviewed before Apr 2022. There were 3 interview rounds.
25 MCQ questions online with time limit
Create webapp . Frontend, Backend , data encryption
posted on 4 Nov 2023
I appeared for an interview in Oct 2023.
Easy to medium
profit and loss questions
Permutation and combination
Easy to medium
45 mins
Operator overloading allows operators to be redefined for user-defined types in Java.
Operator overloading is not supported in Java as it can lead to ambiguity and confusion.
Java does not allow custom operators to be defined or existing operators to be overloaded.
Instead of operator overloading, Java provides method overloading where methods with the same name but different parameters can be defined.
Java is a high-level, object-oriented programming language known for its platform independence and robust features.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for modular and reusable code
Java is known for its robust standard library, which includes tools for networking, I/O, and more
It supports multithreading, allowing for concurrent e...
posted on 24 Sep 2024
I applied via Campus Placement
Easy aptitude, 30 min with 20 question
posted on 25 Sep 2024
I applied via Referral and was interviewed before Sep 2023. There were 2 interview rounds.
Simple aptitude questions.
My strength lies in my problem-solving skills and ability to learn quickly.
Strong problem-solving skills
Quick learner
Adaptability to new technologies
Ability to work well under pressure
Yes, I am comfortable working under pressure and have experience delivering high-quality work in tight deadlines.
I have successfully completed projects with tight deadlines in my previous roles.
I am able to prioritize tasks effectively and remain focused under pressure.
I thrive in challenging situations and see them as opportunities to showcase my skills.
I have experience working on urgent bug fixes and resolving issue
posted on 11 Feb 2022
I applied via Campus Placement and was interviewed in Aug 2021. There were 4 interview rounds.
1st test was aptitude and a easy coding test
The 2nd test was pure coding based test on hacker rank platform and contains 2 easy and 2 medium question
posted on 6 Jan 2025
I applied via LinkedIn and was interviewed in Dec 2024. There were 2 interview rounds.
Based on JavaScript and Java.
A task based on JavaScript.
Some of the top questions asked at the Reflections Info Systems Php Full Stack Developer interview -
based on 1 interview
Interview experience
Senior Software Engineer
47
salaries
| ₹4.4 L/yr - ₹13.2 L/yr |
Software Engineer
40
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Data Engineer
13
salaries
| ₹2 L/yr - ₹5 L/yr |
System Analyst
13
salaries
| ₹5.5 L/yr - ₹13 L/yr |
Machine Learning Engineer
11
salaries
| ₹3 L/yr - ₹10 L/yr |
Accel Frontline
Northcorp Software
Elentec Power India (EPI) Pvt. Ltd.
HyScaler