Data Warehousing (1107) Databases (3004) JAVA Related 2673) MainFrames (975) Microsoft Related (2296) Networking (553)
Operating Systems (919) Programming (3254) SAP (2318) Testing FAQS (1674) Testing Material (252) Web Related (994)

what is '1000 projects'?

'fullinterview.com' is a educational content website dedicated to finding and realizing final year projects for btech, be, mtech, mca students, here you can search, find your projects and get guidance from experts the below are the different technological projects.
visual Studio projects .net projects, asp projects, c & ds projects, c++ projects (all), cold fusion projects, delphi projects, java projects, perl projects, php projects, sql projects, vc++ projects, visual basic projects.

how it works?

well, everything on this site is submitted by the student and professional community. after you submit your project, it is being verified and approved by our administrator. after approval, other people can read/discuss it, save to favorites.

more number of projects?

here you can find morethan 1000 projects on different technologies, if u want to get more projects please visit our sister sites www.fullinterview.com & Chetanasprojects.com


Category Articles
Explain .NET architecture and framework?
Added on Sat, Jan 2, 2010
NET framework is a foundation calss on which you can build robust applications .This framework comprises of web forms,window forms andconsole applications..NET framework is basically a collection of services and classes.This exists as a layer... Read More
How do I create a multilanguage, multifile assembly?
Added on Sun, Jan 3, 2010
Unfortunately, this is currently not supported in the IDE. To do this from the command line, you must compile your projects into netmodules (/target:module on the C# compiler), and then use the command line tool al. exe (alink) to link these... Read More
What is interrupt?
Added on Fri, Jan 1, 2010
In simple terms, Interrupt are come from all hardware to indicate to the CPU that all hardware are live and work properly and it's an only way by which mode switching i.e. from User mode to kernel mode is done. Read More
What is hard disk and what is its purpose?
Added on Fri, Jan 1, 2010
Hard disk is the secondary storage device, which holds the data in bulk, and it holds the data on the magnetic medium of the disk.Hard disks have a hard platter that holds the magnetic medium, the magnetic medium can be easily erased and rewritten,... Read More
Consider a datagrid in windows application. Here item, rate, qty, amount field are there. When user enters rate and qty, amount should be automatically calculated. When enter key is pressed, the cursor should go from item to rate and then qty and the
Added on Sat, Jan 2, 2010
No answer available currently. Be the first one to reply to this question by submitting your answer from the form below.   Read More
Design a divide-by-3 sequential circuit with 50% duty circle?
Added on Sat, Jan 2, 2010
No answer available currently. Be the first one to reply to this question by submitting your answer from the form below.   Read More
Why do I get a "CS5001: does not have an entry point defined" error when compiling
Added on Sun, Jan 3, 2010
The most common problem is that you used a lowercase 'm' when defining the Main method. The correct way to implement the entry point is as follows: class test { static void Main(string[] args) {} } Read More
Explain about the rules for naming classes in C#?
Added on Sun, Jan 3, 2010
These are the rules for naming classes in c sharp. ? Must begin with a letter. This letter may be followed by a sequence of letters, digits (0-9), or ?_?. The first character in a class name cannot be a digit. ? Must not contain any embedded space... Read More
How do you implement thread synchronization (Object.Wait, Notify,and CriticalSection) in C#?
Added on Sun, Jan 3, 2010
You want the lock statement, which is the same as Monitor Enter/ Exit: lock(obj) { // code } translates to: try { CriticalSection.Enter(obj); // code } finally { CriticalSection.Exit(obj); } Read More
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
Added on Sun, Jan 3, 2010
Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class. Read More
How do I simulate optional parameters to COM calls?
Added on Sun, Jan 3, 2010
You must use the Missing class and pass Missing.Value (in System.Reflection) for any values that have optional parameters. Read More
How can C# app request minimum permissions?
Added on Sun, Jan 3, 2010
using System.Security.Permissions;<br>[assembly:FileDialogPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted=true)] Read More
How can you sort the elements of the array in descending order?
Added on Sun, Jan 3, 2010
By calling Sort() and then Reverse() methods. Read More
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Added on Sun, Jan 3, 2010
The tracing dumps can be quite verbose and for some applications that are constantly running you run the risk of overloading the machine and the hard drive there. Five levels range from None to Verbose, allowing to fine-tune the tracing activities. Read More
Does C# support parameterized properties?
Added on Sun, Jan 3, 2010
No. C# does, however, support the concept of an indexer from language spec. An indexer is a member that enables an object to be indexed in the same way as an array. Whereas properties enable field-like access, indexers enable array-like access. As... Read More
How do I create a Delegate/MulticastDelegate
Added on Sun, Jan 3, 2010
C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of information by just specifying the method&... Read More
What is the difference between response.redirect & server.transfer?
Added on Sat, Jan 2, 2010
according to my view diff. bw these two is response is an object which acess the redirect element whereas in other server is the object which acess the trasnsfer element.overall we can say that diff is of name of object.... Read More
Is it possible to have a static indexer in C#?
Added on Sun, Jan 3, 2010
No. Static indexers are not allowed in C#. Read More
Explain about protected internal access specifier?
Added on Sun, Jan 3, 2010
This specifier allows a class to hide its member variables and member functions to be accessed from other class objects and functions, except the child class, within the application. The protected internal access specifier becomes important while... Read More
What are the types of memory management?
Added on Fri, Jan 1, 2010
Memory Management is a crucial role in every operating system. Memory management is there are many types such as 1. Storage memory Management 2. I/O Memory Management etc .. Read More
The number or character entered through keyboard gets converted to equivalent ASCII code & it get stored on RAM in the binary form. What is the exact procedure
Added on Fri, Jan 1, 2010
It may be the ASCII Converter Read More
What is pipelining?
Added on Fri, Jan 1, 2010
Pipelining is a process in which the data is accessed in a stage by stage process. The data is accessed in a sequence that is each stage performs an operation. If there are n number of stages then n number of operations is done. To increase the... Read More
Are private class-level variables inherited?
Added on Sun, Jan 3, 2010
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are. Read More
What is cache coherency and how is it eliminated?
Added on Fri, Jan 1, 2010
Check this article which explains about Cache http://www.nedprod.com/NedHAL/Cache%20Coherency%20solutions.html Read More
What is cache?
Added on Fri, Jan 1, 2010
Physically Cache is a part of storage area in RAM which allocates and deallocates the frequenlty used information based on the diffferent methods like (LIFO, FIFO, LRU etc.) Read More
The characters entered through keyboard gets converted to equivalent ASCII code & stored on RAM in the binary form. What is exact procedure to happens on hardware that converts the ASCII value to equivalent binary form?
Added on Fri, Jan 1, 2010
Not exactly, the keys from the keyboard are not directly converted to ASCII values, keyboard generated a specific key code for every key pressed which is not the ASCII equivalent of that key. This keycode is then trapped by the OS which has a "Key... Read More
What is Virtual Memory?
Added on Fri, Jan 1, 2010
This Memory is used extending the capability of physical memory. This memory is simulated by the hard drive.When all the RAM is being used the computer will swap data to the hard drive and back to give the impression that there is more memory Read More
What are session variables
Added on Sat, Jan 2, 2010
Variabiles saved between the sessions ( ASP, PHP etc.) Can be stored in server side or client side (with cookies). Read More
What is the new features 3.5 frame work against with the tool?
Added on Sat, Jan 2, 2010
No answer available currently. Be the first one to reply to this question by submitting your answer from the form below.   Read More
What is a managed code.
Added on Fri, Jan 1, 2010
Question What is a managed code. Is 'Dim fs as filestreamobject' is a managed code?               Answers: The .NET Framework provides a run-time environment called the Common Language... Read More
I want questions in windows DNA.
Added on Sat, Jan 2, 2010
No answer available currently. Be the first one to reply to this question by submitting your answer from the form below.   Read More
What is ISAPI?
Added on Sat, Jan 2, 2010
ISAPI stands for Internet ServerApplication Programming Interface, is a specification that allows developers to extend IIS by writing components that proces raw HTTP requests. <br> <br>An ISAPI components ends up as DLL that IIS directs... Read More
Define Query Interface,Adref,Release
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval Read More
What is the difference between an interface and abstract class
Added on Sun, Jan 3, 2010
In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes. Read More
What is the difference between const and static read-only?
Added on Sun, Jan 3, 2010
The difference is that static read-only can be modified by the containing class, but const can never be modified and must be initialized to a compile time constant. To expand on the static read-only case a bit, the containing class can only modify it... Read More
Why does DllImport not work for me?
Added on Sun, Jan 3, 2010
All methods marked with the DllImport attribute must be marked as public static extern. Read More
In designing component package / framework using Interface programming, where is the best place to put the Interfaces to reduce dependencies? In a single assembly that is referenced by other assemblies. In the domain assembly near the class that inhe
Added on Fri, Jan 1, 2010
I think the best place is to keep them in the client assembly. By this, the cleint need not do a reference to any assembly for accessing the interface. Read More
If I return out of a try/finally in C#, does the code in the finally-clause run?
Added on Sun, Jan 3, 2010
Yes. The code in the finally always runs. If you return out of the try block, or even if you do a "goto" out of the try, the finally block always runs, as shown in the following example: using System; class main { public static void Main() { ... Read More
What namespaces are necessary to create a localized application?
Added on Sun, Jan 3, 2010
System.Globalization, System.Resources. Read More
Can you prevent your class from being inherited and becoming a base class for some other classes?
Added on Sun, Jan 3, 2010
Yes, that is what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It is the same concept as final class in Java. Read More
Difference between value and reference type?
Added on Sun, Jan 3, 2010
Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort Value types are stored in the Stack. Reference type - class, delegate, interface, object, string Reference types are stored in... Read More
What is the race around condition? How can it be overcome?
Added on Fri, Jan 1, 2010
Race conditions is a severe way crashing the server/ system at times. Generally this problem arises in priority less systems or the users who has eqal priority will be put to this problem. Race condition is a situation in which a resource D is to be... Read More
What is write back and write through caches?
Added on Fri, Jan 1, 2010
Generally Cache is using to imporve the performace of site.. We have two places where we can use caching.. 1. On Page Level... 2. Data level Caching for saving Dabase hit. Read More
Explain what is DMA?
Added on Fri, Jan 1, 2010
I think this is about hardware architecture, so DMA stands for Direct Memory Access -- transferring the content of the memory to a I/O device (or back) without using the processor. Read More
How do you improve the cache performance. ?
Added on Fri, Jan 1, 2010
Caching is done with so many ways like page caching, output caching etc. With ASP.NET we can achieve these effiecienty and handled by the CLR, which shows a direct impact on the Caching feature in .NET technology. Read More
What is the purpose of cache? How is it used?
Added on Fri, Jan 1, 2010
caching is often considered as a performance-enhancement tool than a way to to store application data.If u spend more server resources in accesing the same data repeatedly,use caching instead.Caching data can bring huge performance benefits ,so... Read More
What are different pipelining hazards and how are they eliminated. ?
Added on Fri, Jan 1, 2010
Pipeline is a process where a business object goes through several stages asynchronously. Where one stage picks up processes and drops it for the next process to pick up. The hazard is when the a different thread of the same process picks up the... Read More
What are the five stages in a DLX pipeline?
Added on Fri, Jan 1, 2010
Instruction Fetch Stage Instruction Decode Stage Instruction Execution Stage Memory Stage Write Back Read More
What is cache memory
Added on Fri, Jan 1, 2010
Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous... Read More
What is MESI?
Added on Fri, Jan 1, 2010
MESI is a Cache Coherency protocol used in multi-processor systems to indicate the state in which the data in the cache of a particular processor is. It stands of Modified, Exclusive, Shared and Invalid Read More
What?s the speed and device maximum specs for Firewire?
Added on Fri, Jan 1, 2010
EEE 1394 (Firewire) supports the maximum of 63 connected devices with speeds up to 400 Mbps. Read More
What is the difference between primary & secondary storage device?
Added on Fri, Jan 1, 2010
In primary storage device the storage capacity is limited. It has a volatile memory. In secondary storage device the storage capacity is larger. It is a nonvolatile memory. Primary devices are: RAM / ROM. Secondary devices are: Floppy disc / Hard... Read More
What do we mean by domestic architecture artifacts?
Added on Fri, Jan 1, 2010
Architecture refers most directly to the built environment, the structures humans create and occupy. While buildings are one type of architecture artifact, other objects also document the built environment. These objects include photographs,... Read More
What does the term "green architecture" mean?
Added on Fri, Jan 1, 2010
The Record Management System (RMS) is a simple record-oriented database that allows a MIDlet to persistently store information and retrieve it later. Different MIDlets can also use the RMS to share data. Read More
Difference b/w Machine config vs. web config
Added on Fri, Jan 1, 2010
Question : Difference b/w Machine config vs. web config InProcess vs out process session state State server and sqlserver Cookie less session state 5. gui programming              Answers: ... Read More
What is the difference between web service and web application
Added on Sat, Jan 2, 2010
web services are mechanism to acess remote programmeble logical unit by using http and xml combinly called SOAP(simple object access protocol)<br><br>Soap has some methods to access programmeble application logic by get, and post method.... Read More
When is Marshalling not necessary?
Added on Sat, Jan 2, 2010
Marshalling is the process of packaging and sending interface method parameters across thread, process or machine boundaries. Read More
What is Marshalling
Added on Sat, Jan 2, 2010
Marshalling is the process of gathering data from one or more applications or non-contiguous sources in computer storage, putting the data pieces into a message buffer, and organizing or converting the data into a format that is prescribed for a... Read More
What is IUnknown and what are its three parts?
Added on Sat, Jan 2, 2010
The COM interface class from which all other interface classes are derived. This interface allows all COM objects to manage their own lifetime, ie, to release themselves from memory when they are no longer connected to any clients. Read More
How many data types are supported in Vbscript
Added on Sat, Jan 2, 2010
VBScript consists of only one data type (Variant) Read More
Why do we use Option Explicit
Added on Sat, Jan 2, 2010
Option Explicit requires that all variable names be defined (with the Dim statement). Read More
Difference between Dim Object as object AND dim obj as myform
Added on Sat, Jan 2, 2010
Dim object as object --> the general VB object was created Dim obj as myform --> the myform object was created. The first one is general object and second one is the specified object. Read More
MFC
Added on Sat, Jan 2, 2010
MFC provides stricter type checking for the return and parameter types of message handler functions. This new behavior notifies the developer of potential problems by flagging potentially unsafe message handlers with an error message. MFC now uses... Read More
Java
Added on Sat, Jan 2, 2010
Java is Platform indepandent Langg,witch can use for web development componant and web site also Read More
How do you create Virtual Root in IIS
Added on Sat, Jan 2, 2010
To create a virtual directory by using IIS Manager 1. In IIS Manager, expand the local computer, expand the Web Sites or FTP Sites folder, right-click the site or folder within which you want to create the virtual directory, point to New, and then... Read More
How do you remotely administer MS IIS??
Added on Sat, Jan 2, 2010
using 1)IIS Manager 2) Terminal Services 3)Remote Administration (HTML) Tool Read More
How do you create Drop Down Combos in HTML ? select Tag
Added on Sat, Jan 2, 2010
Drop dowm can done through (<select <option> <option> Read More
How do assemblies find each other
Added on Sat, Jan 2, 2010
If the assemblies is private means doesn't worry about it. The assembly name is unique. Whereas the assemblies is like shared assembly find the name and versioning number of the assembly. Read More
What is the difference between asp.net and asp
Added on Sat, Jan 2, 2010
There are a number of striking differences between ASP.NET and ASP. For some of these differences, the benefits will be immediately obvious. For others. We?ll have to get used to new ways of thinking about dynamic web Pages. Among the changes are: ... Read More
What is the Difference between web application and enterprise application?
Added on Sat, Jan 2, 2010
Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the... Read More
Can multiple catch blocks be executed
Added on Sun, Jan 3, 2010
No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block. Read More
Is there regular expression (regex) support available to C# developers
Added on Sun, Jan 3, 2010
Yes. The .NET class libraries provide support for regular expressions. Look at the documentation for the System.Text.RegularExpressions namespace. Read More
What does the keyword virtual mean in the method definition?
Added on Sun, Jan 3, 2010
The method can be over-ridden. Read More
What is the difference between and XML documentation tag
Added on Sun, Jan 3, 2010
Single line code example and multiple-line code example. Read More
Where is the output of TextWriterTraceListener redirected
Added on Sun, Jan 3, 2010
To the Console or a text file depending on the parameter passed to the constructor. Read More
Difference between imperative and interrogative code?
Added on Sun, Jan 3, 2010
There are imperative and interrogative functions. Imperative functions are the one which return a value while the interrogative functions do not return a value. Read More
Can you override private virtual methods?
Added on Sun, Jan 3, 2010
No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access. Read More
Is it possible to have different access modifiers on the get/set methods of a property?
Added on Sun, Jan 3, 2010
No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is... Read More
What are the different types of Data?
Added on Sun, Jan 3, 2010
There are two different types of data supported by C#. They are 1) Value types: -They directly contain data. When you declare an int variable, the system allocates memory to store the value. 2) Reference type: -The reference types do not maintain... Read More
What is the data provider name to connect to Access database?
Added on Sun, Jan 3, 2010
Microsoft.Access. Read More
What?s the difference between L1 and L2 cache?
Added on Fri, Jan 1, 2010
Level 1 cache is internal to the chip, L2 is external. L1 Cache is of Higher speed than that of L2 Cache. Read More
What is the difference between a private assembly and a shared assembly?
Added on Sat, Jan 2, 2010
The .NET Assemblies Part1 This online presentation about .NET assemblies helps the webmasters to know about the three tier architecture and about .NET assemblies. The author describes the real need of the three-tier architecture. The author... Read More
What is garbage collection?
Added on Sat, Jan 2, 2010
The automatic memory management scheme employed by the .NET Framework (CLR) is called garbage collection. Unused memory is automatically reclaimed by garbage collection without interaction with the application The garbage collector is a low... Read More
What is the difference between .Net2000 and .Net2005(features)? Which one is better?
Added on Sat, Jan 2, 2010
net 2005 is better as it has many additional functionalities.in .net 2000,there was not the login control...but in 2005 it is.similarly many more functions is added in 2005. Read More
What are the differences between C# and VB.NET apart from syntax?which is more powerful,how do we determine which language to be used when designing a .NET app?
Added on Sat, Jan 2, 2010
C# is designed as a purely object oriented language from the scratch while VB.net was designed to port the existing VB programmers to dot net framework as VB.net is having the same feel as VB there are many features in C# which are not... Read More
What is Code Access Security (CAS
Added on Sat, Jan 2, 2010
CAS is a part of .NET security model that determines whether a piece of code is allowed to run and what resources it can use while running,eg:CAS will allow a application to be read but cannot delete it. Read More
What is serialization?
Added on Sat, Jan 2, 2010
SERIALIZATION: It is the process of converting the objects into stream of bytes which is used for Web Services or Remoting. There are 2 types of serializers present 1 XML Serializer:- used for web services 2Binary Formatter:-used for... Read More
What is reflection in Microsoft .NET Context
Added on Sat, Jan 2, 2010
Net Reflection : The REFLECTION is used to read the metadata information like(type, reference and methods). Which is derived from system.assembly.reflection class object. The simple meaning is to read assembly information by using this system... Read More
What are CLR, CTS and CLS?
Added on Sat, Jan 2, 2010
CLR See definition for common language runtime. CLS See definition for Common Language Specification. common type system The specification that determines how the common language runtime defines, uses, and manages types. common language... Read More
How do I spawn a thread?
Added on Sat, Jan 2, 2010
Threads are processed differently depending on IIS5. or IIS 6 is used. For each request that comes in, a new instance of the appropriate HttpApplication-derived class is created, as are the associated modules for that app. To avoid reallocating apps... Read More
What is SOAP and XML
Added on Sat, Jan 2, 2010
SOAP, Simple Object Access Protocol is the standard format for requesting web services. <br> <br>XML, Extensible Markup Langage is the format for exchanging data between Internet Application. Read More
Is .NET capable of supporting multi-thread?SS
Added on Sat, Jan 2, 2010
Multithreading is a important feature of .NET, which was not there in Visual Basic. If u want to use Multithreading, import a namespace called as System.Threading.In this namespace there are many classes related to it like Mutex,.... Read More
What is the satelite assembly?
Added on Sat, Jan 2, 2010
Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs... Read More
Difference between static page and dynamic page?
Added on Sat, Jan 2, 2010
Answer: Static Pages Quick and easy to put together, even by someone who doesn't have much experience. Ideal for demonstrating how a site will look. Cache friendly, one copy can be shown to many people. Dynamic Pages Offers highly... Read More
How do I stop a thread?
Added on Sat, Jan 2, 2010
NET allows to call System.Windows.Forms.Control functions only from thread where control was created. To run them from other thread we need to use Control.Invoke (synchronous call) or Control.BeginInvoke (asynchronous call) functions. For task like... Read More
Can I customise the trace output?
Added on Sat, Jan 2, 2010
You can customize the tracing output's target by adding TraceListener instances to or removing instances from the Listeners collection. Read More
Can I redirect tracing to a file?
Added on Sat, Jan 2, 2010
TextWriterListener will redirect the tracing output to an instance of the TextWriter or to any object of stream class such as log file, network stram or Console. Read More
How does assembly versioning work?
Added on Sat, Jan 2, 2010
You now know that compilers that target the .NET Framework produce managed modules and that managed modules contain CIL and metadata. But you might be surprised to learn that the CLR is incapable of using managed modules directly. That?s because the... Read More
What is an Application Domain?
Added on Sat, Jan 2, 2010
Operating systems and runtime environments provide some form of isolation between applications. This isolation is necessary to ensure that code running in one application cannot adversely affect other, unrelated applications Read More
What are IL and C#?
Added on Sat, Jan 2, 2010
IL: IL is a intermediate language, which is created when you compile the .net program. This is also a object oriented language. This makes cross language inheritance. c#: C# is a new OOPs language which is developed by Microsoft. This... Read More
What does 'managed' mean in the .NET context?
Added on Sat, Jan 2, 2010
The executed by the CLR environment it is called Managed Code, which can provide security, Exception Handling and Memory Management (Garbage Collection). Provide Type Safe. It becomes light weighted code. Read More
What languages does the .NET Framework support
Added on Sat, Jan 2, 2010
1. ASP.NET Web applications: These include dynamic and data driven browser based applications. 2. Windows Form based applications: These refer to traditional rich client applications. 3. Console applications: These refer to traditional DOS... Read More
What languages does the .NET Framework support?
Added on Sat, Jan 2, 2010
As per the specifications of microsoft we can use 44 languages. Commonly used languages are 1. Visual Basic.NET 2. Visual C# 3. Visual C++ Read More
What platforms does the .NET Framework run on?
Added on Sat, Jan 2, 2010
The .Net Framework runs on Windows XP, Windows Server 2003, Windows 2000, NT Server 4.0, Windows 98, or Windows ME, a lthough ASP.NET runs only on the first 3. Read More
What is .NET?
Added on Sat, Jan 2, 2010
According to Microsoft, .NET is a "revolutionary new platform, built on open Internet protocols and standards, with tools and services that meld computing and communications in new ways". A more practical definition would be that .NET is a new... Read More
What is ASP.NET?
Added on Sat, Jan 2, 2010
ASP.NET is the latest version of Microsoft's Active Server Pages technology (ASP). <br> <br>ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for creating dynamic and interactive web pages. Read More
Explain 2 tier ,3 tier architecture
Added on Sat, Jan 2, 2010
2 Tier Architecture: This appliation having only Presentation Layer and Database Layer. 3 Tier Architecture: This application having Presentation Layer(User Interface) ,Business Layer for only calling Database Layer,Database Access Layer(DAL for... Read More
how we can use datagrid value in select statements where condition ,if cell is hyperlink bounded column
Added on Sat, Jan 2, 2010
We can check it item_databound event of the datagrid. Read More
What is marshling
Added on Sat, Jan 2, 2010
Marshaling performs the necessary conversions in data formats between managed and unmanaged code.CLR allows managed code to interoperate with unmanaged code usining COM Marshaler(Component of CLR) Read More
How different are interface and abstract class in .Net?
Added on Sat, Jan 2, 2010
when a class is not provided with full functionalitythen it is declared as abstract.it doesn't support instance creation as well as it cannot be overridable to child class.interface is a colection of methods only without functionality.interface... Read More
In .NET Compact Framework, can I free memory explicitly without waiting for garbage collector to free the memory?
Added on Sat, Jan 2, 2010
NET Compact Framework come with CLR which perform automatic garbage collector to free the memory without using destector(perform garbage collector when is declear) Read More
What is the procedure to add assemly to GAC to make it shared one?
Added on Sat, Jan 2, 2010
Strong name the assembly using snk and copy the assembly into the windows/assembly folder Read More
What is IL in VB.Net?
Added on Sat, Jan 2, 2010
All .Net Compatible Language will run in IL or MSIL(InterMediate language or Microsoft Intermediate Language).The Language Like VB.Net,C# and J# ....<br> Read More
What are the components in .Net??
Added on Sat, Jan 2, 2010
In-Process Components<br><br>In .NET, components built as DLLs run within the process space of the host application and share memory and processor time with their host applications. At run time, the component (which is part of the host... Read More
What rare the Types of JIT and what is econo-JIT
Added on Sat, Jan 2, 2010
Types of jit : prejit,ecno jit,normal jit pre jit : convert source code to native code in single completion of cycle.Normally this can be done at the time of deployment. econo jit : coverts the only called methods to native code,however it... Read More
Can 2 different applications use the same dll in GAC at the same time?
Added on Sat, Jan 2, 2010
What is the reason of occuring overflow-underflow arithmatic exception error, it shows error message when we run our
Added on Sat, Jan 2, 2010
Question : What is the reason of occuring overflow-underflow arithmatic exception error, it shows error message when we run our program by adding control Answers: Its due to Divide by Zero Error i.e 5/0 Read More
How can create multiple inheritence inc#, with example?
Added on Sat, Jan 2, 2010
 class can implement multiple interfaces. public class A : Ix, Iy,Iz This way you can achieve multiple inheritence Read More
How i prepare parameterized(with more than one parameters) crystal report.pls tell me the code prodecure,if any body can.
Added on Sat, Jan 2, 2010
It works for me with this code:ParameterFields paramFields = new ParameterFields(); //setdata ParameterField param_date = new ParameterField(); param_date.ParameterFieldName = "date"; ParameterDiscreteValue d = new ParameterDiscreteValue(); d.Value =... Read More
A developer company sends dll's to the client. some
Added on Sat, Jan 2, 2010
Question : A developer company sends dll's to the client. some client is not happy current functionality, so request some modification. developer made some changes and send new dll to all clients. Some client is happy with old... Read More
What is the diff b/w asp.net & vb.net and tell about its architecture
Added on Sat, Jan 2, 2010
ASP.NET is a web-development platform.VB.NET is a language.Web-development with ASP.NET platform HTML, CSS, Client side scripts, ASP.NET tags and code behind with VB.NET or C#.NET or J#/C++ combination Read More
How can you have different number of cells for each row of a table?
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval. Read More
Describe a two tier Windows NT Domain?
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval Read More
When is Marshalling not necessary
Added on Sat, Jan 2, 2010
Answers: Marshalling is the process of packaging and sending interface method parameters across thread, process or machine boundaries. It is not necessary when the client and the server are on the same computer. Read More
What are The two tags for framesets
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval. Read More
In DHTML what is the difference between FontSize and Font Size ?? A: FontSize is a property, Font Size is a style
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval. Read More
Do COM keep track of all the object references(Accounting)?
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval. Read More
Define and explain COM.
Added on Sat, Jan 2, 2010
COM is the component Object Model is a system whch creates application which are binary form that is language independent , object oriented ,modular and reusable . Read More
The three file types in NT ?
Added on Sat, Jan 2, 2010
NTFS, FAT & FAT 32 are the file systems of NT. Read More
What is the tag Code Base and why do we use it?
Added on Sat, Jan 2, 2010
If you have the better answer, then send it to us. We will display your answer after the approval Read More
What are The three tags of a form tag in HTML form?
Added on Sat, Jan 2, 2010
Actually we have <html></html> and <head> and <body>tags we have. Read More
What is the difference between System.String and System.StringBuilder classes
Added on Sun, Jan 3, 2010
System.String is immutable; System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. Read More
How do I make a DLL in C#?
Added on Sun, Jan 3, 2010
You need to use the /target:library compiler option. Read More
What connections does Microsoft SQL Server support?
Added on Sun, Jan 3, 2010
Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). Read More
Is XML case-sensitive?
Added on Sun, Jan 3, 2010
Yes, so and are different elements. Read More
Is there a way to force garbage collection
Added on Sun, Jan 3, 2010
Yes. Set all references to null and then call System.GC. Collect(). If you need to have some objects destructed, and System.GC.Collect() doesn't seem to be doing it for you, you can force finalizers to be run by setting all the references... Read More
Is there an equivalent of exit() for quitting a C# .NET application?
Added on Sun, Jan 3, 2010
Yes, you can use System.Environment.Exit(int exitCode) to exit the application or Application.Exit() if it's a Windows Forms app. Read More
What is a delegate?
Added on Sun, Jan 3, 2010
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers. Read More
What is an interface class?
Added on Sun, Jan 3, 2010
It is an abstract class with public abstract methods all of which must be implemented in the inherited classes. Read More
What is a satellite assembly?
Added on Sun, Jan 3, 2010
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. Read More
Will finally block get executed if the exception had not occurred?
Added on Sun, Jan 3, 2010
Yes. What is the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception? Read More
I was trying to use an "out int" parameter in one of my functions. How should I declare the variable that I am passing to it?
Added on Sun, Jan 3, 2010
You should declare the variable as an int, but when you pass it in you must specify it as 'out', like the following: int i; foo(out i); where foo is declared as follows: [return-type] foo(out int o) { } Read More
What is the difference between the System.Array.CopyTo() and System.Array.Clone()?
Added on Sun, Jan 3, 2010
The first one performs a deep copy of the array, the second one is shallow. Read More
Does C# support try-catch-finally blocks?
Added on Sun, Jan 3, 2010
Yes. Try-catch-finally blocks are supported by the C# compiler. Here's an example of a try-catch-finally block: using System; public class TryTest { static void Main() { try { Console.WriteLine("In Try block"); throw new... Read More
How is method overriding different from overloading?
Added on Sun, Jan 3, 2010
When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class. Read More
Which one is trusted and which one is untrusted?
Added on Sun, Jan 3, 2010
Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction. Read More
Can you inherit multiple interfaces?
Added on Sun, Jan 3, 2010
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Added on Sun, Jan 3, 2010
With regard to versioning, interfaces are less flexible than classes. With a class, you can ship version 1 and then, in version 2, decide to add another method. As long as the method is not abstract (i.e., as long as you provide a default... Read More
What is the .NET datatype that allows the retrieval of data by a unique key?
Added on Sun, Jan 3, 2010
HashTable. What is class SortedList underneath? Read More
Does C# support properties of array types?
Added on Sun, Jan 3, 2010
Yes. Here's a simple example: using System; class Class1 { private string[] MyField; public string[] MyProperty { get { return MyField; } set { MyField = value; } } } class MainClass { public static int Main(string[] args) { Class1... Read More
When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)?
Added on Sun, Jan 3, 2010
When at least one of the methods in the class is abstract. When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden. Read More
When you inherit a protected class-level variable, who is it available to?
Added on Sun, Jan 3, 2010
Classes in the same namespace. Read More
How do I declare inout arguments in C#?
Added on Sun, Jan 3, 2010
The equivalent of inout in C# is ref. , as shown in the following example: public void MyMethod (ref String str1, out String str2) { ... } When calling the method, it would be called like this: String s1; String s2; s1 = "Hello"; MyMethod(ref... Read More
Explain ACID rule of thumb for transactions.
Added on Sun, Jan 3, 2010
Transaction must be Atomic (it is one unit of work and does not dependent on previous and following transactions), Consistent (data is either committed or roll back, no ?in-between? case where something has been updated and something hasnot),... Read More
Can you change the value of a variable while debugging a C# application
Added on Sun, Jan 3, 2010
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window. Read More
Why cannot you specify the accessibility modifier for methods inside the interface?
Added on Sun, Jan 3, 2010
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default. Read More
How can I create a process that is running a supplied native executable (e.g., cmd.exe)?
Added on Sun, Jan 3, 2010
The following code should run the executable and wait for it to exit before continuing: using System; using System.Diagnostics; public class ProcessTest { public static void Main(string[] args) { Process p = Process.Start(args[0]); p.WaitForExit... Read More
What are the ways to deploy an assembly?
Added on Sun, Jan 3, 2010
An MSI installer, a CAB archive, and XCOPY command. Read More
Can you store multiple data types in System.Array?
Added on Sun, Jan 3, 2010
How can you overload a method?
Added on Sun, Jan 3, 2010
Different parameter data types, different number of parameters, different order of parameters. Read More
Can you allow class to be inherited, but prevent the method from being over-ridden?
Added on Sun, Jan 3, 2010
Yes, just leave the class public and make the method sealed Read More
# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
Added on Sun, Jan 3, 2010
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there is no implementation in it. Read More
What is the equivalent to regsvr32 and regsvr32 /u a file in .NET development
Added on Sun, Jan 3, 2010
Try using RegAsm. exe. The general syntax would be: RegAsm. A good description of RegAsm and its associated switches is located in the .NET SDK docs. Just search on "Assembly Registration Tool". Read More
How do destructors and garbage collection work in C#?
Added on Sun, Jan 3, 2010
C# has finalizers (similar to destructors except that the runtime doesn't guarantee they'll be called), and they are specified as follows: class C { ~C() { // your code } public static void Main() {} } Currently, they override... Read More
Why would you use untrusted verificaion?
Added on Sun, Jan 3, 2010
Web Services might use it, as well as non-Windows applications. Read More
Is there a way of specifying which block or loop to break out of when working with nested loops?
Added on Sun, Jan 3, 2010
The easiest way is to use goto: using System; class BreakExample { public static void Main(String[] args) { for(int i=0; i<3; i++) { Console.WriteLine("Pass {0}: ", i); for( int j=0 ; j<100 ; j++ ) { if ( j == 10) goto done; Console... Read More
How do I do implement a trace and assert
Added on Sun, Jan 3, 2010
Use a conditional attribute on the method, as shown below: class Debug { [conditional("TRACE")] public void Trace(string s) { Console.WriteLine(s); } } class MyClass { public static void Main() { Debug.Trace("hello"); } } In this... Read More
How do I create a multilanguage, single-file assembly
Added on Sun, Jan 3, 2010
This is currently not supported by Visual Studio .NET. Read More
What is the role of the DataReader class in ADO.NET connections
Added on Sun, Jan 3, 2010
It returns a read-only dataset from the data source when the command is executed. Read More
What is the advantage of using System.Text.StringBuilder over System.String
Added on Sun, Jan 3, 2010
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it is being operated on, a new instance is created. Read More
What are constructor in C#?
Added on Sun, Jan 3, 2010
Constructor is a member method of a class which is invorked when object is created to the class.A constructor name should be same of class name in c#.net.We have 2 types of constructors 1)Instence Constructor a)Static constrector 2) and non... Read More
What is the top .NET class that everything is derived from?
Added on Sun, Jan 3, 2010
System.Object. Read More
What is a multicast delegate?
Added on Sun, Jan 3, 2010
It is a delegate that points to and eventually fires off several methods. Read More
What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
Added on Sun, Jan 3, 2010
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it is a .NET layer on top of... Read More
What are three test cases you should go through in unit testing?
Added on Sun, Jan 3, 2010
Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly). Read More
What is the difference between a sub and a function in C#?
Added on Sun, Jan 3, 2010
A Sub does not return anything whereas a Function returns something. Read More
Can you declare the override method static while the original method is non-static?
Added on Sun, Jan 3, 2010
No, you cannot, the signature of the virtual method must remain the same, only the keyword virtual is changed to keyword override. Read More
What is the implicit name of the parameter that gets passed into the class set method?
Added on Sun, Jan 3, 2010
Value, and its datatype depends on whatever variable we are changing. Read More
How do I register my code for use by classic COM clients?
Added on Sun, Jan 3, 2010
Use the regasm. exe utility to generate a type library (if needed) and the necessary entries in the Windows Registry to make a class available to classic COM clients. Once a class is registered in the Windows Registry with regasm.exe, a COM client... Read More
Does Console.WriteLine() stop printing when it reaches a NULL character within a string?
Added on Sun, Jan 3, 2010
Strings are not null terminated in the runtime, so embedded nulls are allowed. Console.WriteLine() and all similar methods continue until the end of the string. Read More
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
Added on Sun, Jan 3, 2010
The syntax for calling another constructor is as follows: class B { B(int i) { } } class C : B { C() : base(5) // call base constructor B(5) { } C(int i) : this() // call C() { } public static void Main() {} } Read More
Why do I get a syntax error when trying to declare a variable called checked?
Added on Sun, Jan 3, 2010
The word checked is a keyword in C#. Read More
What is a pre-requisite for connection pooling?
Added on Sun, Jan 3, 2010
Multiple processes must agree that they will share the same connection, where every parameter is the same, Read More
What is the difference between directcast and ctype?
Added on Sun, Jan 3, 2010
DirectCast requires the run-time type of an object variable to bethe same as the specified type.The run-time performance ofDirectCast is better than that of CType, if the specified type and the run-time typeof the expression are the same. Ctype works... Read More
When should you call the garbage collector in .NET?
Added on Sun, Jan 3, 2010
As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory.... Read More
What does the parameter Initial Catalog define inside Connection String
Added on Sun, Jan 3, 2010
The database name to connect to. Read More
How is the DLL Hell problem solved in .NET?
Added on Sun, Jan 3, 2010
Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. Read More
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace
Added on Sun, Jan 3, 2010
There is no way to restrict to a namespace. Namespaces are never units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly. Read More
What is the wildcard character in SQL?
Added on Sun, Jan 3, 2010
Let us say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve La%. Read More
Explain the three services model (three-tier application).
Added on Sun, Jan 3, 2010
Presentation (UI), business (logic and underlying code) and data (from storage or other sources). Read More
Why do I get a "CS5001: does not have an entry point defined" error when compiling?
Added on Sun, Jan 3, 2010
The most common problem is that you used a lowercase 'm' when defining the Main method. The correct way to implement the entry point is as follows: class test { static void Main(string[] args) {} } Read More
How do you debug an ASP.NET Web application?
Added on Sun, Jan 3, 2010
Attach the aspnet_wp.exe process to the DbgClr debugger. Read More
What is the difference between the Debug class and Trace class?
Added on Sun, Jan 3, 2010
Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds. Read More
What does assert() do?
Added on Sun, Jan 3, 2010
In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true. Read More
What does the This window show in the debugger?
Added on Sun, Jan 3, 2010
It points to the object that is pointed to by this reference. Object?s instance data is shown. Read More
What debugging tools come with the .NET SDK?
Added on Sun, Jan 3, 2010
CorDBG - command-line debugger, and DbgCLR - graphic debugger. Visual Studio .NET uses the DbgCLR. To use CorDbg, you must compile the original C# file using the /debug switch. Read More
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
Added on Sun, Jan 3, 2010
You should declare the variable as an int, but when you pass it in you must specify it as ?out?, like the following: int i; foo(out i); where foo is declared as follows: [return-type] foo(out int o) { } Read More
How do you specify a custom attribute for the entire assembly (rather than for a class)?
Added on Sun, Jan 3, 2010
Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows: using System; [assembly : MyAttributeClass] class X {} Note that in an IDE-created project, by... Read More
How do you generate documentation from the C# file commented properly with a command-line compiler?
Added on Sun, Jan 3, 2010
Compile it with a /doc switch. Read More
How do you mark a method obsolete?
Added on Sun, Jan 3, 2010
[Obsolete] public int Foo() {...} or [Obsolete("This is a message describing why this method is obsolete")] public int Foo() {...} Note: The O in Obsolete is always capitalized. Read More
How to simulate optional parameters to COM calls
Added on Sun, Jan 3, 2010
You must use the Missing class and pass Missing.Value (in System.Reflection) for any values that have optional parameters. Read More
What do you know about .NET assemblies?
Added on Sun, Jan 3, 2010
Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications. Read More
What is the difference between private and shared assembly
Added on Sun, Jan 3, 2010
Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name. Read More
How can you tell the application to look for assemblies at the locations other than its own install?
Added on Sun, Jan 3, 2010
Use the directive in the XML .config file for a given application. < probing privatePath=c:mylibs; bindebug /> should do the trick. Or you can add additional search paths in the Properties box of the deployed application. Read More
How can you debug failed assembly binds?
Added on Sun, Jan 3, 2010
Use the Assembly Binding Log Viewer (fuslogvw. exe) to find out the paths searched. Read More
Can you change the value of a variable while debugging a C# application?
Added on Sun, Jan 3, 2010
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window Read More
Can you have two files with the same file name in GAC?
Added on Sun, Jan 3, 2010
Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it?s possible for MyApp. dll and MyApp.dll to co... Read More
What is delay signing?
Added on Sun, Jan 3, 2010
Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component... Read More
Is there an equivalent of exit() for quitting a C# .NET application
Added on Sun, Jan 3, 2010
Yes, you can use System.Environment.Exit(int exitCode) to exit the application or Application.Exit() if it's a Windows Forms app. Read More
What if a base class has a bunch of overloaded constructors?
Added on Sun, Jan 3, 2010
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor? Yes, just place a colon, and then... Read More
Is there regular expression (regex) support available to C# developers?
Added on Sun, Jan 3, 2010
Yes. The .NET class libraries provide support for regular expressions. Look at the documentation for the System.Text.RegularExpressions namespace. Read More
Is there a way to force garbage collection?
Added on Sun, Jan 3, 2010
Yes. Set all references to null and then call System.GC.Collect(). If you need to have some objects destructed, and System.GC.Collect() doesn't seem to be doing it for you, you can force finalizers to be run by setting all the references to the... Read More
What is the advantage of using System.Text.StringBuilder over System.String?
Added on Sun, Jan 3, 2010
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it is being operated on, a new instance is created. Read More
What is an abstract class?
Added on Sun, Jan 3, 2010
A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it is a blueprint for a class without any implementation. Read More
Describe the accessibility modifier protected internal.
Added on Sun, Jan 3, 2010
It is available to derived classes and classes within the same Assembly (and naturally from the base class it is declared in). Read More
Does C# support multiple inheritance?
Added on Sun, Jan 3, 2010
No, use interfaces instead. Read More
How do you inherit from a class in C#?
Added on Sun, Jan 3, 2010
Place a colon and then the name of the base class. Notice that it is double colon in C++. Read More
How can I get around scope problems in a try/catch?
Added on Sun, Jan 3, 2010
If you try to instantiate the class inside the try, it'll be out of scope when you try to access it from the catch block. A way to get around this is to do the following: Connection conn = null; try { conn = new Connection(); conn.Open();... Read More
Why do I get a security exception when I try to run my C# app
Added on Sun, Jan 3, 2010
Some security exceptions are thrown if you are working on a network share. There are some parts of the frameworks that will not run if being run off a share (roaming profile, mapped drives, etc.). To see if this is what's happening, just move... Read More
Is there any sample C# code for simple threading?
Added on Sun, Jan 3, 2010
Some sample code follows: using System; using System.Threading; class ThreadTest { public void runme() { Console.WriteLine("Runme Called"); } public static void Main(String[] args) { ThreadTest b = new ThreadTest(); Thread t = new Thread... Read More
Does C# support #define for defining global constants?
Added on Sun, Jan 3, 2010
No. If you want to get something that works like the following C code: #define A 1 use the following C# code: class MyConstants { public const int A = 1; } Then you use MyConstants.A where you would otherwise use the A macro. Using MyConstants... Read More
How can I access the registry from C# code?
Added on Sun, Jan 3, 2010
By using the Registry and RegistryKey classes in Microsoft.Win32, you can easily access the registry. The following is a sample that reads a key and displays its value: using System;using Microsoft.Win32; class regTest { public static void Main... Read More
What optimizations does the C# compiler perform when you use the /optimize+ compiler option?
Added on Sun, Jan 3, 2010
The following is a response from a developer on the C# compiler team: We get rid of unused locals (i.e., locals that are never read, even if assigned). We get rid of unreachable code. We get rid of try-catch w/ an empty try. We get rid of try... Read More
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
Added on Sun, Jan 3, 2010
There is no way to restrict to a namespace. Namespaces are never units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly. Read More
Is it possible to inline assembly or IL in C# code?
Added on Sun, Jan 3, 2010
How can I get the ASCII code for a character in C#?
Added on Sun, Jan 3, 2010
Casting the char to an int will give you the ASCII value: char c = 'f'; System.Console.WriteLine((int)c); or for a character in a string: System.Console.WriteLine((int)s[3]); The base class libraries also offer ways to do this with the... Read More
What is the difference between a struct and a class in C#?
Added on Sun, Jan 3, 2010
From language spec: The list of similarities between classes and structs is as follows. Longstructs can implement interfaces and can have the same kinds of members as classes. Structs differ from classes in several important ways; however, structs... Read More
Can I define a type that is an alias of another type (like typedef in C++)?
Added on Sun, Jan 3, 2010
Not exactly. You can create an alias within a single file with the "using" directive: using System; using Integer = System.Int32; // alias But you can't create a true alias, one that extends beyond the file in which it is declared. Refer to the... Read More
How does one compare strings in C#?
Added on Sun, Jan 3, 2010
In the past, you had to call .ToString() on the strings when using the == or != operators to compare the strings' values. That will still work, but the C# compiler now automatically compares the values instead of the references when the == or !=... Read More
How do I convert a string to an int in C#?
Added on Sun, Jan 3, 2010
Here's an example: using System; class StringToInt { public static void Main() { String s = "105"; int x = Convert.ToInt32(s); Console.WriteLine(x); } } Read More
How do I get deterministic finalization in C#?
Added on Sun, Jan 3, 2010
In a garbage collected environment, it's impossible to get true determinism. However, a design pattern that we recommend is implementing IDisposable on any class that contains a critical resource. Whenever this class is consumed, it may be... Read More
How do I port "synchronized" functions from Visual J++ to C#?
Added on Sun, Jan 3, 2010
Original Visual J++ code: public synchronized void Run() { // function body } Ported C# code: class C { public void Run() { lock(this) { // function body } } public static void Main() {} } Read More
Does C# support templates?
Added on Sun, Jan 3, 2010
No. However, there are plans for C# to support a type of template known as a generic. These generic types have similar syntax but are instantiated at run time as opposed to compile time. You can read more about them here. Read More
How do you directly call a native function exported from a DLL?
Added on Sun, Jan 3, 2010
Here's a quick example of the DllImport attribute in action: using System.Runtime.InteropServices; class C { [DllImport("user32.dll")] public static extern int MessageBoxA(int h, string m, string c, int type); public static int Main() { ... Read More
Does C# support C type macros?
Added on Sun, Jan 3, 2010
No. C# does not have macros. Keep in mind that what some of the predefined C macros (for example, __LINE__ and __FILE__) give you can also be found in .NET classes like System.Diagnostics (for example, StackTrace and StackFrame), but they'll... Read More
Why does my Windows application pop up a console window every time I run it?
Added on Sun, Jan 3, 2010
Make sure that the target type set in the project properties setting is set to Windows Application, and not Console Application. If you're using the command line, compile with /target:winexe & not target: exe. Read More
Is there an equivalent to the instanceof operator in Visual J++?
Added on Sun, Jan 3, 2010
C# has the is operator: expr is type Read More
My switch statement works differently! Why?
Added on Sun, Jan 3, 2010
C# does not support an explicit fall through for case blocks. The following code is not legal and will not compile in C#: switch(x) { case 0: // do something case 1: // do something in common with 0 default: // do something in common with /... Read More
Explain about C#?
Added on Sun, Jan 3, 2010
C # is also known as c sharp. It is a programming language introduced by Microsoft. C# contains features similar to Java and C++. It is specially designed to work with Microsoft .NET platform. Read More
What are the rules to be followed while naming variables in C#?
Added on Sun, Jan 3, 2010
The following rules are used for naming variables in C#. * Must begin with a letter or an underscore _ which may be followed by a sequence of letters, digits (0-9), or ?_?. The first character in a variable name cannot be a digit. * Must not... Read More
Explain about member functions?
Added on Sun, Jan 3, 2010
A function is a set of statements that perform a specific task in response to a message. The functions of a class are called member functions in Csharp. Member functions are declared inside the class. The function declaration introduces the... Read More
Explain about comment entry?
Added on Sun, Jan 3, 2010
Comments are a part of the program and are used to explain the code. Compilers ignore comment entries. If a comment entry spans more than one line, it has to be enclosed within ?/*? and ?*/?. The symbol ?//? treats the rest of code within the same... Read More
What are operators?
Added on Sun, Jan 3, 2010
Applications use operators to process the data entered by a user. Operators like + and ? are used to process variables and return a value. An operator is a set of one or more characters that is used for computations or comparisons. Operators can... Read More
Explain about the break statement?
Added on Sun, Jan 3, 2010
A break statement is used to exit the switch statement. This prevents the execution of the remaining case structures by ending the execution of the switch case construct. Each break statement terminates the enclosing switch statement and the flow... Read More
Define encapsulation?
Added on Sun, Jan 3, 2010
Encapsulation literally means to enclose in or as if in a capsule. Encapsulation is defined as the process of enclosing one or more items within a physical or logical package. It involves preventing access to nonessential details. Read More
Define access specifier with reference to class?
Added on Sun, Jan 3, 2010
An access specifier defines the scope of a class member. A class member refers to the variables and functions in a class. A program can have one or more classes. You may want some members of a class to be accessible to other classes. But, you may not... Read More
Describe about private access specifier?
Added on Sun, Jan 3, 2010
The private access specifier allows a class to hide its member variables and member functions from other class objects and functions. Therefore, the private member of a class is not visible outside a class. If a member is declared private, only the... Read More
Define parameter by value?
Added on Sun, Jan 3, 2010
Pass by value is the default mechanism for passing parameters to a method. The simplest definition of a value parameter is a data type name followed by a variable name. When a method is called, a new storage location is created for each value... Read More
Explain about reference parameter?
Added on Sun, Jan 3, 2010
A reference parameter is a reference to a memory location of a data member. Unlike a value parameter, a reference parameter does not create a new storage location. Instead a reference parameter represents the same location in memory as the variable... Read More
How do you use a structure
Added on Sun, Jan 3, 2010
A structure is a value type data type. When you want a single variable to hold related data of various data types, you can create a structure. To create a structure you use the struct keyword. Read More
What is an enumerator?
Added on Sun, Jan 3, 2010
Enumeration is a value data type, which means that enumeration contains its own values and cannot inherit or pass inheritance. Enumerator allows you to assign symbolic names or integral constants. Read More
When do you absolutely have to declare a class as abstract
Added on Sun, Jan 3, 2010
When at least one of the methods in the class is abstract. When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden. Read More
Is it possible to have different access modifiers on the get/set methods of a property in C#?
Added on Sun, Jan 3, 2010
No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is... Read More
Why would you use untrusted verification?
Added on Sun, Jan 3, 2010
Web Services might use it, as well as non-Windows applications. Read More
State the methods through which parameters can be passed?
Added on Sun, Jan 3, 2010
Parameters can be passed by using any one of the following mechanism. Value: -They are sometimes called in or out parameters; therefore, the data can be transferred into the method but cannot be transferred out. Reference: -Are sometimes called in... Read More
C# constructors cannot be inherited.Why?
Added on Sun, Jan 3, 2010
If constructor inheritance were allowed, then necessary initialization in a base class constructor might easily be omitted. This could cause serious problems which would be difficult to track down. For example, if a new version of a base class... Read More
Why cannot you specify the accessibility modifier for methods inside the interface
Added on Sun, Jan 3, 2010
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default. Read More
Is there built-in support for tracing/logging?
Added on Sat, Jan 2, 2010
Basically there are two ways by which you can enable tracing. i. page label ii.application label. For page label tracing in the page directive write the following <@page trace="True"> and if you want show some message then either... Read More
How can I produce an assembly?
Added on Sat, Jan 2, 2010
Goto command prompt Ist you have to set the path and type csc /t:library filename then you will be created assembly which will stored in the application directory. for ex. i have file with hello.cs i used to csc /t:library hello.cs then... Read More
What is the difference between // comments, /* */ comments and /// comments?
Added on Sun, Jan 3, 2010
Single-line, multi-line and XML documentation comments. Read More
How do I create a multilanguage, multifile assembly
Added on Sun, Jan 3, 2010
Unfortunately, this is currently not supported in the IDE. To do this from the command line, you must compile your projects into netmodules (/target:module on the C# compiler), and then use the command line tool al. exe (alink) to link these... Read More
What does Dispose method do with the connection object?
Added on Sun, Jan 3, 2010
Deletes it from the memory. Read More
What is a strong name in C#?
Added on Sun, Jan 3, 2010
A strong name includes the name of the assembly, version number, culture identity, and a public key token. Read More
Why do I get an error (CS1006) when trying to declare a method without specifying a return type?
Added on Sun, Jan 3, 2010
If you leave off the return type on a method declaration, the compiler thinks you are trying to declare a constructor. So if you are trying to declare a method that returns nothing, use void. The following is an example: // This results in a CS1006... Read More





   copy right ® all rights reserved by www.fullinterview.com