Add office photos
Cognizant logo
Engaged Employer

Cognizant

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

Cognizant Senior Software Developer Interview Questions and Answers

Updated 6 Jun 2024

Q1. what is entity framework

Ans.

Entity Framework is an ORM (Object-Relational Mapping) framework for .NET applications.

  • ORM framework for .NET applications

  • Maps database tables to classes in code

  • Provides a way to query and manipulate data using LINQ

  • Supports various database providers such as SQL Server, MySQL, etc.

Add your answer
right arrow

Q2. what are solid principles

Ans.

SOLID principles are a set of five design principles for writing maintainable and scalable object-oriented code.

  • Single Responsibility Principle (SRP) - a class should have only one reason to change

  • Open/Closed Principle (OCP) - classes should be open for extension but closed for modification

  • Liskov Substitution Principle (LSP) - objects of a superclass should be replaceable with objects of its subclasses without affecting the program's correctness

  • Interface Segregation Principle...read more

Add your answer
right arrow

Q3. what are design patterns

Ans.

Design patterns are reusable solutions to common problems in software design.

  • Design patterns provide a template for solving recurring design problems in software development.

  • They help in making code more maintainable, scalable, and efficient.

  • Examples include Singleton, Factory, Observer, and Strategy patterns.

Add your answer
right arrow

Q4. what is CTE in SQL

Ans.

CTE stands for Common Table Expression in SQL, used to create temporary result sets that can be referenced within a query.

  • CTEs are defined using the WITH keyword

  • They can be recursive or non-recursive

  • CTEs improve readability and maintainability of complex queries

  • Example: WITH cte AS (SELECT * FROM table_name) SELECT * FROM cte

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

Q5. Singleton, mutable vs immutable

Ans.

Singleton is a design pattern that restricts the instantiation of a class to one object. Immutable objects cannot be changed after creation.

  • Singleton pattern is used to ensure only one instance of a class is created and provide a global point of access to it.

  • Mutable objects can be changed after creation, while immutable objects cannot.

  • Immutable objects are thread-safe and can be shared across multiple threads without the need for synchronization.

  • Examples of immutable objects ...read more

Add your answer
right arrow

Q6. React js useMemo useCallback difference

Ans.

useMemo is used to memoize the result of a function, while useCallback is used to memoize a function itself.

  • useMemo is used to optimize expensive calculations by caching the result and returning it when the dependencies don't change.

  • useCallback is used to optimize the performance of child components by preventing unnecessary re-renders when the dependencies don't change.

  • Both useMemo and useCallback accept a dependency array as the second argument to specify when the memoized ...read more

Add your answer
right arrow

More about working at Cognizant

Back
Awards Leaf
AmbitionBox Logo
Top Rated Mega Company - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated IT/ITES Company - 2024
Awards Leaf
HQ - Teaneck. New Jersey., United States (USA)
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 Cognizant Senior Software Developer

based on 4 interviews
1 Interview rounds
Technical 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
COMPANY BENEFITS
ICICI Bank
Junagadh
1 benefits
COMPANY BENEFITS
ICICI Bank
Kakinada
6 benefits
SALARIES
Cognizant
SALARIES
Cognizant
SALARIES
Cognizant
SALARIES
Cognizant
SALARIES
Cognizant
SALARIES
Reliance Capital
SALARIES
Cognizant
SALARIES
Reliance Capital
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