Skip to main content

.Net Questions

Questions to recall:-

1) what is framework
2) CLR?
3) IL
4) Garbage collection
5) Stack
6) Heap
7) Abstract class
8) Interface
9) Should inheriting class need to implement all the methods from the Interface?
10) Should inheriting class need to implement all the methods from the Abstract class?
11) JavaScript?
12) JQuery?
13) == vs === in JavaScript?
14) select all div 's using jQuery?
15) can I replace $ alias with my own symbol? Answer:Yes,example:-var item=jQuery.noConflict(); then use item instead of $.
16) how to know whether page has been loaded using jQuery?
17) how many document. Ready functions can be written in a single page?
18) Steps to query db. & load Grid view with data using ADO.NET?
19) create one cuss class & bind to div?
20) read textbox value using JQuery?
21) Inner join
22) Group by
23) Having
24) Increase all the employees salary by 100 rest (update query?)
25) MVC? Lifecycle?
26) Using keyword?
27) How to restrict URL  to call PartialView action method? ANS:setting ChildActionOnly attribute to method will help to achieve.
28) How to handle cache in MVC?


1) Assembly?
2) GAC?
3) how do I install an assembly in GAC?
4) can I install an assembly without signing it in GAC?
5) how to sign an assembly
6) can I place multiple web application in one application pool? Is it a good practice or not ? why?
7) how can automate referencing the assembly with its config?
8) how Response.Redirect works?
9) implement some functionality before & after the action executed?
10) how to prevent executing the partial view from url?
11) Garbage collection
12) Dispose & Finalize
13) Why we should not implement Finalize functionality?
14) Linq query to get the unique characters from a string?
15) Linq query to know whether a particular char is there in a string?
16) any one Design pattern?
17) write a sample route?
18) how to write a route where id should be integer only & where do you write it?


1) Process of creating a WCF service & consuming
2) WSDL?
3) IEnumerable?
4) IComparable?
5) When do we implement Dispose functionality?
6) What is the use of Unsafe keyword? & when do we use it?
7) Write a program for the following i/p & o/p? (repeated character should not occur)
  i/p: response o/p: respon
  i/p: happiest o/p: hapiest
8) How did you implement High Charts?
9) Current role in the project?

By Hap...Mind

OOPS - basics, Design principles, design patterns, SOLID
C# (LINQ, Delegates, events, TPL, collections, generics)
.NET (Memory management, IL, JIT, Exception handling)
ORM (EF - diff approaches, LINQ to SQL)
ASP.NET - (State management, life cycle, Handlers, methods, Caching, Security)
MVC - (Life cycle, Action filters, Validations, Partial views, layouts, Routing)
Dependency Injection – (any one - Spring.net, Unity, Structure map)
Unit testing (NUnit, Mocks)
Services (WebAPI, WCF)
SQL (Triggers, Views, SP, functions, Indexes ..)
Scheduling library (Quartz.Net)
Common (Performance, Logging, Security)

By Gop...


1.What is the use of Enumerator&IEnumerable,Queriable&IQueriable?
2.How to create custom collection method in C#?example... create a class which should behave like List in C#.
3.How foreach loop works internally for looping?
4.How extension methods work in C# and syntax for extension methods?
5.In MVC, How to trigger two action methods in single call ?

By Other company


How GC work?
How it determines whether an object can be collected? based on what?
(It internally maintains some map table)

Caching
How Session management actually work, step by step
Task parallel library
How do you optimize, if client complaints page is loading very slowly
Index difference
Index seek vs scan
Stored procedure advantage
Simulate a landline phone into class and object
SOLID principles
ORM tool use
NHibernate vs EF
Duck
Parrot
Dog

consider the properties of these 3 animal behaviors create an object oriented system
Abstraction vs Encapsulation
Interface vs Abstract class, which scenarios we go for each?
Image mapper?
if we are accessing other jQuery libraries where you will put that code in aspx page? on top or bottom?what’s the diff?

-------

MVC

Action filters
What happens if I create protected/private action methods
What is the replacement of View state in MVC
Data move between Controller to controller
Can I give private properties in Interface?


By Spid... Logic 



Comments

Popular posts from this blog

C# IEnumerable and IQueryable

The first important point to remember is IQueryable interface inherits from IEnumerable, so whatever IEnumerable can do, IQueryable can also do.   There are many differences but let us discuss about the one big difference which makes the biggest difference. IEnumerable interface is useful when your collection is loaded using LINQ or Entity framework and you want to apply filter on the collection. Consider the below simple code which uses IEnumerable with entity framework. It’s using a Wherefilter to get records whose EmpId is 2. EmpEntities ent = new EmpEntities(); IEnumerable<Employee> emp = ent.Employees;  IEnumerable<Employee> temp = emp.Where(x => x.Empid == 2).ToList<Employee>(); This where filter is executed on the client side where the IEnumerable code is. In other words all the data is fetched from the database and then at the client its scans and gets the record with EmpId is 2.   But now see the below code we have...