When break is used inside two nested for loops, control comes out of which loop, the inner or the outer for loop? (I.e. does it break from all the present loops?)
It breaks from the inner loop only.
What is Marshaling?
Marshaling is the process of transforming types in the managed and unmanaged code.
Which properties are used to bind a DataGridView control?
The DataSource property and the DataMember property are used to bind a DataGridView control.
What is the difference between dataset.clone and dataset.copy?
Dataset.clone copies only the structure of the DataSet which includes all DataTable schemas, relations, and constraints but it does not copy any data. Dataset.copy is a deep copy of the DataSet that duplicates both its structure and data.
Which are the new features added in .NET framework 4.0?
A list of new features of .NET Framework 4.0:
- Improved Application Compatibility and Deployment Support
- Dynamic Language Runtime
- Managed Extensibility Framework
- Parallel Programming framework
- Improved Security Model
- Networking Improvements
- Improved Core ASP.NET Services
- Improvements in WPF 4
- Improved Entity Framework (EF)
- Integration between WCF and WF
What are the different types of cookies in ASP.NET?
- Session Cookie: It resides on the client machine for a single session until the user logs out.
- Persistent Cookie: Resides on the user machine for a period specified for its expiry. It may be an hour, a month or never.
What is the difference between Function and Stored procedure?
Stored Procedure:
- A Stored Procedure is always used to perform a specific task.
- It can return zero, one or more value.
- It can have both input and output parameters.
- Exception handling can be done using a try-catch block.
- A function can be called from a Procedure.
Functions: - Functions must return a single value.
- It can only have the input parameter.
- Exception handling cannot be done using a try-catch block.
- A Stored procedure cannot be called from a function.
What is delegate in .NET?
A delegate in .NET is similar to a function pointer in other programming languages like C or C++. A delegate allows the user to encapsulate the reference of a method in a delegate object. A delegate object can then be passed in a program, which will call the referenced method. We can even use a delegate method to create a custom event in a class.
What is caching in .NET?
Caching functionality in .NET Framework allows data storage in memory for rapid access. It helps improve performance by making data available, even if the data source is temporarily unavailable and enhances scalability.
What are the events and delegates?
Events notify other classes and objects when the desired action occurs in a class or object. A delegate is a type-safe function pointer that defines a method signature in CLI.