I’m sure you all know that according to the rules of elementary arithmetic division by zero is not allowed*. Also, I’m pretty sure you are familiar with the “Attempted to divide by zero” exception and some of you even write a specific catch in try…catch blocks to catch the DivideByZeroException to be able to handle it according to your application needs.
Read more…
VN:F [1.9.3_1094]
Rating: 5.0/5 (3 votes cast)
I have two simple questions for you about boolean values in Javascript.
When will browser show alert message:
if (a-b) alert("it's true!");
And another one
Read more…
VN:F [1.9.3_1094]
Rating: 5.0/5 (5 votes cast)
Another great interview question.
Will the following code compile and if yes what will be the result of it ?
Read more…
VN:F [1.9.3_1094]
Rating: 4.8/5 (9 votes cast)
This one is a great c# interview question – short and simple, but tricky.
Read more…
VN:F [1.9.3_1094]
Rating: 4.4/5 (5 votes cast)
This is a very simple question with a not so simple answer…
Forget for a second about .NET.
If someone asks you how much is 1.000025 – 0.000025 your answer will probably be “1″ and correct. An easy question, right ?
Now, let’s go back to .NET and check if our calculations are correct.
Read more…
VN:F [1.9.3_1094]
Rating: 4.3/5 (6 votes cast)
Well, this is a nice one. We all familiar with incremental operators, but from what i saw yesterday… well, there is no need to give a developer some tricky assignment so he could find a way to make some bugs.
3bj4h786fc
Read more…
VN:F [1.9.3_1094]
Rating: 5.0/5 (6 votes cast)
Once in a while we need to return data from SQL as delimited string of values and not as rows. There are several ways to do that, but personally i like the next one.
Read more…
VN:F [1.9.3_1094]
Rating: 4.6/5 (7 votes cast)
As we know we have two ways to set a variable value to an empty string.
We can just set it to empty quotes “” or set it to string.Empty, but what is the difference and is there one at all ?
Read more…
VN:F [1.9.3_1094]
Rating: 4.2/5 (9 votes cast)
I’ve noticed that most of the c# developers i’am talking to, know exactly what “public”, “private”, “protected” and “internal” access modifiers mean and how to use them, but when it comes to “protected internal” they start guessing the answer and it’s never the right one.
Read more…
VN:F [1.9.3_1094]
Rating: 4.8/5 (13 votes cast)
The following are two simple questions related to C# inheritance.
Please try to give an answer without executing the code, otherwise where is the fun part ?
Read more…
VN:F [1.9.3_1094]
Rating: 5.0/5 (4 votes cast)
Recent Comments