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

Difference between NPM and NPX

NPM Vs NPX npm  - Javascript package manager npx  - Execute npm package binaries https://docs.npmjs.com/files/folders#executables If you use  npm 5.1 or earlier , you can't use npx. Instead, install create-react-app globally: npm install -g create-react-app Now you can run: create-react-app my-app NPM: One might install a package locally on a certain project: npm install some - package Now let's say you want NodeJS to execute that package from the command line: $ some - package The above will  fail . Only  globally installed  packages can be executed by typing their name  only . To fix this, and have it run, you must type the local path: $ ./ node_modules /. bin / some - package You can technically run a locally installed package by editing your  packages.json  file and adding that package in the  scripts  section: { "name" : "whatever" , "version" : "1.0.0" , "scripts" : { ...

Asp.Net MVC Life Cycle

MVC Life Cycle: 1. Routing -         Routing is the first step in ASP.NET MVC pipeline. Typically, it is a pattern matching system that matches the incoming request to the registered URL patterns in the Route Table. The UrlRoutingModule(System.Web.Routing.UrlRoutingModule) is a class which matches an incoming HTTP request to a registered route pattern in the RouteTable(System.Web.Routing.RouteTable). 2.Controller Initialization -        The MvcHandler initiates the real processing inside ASP.NET MVC pipeline by using ProcessRequest method. This method uses the IControllerFactory instance (default is System.Web.Mvc.DefaultControllerFactory) to create corresponding controller. 3. Action Execution – Action execution occurs in the following steps:        When the controller is initialized, the controller calls its own InvokeAction() method by passing the details of the chosen action method. This is han...

Books To Refer

1. C#   in Depth ,  Third   Edition : Foreword   by Eric   Lippert        By:  Jon Skeet    Publication Date:  16-SEP-2013 2. Learning jQuery - Fourth Edition     B y:  Jonathan Chaffer; Karl Swedberg     Pub. Date:  June 25, 2013      3.Beginning JSON                    By:  Ben Smith     Publication Date:  04-MAR-2014 4. Responsive Web Design with jQuery     By:  Gilberto Crespo      Pub. Date:  November 25, 2013 5. Developing Responsive Web Applications with AJAX and jQuery       By:  Sandeep Kumar Patel  P ub. Date:  July 25, 2014 6. Dependency Injection in .NET     by  Mark Seemann