.Net
- Singleton code
- Oops
- Abstraction and Encapsulation with example
- Linq
- IEnumerable vs IList
- Collection
- How List works internally
- Linkedlist
- Array vs Arraylist
- Boxing and unboxing
- Generic method
- Get second highest salary in LINQ
- How transaction works in LINQ
- Get Average in LINQ
- Left join in LINQ
- Global.asax file
- SOLID principle
- Abstract class vs interface
- Method hiding in c#
- Dictionary vs Hashtable
- Dictionary vs List
- Use case scenario for dictionary
- Explain need of design pattern
- Explain predicate
- State management
- Different ways of parallel programing
- Difference between String and StringBuilder
- Difference between Finalize and Dispose
- Can we have static parameterized constructor
- Queue in C#
- IEnumerable vs IEnumerator
- Garbage collector and stages
- Method overloading criteria
- What is Aspnet core ?
- Explain startup.cs
- Difference between statrtup.cs and program.cs
- What is middleware
- What are filters
- Async call in aspnet core
- What is background service
- Attribute routing vs Conventional Routing
- What is Repository pattern
- Aspnet core life cycle
- How to implement cache .. Redis cache ,Distributed cache
- Explain Scoped , Transient , Singleton
- What is option pattern
- validation in aspnet core
- What is cors
- difference between app.use and app.run
- Explain JWT token
- Different types of action result
- How to implement OAuth
- Explain different status code in web api
- angular content projection
- difference between zone.js and ngZone
- Resolve Guard
Ans -
1xx (Informational):
- 100 Continue: The server has received the request headers and the client should proceed to send the request body.
- 101 Switching Protocols: The server is indicating a protocol change, typically in response to a Upgrade header from the client.
2xx (Successful):
- 200 OK: The request was successful, and the server has returned the requested data.
- 201 Created: The request has been fulfilled, and a new resource has been created as a result.
- 204 No Content: The request was successful, but there is no response body to return.
3xx (Redirection):
- 300 Multiple Choices: The request has multiple possible responses, and the client should choose one.
- 302 Found (or 303 See Other): The requested resource has been temporarily moved to a different URL.
- 304 Not Modified: The client's cached copy of the resource is still valid.
4xx (Client Errors):
- 400 Bad Request: The server couldn't understand the request, often due to invalid syntax.
- 401 Unauthorized: Authentication is required, and the provided credentials are either missing or invalid.
- 403 Forbidden: The client does not have permission to access the requested resource.
- 404 Not Found: The requested resource could not be found on the server.
5xx (Server Errors):
- 500 Internal Server Error: An unexpected error occurred on the server.
- 501 Not Implemented: The server does not support the functionality required to fulfill the request.
- 502 Bad Gateway: The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
- 503 Service Unavailable: The server is currently unable to handle the request due to temporary overloading or maintenance.
21 Can we return view from api ?
Microservices
- What is microservices
- Monolithic vs Microservices
- Advantages and disadvantages of microservices
- Sync and Asyn call
- Microservices Qeue
ANGULAR
- Difference between JS and typescript
- Angular lifecycle hooks
- NgModules
- Explain Lazy loading in Angular
- What is Directive in Angular
- What is pipe method
- What is Zone.js
- What is change detection strategy
- What is pre loading , can we customize loading , can we load module with some interval
- What are rxjs operators
- promise vs subscriptions
- subject vs Behavior Subject
- Providers
- Interceptors , HttpInterceptors and Error Interceptor
- Treeshaking techniq
- What is component
- What is service
- ngOninit method
- Unit test case
- debounce in Angular
- model driven form vs template driven form
- What is component resolver
- server side rendering
- ClientSide Sessions
- AuthGuards in Angular CanActivate and CanDeactivate
Azure
- What is Azure
- What is VM
- What is Active Directory
- What is Storage , Structered ,Semi Strunctured, UnStructured data
- MSMQ
- Azure Service Bus
- Horizontal vs Vertical Scaling
SQL :
Javascript :
- ES6 features
- var let const
- shallow copy vs deep copy
- closure
- javascript hoisting
Program :
C# get char occurance from given string
Javascript Get Max from given array :
var array = [1,2,3,4,5,9,4,10,6,9];
var initialValue = 0;
const output = array.reduce((a,v)=> v>a?a=v:a,0);
console.log(output);
//or
console.log(Math.max(...array));
var name = "google";
string newString = string.Empty;
foreach(Char c in name){
if(newString.IndexOf(c.ToString())==-1){
newString=newString+c.ToString();
}
}
Console.WriteLine(newString);
Output :
gole
In Javascript :
var name = "google";
console.log([...new Set(name.split(''))].join(''));
No comments:
Post a Comment