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

OOPS Concepts with Real Time Example

Abstract Class Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. Let's look at an example of an abstract class, and an abstract method. Example:- Suppose we were modeling the behavior of animals, by creating a class hierachy that started with a base class called Animal. Animals are capable of doing different things like flying, digging and walking, but there are some common operations as well like eating and sleeping. Some common operations are performed by all animals, but in a different way as well. When an operation is performed in a different way, it is a good candidate for an abstract method (forcing subclasses to provide a custom implementation). Let's look at a very primitive Animal base class, which defines an abstract method for making a sound (s...

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" : { ...

Python Multi Threading

Speeding up Python code using multithreading A lot of times we end up writing code in Python which does remote requests or reads multiple files or does processing on some data. And in a lot of those cases I have seen programmers using a simple  for loop  which takes forever to finish executing. For example: import requests from time import time  url_list = [     "https://via.placeholder.com/400",     "https://via.placeholder.com/410",     "https://via.placeholder.com/420",     "https://via.placeholder.com/430",     "https://via.placeholder.com/440",     "https://via.placeholder.com/450",     "https://via.placeholder.com/460",     "https://via.placeholder.com/470",     "https://via.placeholder.com/480",     "https://via.placeholder.com/490",     "https://via.placeholder.com/500",     "https://via.placeholder.com/510...