Add office photos
Employer?
Claim Account for FREE

Headstream Technologies

3.8
based on 4 Reviews
Filter interviews by

20+ Limra Consulting Engineers Interview Questions and Answers

Updated 5 Feb 2024

Q1. There are 1 lakh records on an employee table. How do we can optimize the below query? SELECT * FROM dbo.Employees WHERE City="Chennai"

Ans.

Optimizing query to fetch records from employee table based on city

  • Create an index on the City column

  • Use a WHERE clause with an index hint

  • Use a stored procedure to cache the query results

  • Use a materialized view to precompute the query results

Add your answer

Q2. Why do we go for an abstract class and how do you implement it

Ans.

Abstract classes provide a blueprint for other classes to follow and cannot be instantiated.

  • Abstract classes are used when we want to provide a common interface for a group of related classes.

  • They cannot be instantiated and must be extended by a subclass.

  • Abstract methods are declared in the abstract class and implemented in the subclass.

  • They can have both abstract and non-abstract methods.

  • Example: Animal is an abstract class and Dog, Cat, and Bird are its subclasses.

Add your answer

Q3. In a stored procedure there are 1000 lines of statement, how do you identify a slow running query

Ans.

Identifying slow running query in a 1000 line stored procedure

  • Use SQL Server Profiler to trace the stored procedure and identify the slow running query

  • Check the execution plan of the stored procedure to identify the slow running query

  • Use SET STATISTICS TIME ON to measure the execution time of each query in the stored procedure

  • Divide the stored procedure into smaller parts and test each part to identify the slow running query

Add your answer

Q4. What is partial views and how it is differs from View

Ans.

Partial views are reusable components of a view that can be rendered within other views.

  • Partial views are used to break down complex views into smaller, more manageable pieces.

  • They can be used to display common elements across multiple views, such as headers or footers.

  • Partial views can be rendered within other views using the @Html.Partial() method in ASP.NET MVC.

  • They can also be passed data from the parent view using the @Html.Partial() method with a model parameter.

  • Partial...read more

Add your answer
Discover Limra Consulting Engineers interview dos and don'ts from real experiences

Q5. What a SQL Function returns (what are the return type of function)

Ans.

SQL functions return a single value of a specified data type.

  • SQL functions can return various data types such as integer, string, date, etc.

  • The return type of a function is specified in the function declaration.

  • Functions can be used in SELECT, WHERE, and other SQL statements to manipulate data.

  • Examples of SQL functions include COUNT, AVG, MAX, MIN, and CONCAT.

  • Functions can also be user-defined using the CREATE FUNCTION statement.

Add your answer

Q6. What is a temporary table, where it is stored, what is the lifetime

Ans.

Temporary table is a table that exists temporarily in the database and is used to store intermediate results.

  • Temporary tables are created and used within a single session or transaction.

  • They are stored in the tempdb database in SQL Server.

  • They can be used to store intermediate results during complex queries or to simplify complex joins.

  • They are automatically dropped when the session or transaction ends or when they are explicitly dropped.

  • They can be created using the CREATE T...read more

Add your answer
Are these interview questions helpful?

Q7. What is SOLID Principle and explain about it....

Ans.

SOLID is a set of principles for object-oriented programming to make software more maintainable, scalable, and robust.

  • S - Single Responsibility Principle: A class should have only one reason to change.

  • O - Open-Closed Principle: A class should be open for extension but closed for modification.

  • L - Liskov Substitution Principle: Subtypes should be substitutable for their base types.

  • I - Interface Segregation Principle: A client should not be forced to depend on methods it does no...read more

Add your answer

Q8. Can we use SQL Functions on the JOIN Clause

Ans.

Yes, SQL Functions can be used on the JOIN Clause.

  • SQL Functions can be used on the JOIN Clause to manipulate the data before joining.

  • Examples of SQL Functions that can be used on the JOIN Clause are CONCAT, SUBSTRING, and DATE_FORMAT.

  • Using SQL Functions on the JOIN Clause can improve query performance and reduce the amount of data transferred.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What is Association, Composition and Aggregation

Ans.

Association, Composition and Aggregation are three types of relationships between classes in object-oriented programming.

  • Association is a relationship between two classes where one class uses the other class as a parameter or return type.

  • Composition is a relationship between two classes where one class owns the other class and is responsible for its creation and destruction.

  • Aggregation is a relationship between two classes where one class has a reference to the other class, b...read more

Add your answer

Q10. Why the clustered index is only one for a table

Ans.

Clustered index is only one for a table to ensure efficient data retrieval and storage.

  • Clustered index determines the physical order of data in a table.

  • Only one clustered index can be created per table.

  • It is recommended to choose a column with unique and sequential values as the clustered index.

  • Clustered index is used for range searches and sorting.

  • Non-clustered indexes can be created for additional search paths.

Add your answer

Q11. How to transfer data from controller to controller

Ans.

Data can be transferred between controllers using various methods such as delegation, notifications, or segues.

  • Delegation pattern can be used to transfer data between controllers

  • Notifications can be used to broadcast data to multiple controllers

  • Segues can be used to pass data between controllers during a transition

  • Data can also be stored in a shared data model or database for access by multiple controllers

Add your answer

Q12. Explain about Collections Vs Dictionary Vs KeyValuePair

Ans.

Collections are generic classes to store and manipulate groups of objects. Dictionary is a collection of key-value pairs. KeyValuePair is a struct that represents a key-value pair.

  • Collections are used to store and manipulate groups of objects.

  • Dictionary is a collection of key-value pairs where each key is unique.

  • KeyValuePair is a struct that represents a key-value pair and is used in Dictionary.

  • Collections and Dictionary are part of System.Collections.Generic namespace in C#.

Add your answer

Q13. What is table variable and its lifetime

Ans.

Table variable is a variable that holds a table-like structure in memory for temporary use.

  • Table variables are declared using the DECLARE keyword in SQL Server.

  • They can be used to store temporary data within a stored procedure or a batch of SQL statements.

  • Table variables have a scope limited to the batch or stored procedure in which they are declared.

  • They are automatically dropped when the batch or stored procedure completes execution.

  • Table variables can be used in place of t...read more

Add your answer

Q14. What is Garbage collection? Explain

Ans.

Garbage collection is an automatic memory management process that frees up memory occupied by objects that are no longer in use.

  • Garbage collection is a process of identifying and freeing up memory that is no longer in use by the program.

  • It is done automatically by the programming language runtime environment.

  • Garbage collection helps prevent memory leaks and improves program performance.

  • Examples of programming languages that use garbage collection are Java, Python, and Ruby.

Add your answer

Q15. What is MSDB in SQL Server

Ans.

MSDB is a system database in SQL Server used for managing SQL Server Agent jobs, alerts, and operators.

  • MSDB stands for Microsoft SQL Server Database

  • It stores metadata and configuration information for SQL Server Agent

  • It contains tables for job scheduling, alerts, and operators

  • It also stores backup and restore history information

Add your answer

Q16. What is CLR, and what will do

Ans.

CLR stands for Common Language Runtime. It is a component of .NET framework that manages execution of .NET programs.

  • CLR is responsible for memory management, security, and exception handling.

  • It compiles the intermediate language code into machine code.

  • CLR provides a common type system and runtime environment for all .NET languages.

  • It allows for cross-language integration and interoperability.

  • Examples of languages that run on CLR include C#, VB.NET, and F#.

Add your answer

Q17. What is SQL NOLOCK..?

Ans.

SQL NOLOCK is a query hint used to allow a SELECT statement to read data from a table without acquiring a shared lock.

  • NOLOCK is used to improve query performance by allowing dirty reads

  • It is not recommended to use NOLOCK in production environments

  • Other query hints include UPDLOCK, ROWLOCK, and XLOCK

Add your answer

Q18. What is MVC Data Annotations

Ans.

MVC Data Annotations are attributes used to define validation rules and metadata for model properties in ASP.NET MVC applications.

  • Used to validate user input on the server-side

  • Can be used to specify display names, format strings, and more

  • Examples include [Required], [StringLength], and [RegularExpression]

Add your answer

Q19. What is SQL covered index

Ans.

SQL covered index is an index that contains all the columns needed for a query, reducing the need for table lookups.

  • A covered index can improve query performance by reducing the number of disk I/O operations.

  • It is created by including all the columns needed for a query in the index.

  • Covered indexes are particularly useful for queries that involve large tables or complex joins.

  • Example: CREATE INDEX idx_name ON table_name (col1, col2) INCLUDE (col3, col4);

Add your answer

Q20. What is Async and Await

Ans.

Async and Await are keywords used in asynchronous programming in JavaScript.

  • Async and Await are used to handle asynchronous operations in JavaScript.

  • Async is used to define a function that returns a promise.

  • Await is used to wait for the promise to resolve before continuing the execution.

  • Async and Await make asynchronous code look like synchronous code.

  • Async and Await are supported in modern browsers and Node.js.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.6
 • 22 Interview Questions
4.1
 • 22 Interview Questions
3.7
 • 21 Interview Questions
4.3
 • 12 Interview Questions
3.7
 • 10 Interview Questions
3.5
 • 10 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

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