Interview questions

C#.NET interview notes part 3

A journey to C#.NET interview notes with Nishant Kumar, founder of www.careerride.com

Follow me on FACEBOOK for Job updates and other interview related articles

<<Previous   Next>>  
  • Dock property ensures the controls to an edge of the form on change in size or repositioning of the form.
  • Anchor property ensures if controls should be fixed, floats, or change size in response to the change in size of form.
  • We can create control at run-time by declaring control and instantiating of the type. We can then add instantiated control to the control collection of the form.
  • Each control’s property on the form can be enhanced by using Extender Provider component. These properties mostly used to provide information to the user like help or tool tip.
  • Menu is the best navigation way in the application. We can create MainMenu control that allows rapid creating of menu for the application. Developer can apply separator bars, access keys and shortcut keys.
  • Context menu allows us to get access to various commands on the specific situation.
  • Developer can create this kind of menu same as MainMenu but at run-time.
  • We can control the menu dynamically at run-time. We can enable and disable the menu items, make menu items invisible etc. We can change the structure of menu dynamically at run-time by creating new menu with the CloneMenu method.
  • We can have form-level validation as well as field level validations.
  • We can validate each field as data entered using field-level validation.
  • We can validate all fields of the form at one shot using form-level validation.
  • The textbox control contains properties like MaxLength, PasswordChar, ReadOnly, Multiline. These properties are used to restrict user to enter unwanted data in the field. Developer can tap keyboard events of the control like Keydown, KeyUp and Keypress.
  • Developer can validate character input by using static methods of char structure like char.IsDigit, CharIsletter, Char.Islower, Char.IsUpper etc.
  • The CauseValidation property of the control allows us to disable the event to occur. The event occurs only when CauseValidation property of the control is set to true.
  • We can set CancelEventArgs.Cancel property to true in the event handler to restrict focus from moving away from the control.
  • The ErrorProvoider component of the control can be used at run time for displaying informative error message to the user.

<<Previous   Next>>
What benefit do you get from using a Primary Interop Assembly (PIA)?

A primary interop assembly contains type definitions (as metadata) of types implemented with COM. Only a single PIA can exist, which needs to be signed with a strong name by the publisher of the COM type library............

What are circular references? Explain how garbage collection deals with circular references.

A circular reference is a run-around wherein the 2 or more resources are interdependent on each other rendering the entire chain of references to be unusable........

Explain with code sample how to Implement a Web Service in .NET.

C# generics are a simpler approach to parameterized types without the complexity of C++ templates In addition, C# does not attempt to provide all of the functionality that C++ templates provide...........

Describe how a .Net application is compiled and executed.

From the source code, the compiler generates Microsoft Intermediate Language (MSIL) which is further used for the creation of an EXE or DLL. The CLR processes these at runtime. Thus, compiling is the process of generating this MSIL........... .

 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring