Saturday, 14 May 2011

dot net questions

# What is .NET?
# How many languages .NET is supporting now?
# How is .NET able to support multiple languages?
# How ASP .NET different from ASP?
# What is smart navigation?
# What is view state?
# How do you validate the controls in an ASP .NET page?
# Can the validation be done in the server side? Or this can be done only in the Client side?
# How to manage pagination in a page?
# What is ADO .NET and what is difference between ADO and ADO.NET?
# Observations between VB.NET and VC#.NET?
# Advantages of migrating to VB.NET ?
# Advantages of VB.NET
# Using ActiveX Control in .Net
# What is Machine.config?
# What is Web.config?
# What is the difference between ADO and ADO.NET?
# What is the difference between VB and VB.NET?
# What is a Strong Name?
# What is a Manifest?
# Creating a Key Pair?
# What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"?
# What is GAC?
# What is a Metadata?
# What is managed code and managed data?
# What is .NET / .NET Framework?
# What is Reflection?
# What is "Common Type System" (CTS)?
# What is "Common Language Specification" (CLS)?
# What is "Common Language Runtime" (CLR)?
# What are Attributes?
# What are the Types of Assemblies?
# What is an Intermediate language?
# ASP.NET Authentication Providers and IIS Security
# What is the difference between ASP and ASP.NET?
# Using COM Component in .Net
# What is an assembly?
# What is a Web Service?
# webFarm Vs webGardens
# What is the difference between a namespace and assembly name?
# What's a Windows process?
# What's typical about a Windows process in regards to memory allocation?
# Explain what relationship is between a Process, Application Domain, and Application?
# What are possible implementations of distributed applications in .NET?
# What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
# What's a proxy of the server object in .NET Remoting?
# What are remotable objects in .NET Remoting?
# What are channels in .NET Remoting?
# What security measures exist for .NET Remoting in System.Runtime.Remoting?
# What is a formatter?
# Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?
# What's SingleCall activation mode used for?
# What's Singleton activation mode?
# How do you define the lease of the object?
# Can you configure a .NET Remoting object via XML file?
# How can you automatically generate interface for the remotable object in .NET with Microsoft tools?
# What is Delegation?
# What is "Microsoft Intermediate Language" (MSIL)?
# Differences between Datagrid, Datalist and Repeater?
# I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this?
# How do you trigger the Paint event in System.Drawing?
# With these events, why wouldn't Microsoft combine Invalidate and Paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
# How can you assign an RGB color to a System.Drawing.Color object?
# What class does Icon derive from? Isn't it just a Bitmap with a wrapper name around it?
# Before in my VB app I would just load the icons from DLL. How can I load the icons provided by .NET dynamically?
# When displaying fonts, what's the difference between pixels, points and ems?
# What is the difference between VB 6 and VB.NET?
# What are the authentication methods in .NET?
# What is Serialization in .NET?
# What's the use of System.Diagnostics.Process class?
# Difference Abstract class and Interface
# re-clarification of object based:
# How to achieve Polymorphism in VB.Net?
# Difference between Class And Interface
# What doesu mean by .NET framework?
# What is assembly?
# What is namespaces?
# NET framework overview
# What is the base class of .NET?
# Explain assemblies.
# Name some of the languages .NET support?
# ADO.NET features? Benefits? Drawbacks?
# How many types of exception handlers are there in .NET?
# Difference between Panel and GroupBox classes?
# What is the base class of Button control?
# What is Response object? How is it related to ASP's Response object?
# What is IIS? Have you used it?
# Main differences between ASP and ASP.NET.
# What are the advantages and drawbacks of using ADO.NET?
# Why The JavaScript Validation Not Run on the Asp.Net Button But Run SuccessFully On The HTML Button
# what is the difference between user control an custom control? advantages/disadvantages?
# What's the difference between Response.Write() andResponse.Output.Write()?
# What is the use of ErrorProvider Control?
# What is CLR?
# What is Delegate and what is it used for ?
# How is meant by DLL ?
# Which DLL translate XML to SQL in IIS?
# Can anyone tell me about Secure Socket Layer? How to make use of the technology?
# What is the Differnce Between Response.write & response.output.Write
# Which dll is required to translate XML to SQL in IIS ?
# What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
# What is serialization, how it works in .NET?
# What should one do to make class serializable?
# What exactly is being serialized when you perform serialization?
# How does output caching work in ASP.NET?
# What is connection pooling and how do you make your application use it?
# What are different methods of session maintenance in ASP.NET?
# What is Viewstate?
# Can any object be stored in a Viewstate?
# What should you do to store an object in a Viewstate?
# Explain how Viewstate is being formed and how it's stored on client.
# What do you know about ADO.NET's objects and methods?
# Explain DataSet.AcceptChanges and DataAdapter.Update methods.
# When we go for html server controls and when we go for web server controls?

What is DOTNET / .NET Framework?



Dot Net (.NET) Framework provides an environment to develop, deploy and run the web applications, web services and windows applications. The .NET Framework consists of three main parts:



* The Common Language Runtime
* A Hierarchical Set of Unified Class Libraries,
* A Componentized Version of Active Server Pages Called ASP.NET


The .NET Framework provides a new programming model and rich set of classes designed to simplify application development for Windows, the Web, and mobile devices. It provides full support for XML Web services, contains robust security features, and delivers new levels of programming power.





Ques 2. What is "Common Language Runtime" (CLR)?



CLR stands for Common Language Runtime, It is the runtime that converts a MSIL code into the host machine language code, which is then executed appropriately. CLR is responsible to take care of the code execution of the program. CLR has following responsibilities



* Garbage collection
* Code Access Security
* Code Verification
* Application memory isolation
* Verification of type safety
* Conversion of IL to native code.
* Managing memory for managed objects
* Enforcement of code access security

Ques 3. What is CTS (Common Type System)?

Microsoft Introduce Common Type System to communicate two different languages in one common platform. CTS, common type system is the one which brings all .net languages data types on a common platform. It defines types like System.Int16, System.Int32 etc. A language may map 'int' to System.Int16 while another may map its 'int' data type to System.Int32.

Because all data types from all languages are mapped to common .net datatypes we can integrate code written in different .net languages into one assembly.

Ques 4. What is CLS (Common Language Specifications)?



CLS is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow. It is a subset of CTS and it specifies how it shares and extends one another libraries.



Ques 5. What is MSIL (Microsoft Intermediate Language)?



Any .Net application is compiled in two steps -- first the high level language compiler compiles it into MSIL and then the CLR compiles IL code into native code.

MSIL is Microsoft Intermediate Language which is platform independent.

MSIL that language independent code integration is possible. All languages are compiled into IL and then IL code is linked and converted to native code.

Ques 6. What is Managed Code?



Managed Code runs inside the environment of CLR i.e. .NET (dot net) runtime. All IL are managed code.



Ques 7. What is an assembly?



Assembly is a unit of deployment like EXE or a DLL. An assembly consists of one or more files and represents a group of resources, type definitions, and implementations of those types.



"An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more files). All managed types and resources are marked either as accessible only within their implementation unit, or as accessible by code outside that unit."



Assemblies can be static or dynamic. Static assemblies can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in portable executable (PE) files. You can also use the .NET Framework to create dynamic assemblies, which are run directly from memory and are not saved to disk before execution. You can save dynamic assemblies to disk after they have executed.



Ques 8. What are types of Assembly?



Assembly has two types.



1. Private Assembly: It is normally used by a single application, and is stored in the application's directory, or a subdirectory.
2. Public Assembly: It is normally stored in the global assembly cache (GAC), shared assemblies are usually libraries of code which many applications will find useful, e.g. Crystal Report Classes



Ques 9. What is a Web Service?

A web service is a component which runs on a server and supports clients to be connected using open protocols like HTTP and SMTP.

· It uses SOAP for wrapping its objects to travel on the network.

· It exposes itself via UDDI. Users can search for a web service using UDDI.

· A web service is described using WSDL.

. What is the transport protocol you use to call a Web service SOAP ?
HTTP Protocol
95. Explain role based security ? Role Based Security lets you identify groups of users to allow or deny based on their role in the organization.In Windows NT and Windows XP, roles map to names used to identify user groups. Windows defines several built-in groups, including Administrators, Users, and Guests.To allow or deny access to certain groups of users, add the element to the authorization list in your Web application's Web.config file.e.g.
< authorization >
< allow roles="Domain Name\Administrators" / > < !-- Allow Administrators in domain. -- >
< deny users="*" / > < !-- Deny anyone else. -- >
< /authorization >
96. How do you register JavaScript for webcontrols ?
You can register javascript for controls using Attribtues.Add(scriptname,scripttext) method.
97. When do you set "" ?
Identity is a webconfig declaration under System.web, which helps to control the application Identity of the web applicaton. Which can be at any level(Machine,Site,application,subdirectory,or page), attribute impersonate with "true" as value specifies that client impersonation is used.
98. What are different templates available in Repeater,DataList and Datagrid ? Templates enable one to apply complicated formatting to each of the items displayed by a control.Repeater control supports five types of templates.HeaderTemplate controls how the header of the repeater control is formatted.ItemTemplate controls the formatting of each item displayed.AlternatingItemTemplate controls how alternate items are formatted and the SeparatorTemplate displays a separator between each item displyed.FooterTemplate is used for controlling how the footer of the repeater control is formatted.The DataList and Datagrid supports two templates in addition to the above five.SelectedItem Template controls how a selected item is formatted and EditItemTemplate controls how an item selected for editing is formatted.
99. What is ViewState ? and how it is managed ?
ASP.NET ViewState is a new kind of state service that developers can use to track UI state on a per-user basis. Internally it uses an an old Web programming trick-roundtripping state in a hidden form field and bakes it right into the page-processing framework.It needs less code to write and maintain state in your Web-based forms.





No comments:

Post a Comment