Add office photos
Capgemini logo
Engaged Employer

Capgemini

Verified
3.7
based on 42.1k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Senior Software Developer
Clear (1)

10+ Capgemini Senior Software Developer Interview Questions and Answers

Updated 28 Dec 2024

Q1. What is call, apply and bind in JavaScript?

Ans.

Call, apply and bind are methods used to manipulate the 'this' keyword in JavaScript functions.

  • Call and apply are used to invoke a function with a specific 'this' context and arguments.

  • Call takes arguments as comma-separated values, while apply takes arguments as an array.

  • Bind returns a new function with a specific 'this' context, which can be called later with arguments.

  • Bind is useful for creating a new function with a fixed 'this' context, such as event handlers.

Add your answer
right arrow

Q2. Code a React app to change name state on a click of a button on code sandbox.

Ans.

Code a React app to change name state on a click of a button on code sandbox.

  • Create a functional component with a state for name

  • Render a button with an onClick event to update the name state

  • Display the name state in the component

  • Use CodeSandbox to test the app

Add your answer
right arrow

Q3. what happens when same key value is entered in HAshmap

Ans.

When the same key value is entered in a HashMap, the new value will overwrite the existing value associated with that key.

  • When a duplicate key is added, the new value will replace the old value for that key

  • HashMap does not allow duplicate keys, so each key must be unique

  • Retrieving the value for a key will return the most recently added value

Add your answer
right arrow

Q4. Write Java 8 streams API code to test if string is a palindrome

Ans.

Using Java 8 streams API to check if a string is a palindrome

  • Use stream to convert the string to a character array

  • Reverse the character array using stream

  • Compare the reversed array with the original array to check for palindrome

Add your answer
right arrow
Discover Capgemini interview dos and don'ts from real experiences

Q5. What is promise in JavaScript?

Ans.

Promise is an object representing the eventual completion or failure of an asynchronous operation.

  • Promises are used to handle asynchronous operations in JavaScript

  • A promise has three states: pending, fulfilled, or rejected

  • Promises can be chained using .then() and .catch() methods

  • Promises can be created using the Promise constructor or the shorthand syntax

Add your answer
right arrow

Q6. sql performance optimication how to deal

Ans.

SQL performance optimization involves indexing, query optimization, and database design improvements.

  • Use indexes on frequently queried columns to speed up search operations.

  • Optimize queries by avoiding unnecessary joins, using appropriate data types, and limiting the number of rows returned.

  • Consider denormalizing the database schema for better performance in read-heavy applications.

  • Regularly monitor and analyze query performance using tools like EXPLAIN in MySQL or Query Stor...read more

Add your answer
right arrow
Are these interview questions helpful?

Q7. al tools can be used in net how

Ans.

Various tools like Visual Studio, ReSharper, Git, and Jira can be used in .NET development.

  • Visual Studio is a popular IDE for .NET development

  • ReSharper is a code analysis tool that can be used with Visual Studio

  • Git is a version control system commonly used in .NET projects

  • Jira is a project management tool that can be integrated with .NET development workflows

Add your answer
right arrow

Q8. What is @Controller and @RestController

Ans.

The @Controller and @RestController annotations are used in Spring MVC to define classes as controllers for handling web requests.

  • The @Controller annotation is used to define a class as a controller in Spring MVC, which can handle web requests and return a view.

  • The @RestController annotation is used to define a class as a RESTful controller in Spring MVC, which can handle web requests and return data in JSON or XML format.

  • The @RestController annotation is a combination of @Co...read more

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. Difference between @pathvariable and @requestParam

Ans.

PathVariable is used to extract values from the URI while RequestParam is used to extract values from query parameters.

  • PathVariable is used to bind a method parameter to a URI template variable in a Spring MVC application.

  • RequestParam is used to extract query parameters from the URL in a Spring MVC application.

  • PathVariable is part of the URI while RequestParam is part of the query parameters.

  • PathVariable is used for mandatory parameters while RequestParam is used for optional...read more

Add your answer
right arrow

Q10. Build a react todo app.

Ans.

A React todo app with CRUD functionality.

  • Use React hooks to manage state.

  • Create a form to add new todos.

  • Display todos in a list and allow for editing and deletion.

  • Use local storage to persist data.

  • Style with CSS or a UI library like Material UI.

Add your answer
right arrow

Q11. 1. What is @ComponentScan

Ans.

Annotation used in Spring framework to enable component scanning for Spring-managed beans.

  • Used to automatically detect and register Spring-managed beans within the specified package(s)

  • Can be used at class level or configuration classes to specify base package(s) to scan

  • Can be customized with additional attributes like basePackageClasses, includeFilters, excludeFilters

  • Example: @ComponentScan(basePackages = {"com.example.package1", "com.example.package2"})

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Capgemini Senior Software Developer

based on 9 interviews
2 Interview rounds
Technical Round
HR Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Developer Interview Questions from Similar Companies

View all
Recently Viewed
JOBS
National Payments Corporation of India
No Jobs
INTERVIEWS
IndusInd Bank
No Interviews
SALARIES
Bajaj Finserv
JOBS
APR Projects
No Jobs
JOBS
Emkay Global Financial Services
No Jobs
INTERVIEWS
Merkle
No Interviews
DESIGNATION
SALARIES
Bajaj Finserv
JOBS
Indian Exhibition Services
No Jobs
INTERVIEWS
Axis Bank
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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