0% found this document useful (0 votes)
2 views4 pages

Core Webapi Csharp SQL Interview Qa

Uploaded by

shindesujal070
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Core Webapi Csharp SQL Interview Qa

Uploaded by

shindesujal070
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ASP.

NET Core, Web API, C# OOPs & SQL Server -


Most Asked Interview Questions and Answers

C# OOPs
Q1: What are the four pillars of OOP?
Answer: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Q2: Difference between class and object?
Answer: Class is a blueprint; object is an instance of a class.
Q3: What is method overloading?
Answer: Multiple methods with same name but different parameters.
Q4: What is method overriding?
Answer: Redefining a base class method in a derived class using virtual/override.
Q5: Difference between abstract class and interface?
Answer: Abstract class can have implementation; interface defines a contract.
[Link] Core
Q1: What is [Link] Core?
Answer: A cross-platform framework for building web applications and APIs.
Q2: What is Dependency Injection?
Answer: A design pattern where dependencies are provided from outside the class.
Q3: What is Middleware?
Answer: Software components that handle requests and responses in the pipeline.
Q4: What is [Link]?
Answer: Configuration file used to store application settings.
Q5: Difference between .NET Framework and .NET Core?
Answer: .NET Core is cross-platform and high-performance.
Web API
Q1: What is Web API?
Answer: A framework used to build HTTP services accessible by clients.
Q2: What are HTTP methods?
Answer: GET, POST, PUT, PATCH, DELETE.
Q3: What is REST?
Answer: Architectural style using stateless communication over HTTP.
Q4: What is JWT Authentication?
Answer: Token-based authentication mechanism.
Q5: Difference between PUT and PATCH?
Answer: PUT updates entire resource; PATCH updates partial resource.
SQL Server
Q1: What is a primary key?
Answer: A column that uniquely identifies each row.
Q2: Difference between DELETE, TRUNCATE and DROP?
Answer: DELETE removes rows, TRUNCATE removes all rows quickly, DROP removes the
object.
Q3: What is a foreign key?
Answer: Maintains relationship between tables.
Q4: What is a stored procedure?
Answer: Precompiled SQL statements stored in database.
Q5: Difference between clustered and non-clustered index?
Answer: Clustered changes physical order; non-clustered creates separate structure.

You might also like