Add office photos
Engaged Employer

Cognizant

3.8
based on 47k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

Interview Questions and Answers

Updated 6 Jun 2024
Popular Designations

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

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

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

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
Discover null 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

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

More about working at Cognizant

Top Rated Mega Company - 2024
Top Rated IT/ITES Company - 2024
HQ - Teaneck. New Jersey., United States (USA)
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at null

based on 3 interviews in the last 1 year
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Developer Interview Questions from Similar Companies

3.6
 • 21 Interview Questions
3.8
 • 17 Interview Questions
3.8
 • 16 Interview Questions
4.4
 • 16 Interview Questions
3.7
 • 15 Interview Questions
3.8
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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