Filter interviews by
I applied via Apna Jobs and was interviewed in Jul 2020. There were 3 interview rounds.
Composer is a dependency manager for PHP.
Composer manages packages and their dependencies for PHP projects.
It allows easy installation and updating of packages.
Composer uses a composer.json file to define project dependencies.
Packages can be sourced from Packagist or other repositories.
Composer is widely used in the PHP community for managing project dependencies.
Gate is a Laravel feature that provides a simple way to authorize user actions.
Gate allows defining authorization policies for specific actions or resources.
It can be used to check if a user is authorized to perform a certain action.
Gate can be used in controllers, views, and other parts of the application.
Example: Gate::allows('update-post', $post) checks if the user is authorized to update the given post.
PHP code can be written in Blade templates using the @php directive.
Use the @php directive to write PHP code in Blade templates
Wrap the PHP code in opening and closing PHP tags
Use Blade syntax to output the result of the PHP code
Example: @php echo 'Hello World'; @endphp
MVC stands for Model-View-Controller, a software design pattern used for developing web applications.
Model represents the data and business logic
View displays the data to the user
Controller handles user input and updates the model and view accordingly
Separation of concerns makes it easier to maintain and modify code
Used in popular PHP frameworks like Laravel and CodeIgniter
Postman is a popular API development tool used for testing, documenting, and sharing APIs.
Postman allows developers to easily make HTTP requests and view responses.
It also provides features like automated testing, mock servers, and collaboration tools.
Postman can be used for REST, SOAP, and GraphQL APIs.
It has a user-friendly interface and is available as a desktop application or a web-based tool.
The .env file needs to be updated with production-specific configurations.
Update the APP_ENV variable to 'production'
Set the APP_DEBUG variable to 'false'
Update the database connection details
Update the cache and session drivers
Set the log level to 'error' or 'warning'
Update any other environment-specific configurations
posted on 21 Dec 2024
I applied via Campus Placement
General aptitude, computer science fundamentals multiple-choice questions, and data structures and algorithms multiple-choice questions were asked.
Function to reverse a given string
Create an empty string to store the reversed string
Iterate through the input string in reverse order and append each character to the new string
Return the reversed string
Binary search function to find target value in sorted array
Define function that takes sorted array and target value as input
Initialize variables for start, end, and middle indices
Use while loop to iterate until start is less than or equal to end
Graduating with honors, winning a hackathon, volunteering in a developing country
Graduated with honors from university with a degree in Computer Science
Won first place in a hackathon competition by developing a unique and innovative software solution
Volunteered in a developing country to help build schools and provide education to underprivileged children
I was interviewed in Nov 2024.
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There was 1 interview round.
Using sliding window technique to find subarray with sum equal to k.
Initialize two pointers at the start of the array.
Move the right pointer to expand the window until the sum is greater than or equal to k.
Move the left pointer to shrink the window if the sum exceeds k.
Repeat until the end of the array is reached.
Example: Input array [1, 4, 20, 3, 10, 5], k=33. Output: [20, 3, 10].
I want to join TCS because of its reputation for innovation and growth opportunities.
TCS is known for its cutting-edge technology solutions
Opportunities for career advancement and skill development
Global presence and diverse client base
I applied via Approached by Company and was interviewed in May 2024. There were 2 interview rounds.
Authentication verifies a user's identity, while authorization determines what a user can access.
Authentication confirms a user's identity through credentials like username and password.
Authorization controls access to resources based on the authenticated user's permissions.
Example: Logging into a website (authentication) and then being able to view/edit specific pages based on your role (authorization).
To render a list in React, use map() function to iterate over an array of data and return a list of components. State is mutable data managed within a component, while props are immutable data passed from parent to child components.
To render a list in React, use map() function to iterate over an array of data and return a list of components.
Example: const items = ['item1', 'item2', 'item3']; items.map(item =>
Webpage optimization techniques include minifying CSS and JS files, optimizing images, using asynchronous loading for scripts, and reducing render-blocking scripts.
Minify CSS and JS files to reduce file sizes and improve loading times.
Optimize images by compressing them and using the correct file format (e.g. JPEG for photographs, PNG for graphics).
Use asynchronous loading for scripts to prevent them from blocking the ...
Use SCSS to apply background color to nested li elements and utilize mixins.
Use nesting to target the li elements within a parent element
Apply background color to the 2nd li element using the :nth-child() selector
Define and use mixins to reuse styles across the codebase
To fix cumulative layout shift issues, ensure all images and media have dimensions specified in HTML, use CSS aspect ratio boxes, and prioritize loading critical resources.
Specify dimensions for all images and media in HTML to prevent layout shifts.
Use CSS aspect ratio boxes to reserve space for images before they load.
Prioritize loading critical resources to avoid sudden layout changes.
Coding a frontend UI from provided image. And creating a fucntional star rating system
Designing a Component API in React using Typescript involves defining props, state, and methods for the component.
Define the props interface to specify the expected input data for the component
Use typescript types to ensure type safety and prevent runtime errors
Define the state interface to manage the internal state of the component
Implement methods to handle user interactions and component logic
Document the component
Function to clear all timer ids at once
Create an array to store all timer ids
Iterate through the array and clear each timer id using clearTimeout() function
TCS
Accenture
Wipro
Cognizant