.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

Which operators in C# provides automatic detection of arithmetic overflow and underflow conditions?

Posted By :Abhisek Panda     Posted Date :December 28, 2009    Points :10   Category :C# 
'checked' and 'unchecked' keywords provide automatic detection of arithmetic overflow and underflow conditions.

You can also find related Interview Question to Which operators in C# provides automatic detection of arithmetic overflow and underflow conditions?  below: 

What are the conditions that have to be met for a condition to be an invariant of the class?

  
1.The condition should hold at the end of every constructor.
2.The condition should hold at the end of every mutator (non-const) operation. (More...)

List the Coffman's conditions that lead to a deadlock.

  
1. Mutual Exclusion: Only one process may use a critical resource at a time.

2. Hold & Wait: A process may be allocated some resources while waiting for others.

3. No Pre-emption: No resource can be forcible removed from a process holding it.

4. Circular Wait: A closed chain of processes exist such that each process holds at least one resource needed by another process in the chain. (More...)

What is Automatic Memory Management in ASP.NET?

  
Automatic Memory Management: From a programmer's perspective, this is probably the single biggest benefit of the .NET Framework. No, I'm not kidding. Every project I've worked on in my long career of DOS and Windows development has suffered at some point from memory management issues. Proper memory management is hard. Even very good programmers have difficulty with it. It's entirely too easy for a small mistake to cause a program to chew up memory and crash, sometimes bringing the operating system to a screeching halt in the process.

Programmers understand that they're responsible for releasing any memory that they allocate, but they're not very good at actually doing it. In addition, functions that allocate memory as a side effect abound in the Windows API and in the C runtime library. It's nearly impossible for a programmer to know all of the rules. Even when the programmer follows the rules, a small memory leak in a support library can cause big problems if called enough.

The .NET Framework solves the memory management problems by implementing a garbage collector that can keep track of allocated memory references and release the memory when it is no longer referenced. A large part of what makes this possible is the blazing speed of today's processors. When you're running a 2 GHz machine, it's easy to spare a few cycles for memory management. Not that the garbage collector takes a huge number of cycles--it's incredibly efficient.
The garbage collector isn't perfect and it doesn't solve the problem of mis-managing other scarce resources (file handles, for example), but it relieves programmers from having to worry about a huge source of bugs that trips almost everybody up in other programming environments.
On balance, automatic memory management is a huge win in almost every situation. (More...)

In ASP.NET page framework an automatic way to associate page events and methods is

  
AutoEventWireup attribute of the Page directive is set to true (More...)

Does ADO.NET supports automatic connection pooling?

  
Yes.

There is a pooling property with connection string. By default it is set to true.
Use this property to specify that a particular connection should not participate in the pool, but instead should be destroyed when it is closed. (More...)

Carrier Sense Multiple Access/ Collision Detection (CSMA/CD) ?

  
1. Permits one device to access to the network media at a time to avoid collision.

2. Networks using CSMA/CD technology such as Ethernet, network devices compete for the network media . (More...)

Which of the following requirements define the constraints on the system and the conditions under which the system must be developed?

  
1, Non-functional requirements
2, Functional requirements
3, Data requirements m
4, User requirements

Answer : 1 (More...)

What are the special operators in C#

  
C# supports the following special operators.

is (relational operator)
as (relational operator)
typeof (type operator)
sizeof (size operator)
new (object creator)
.dot (member access operator)
checked (overflow checking)
unchecked (prevention of overflow checking) (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend