Tuesday, June 29, 2010

.net Interview Questions

Use the link to test http://www.w3schools.com/js/tryit.asp?filename=tryjs_text
The Exam Questions
1: What is the output of following code in Javascript?
var a=2+5+"6";

1)a=256
2)a=76
3)a=13
4)a=211

ans) a=76

2: Consider the following Javascript code.

var scripts=new Array();
scripts[1] = " ASP";
scripts[2] = " PHP";
scripts[3] = " JavaScript";
scripts[4] = " HTML";
var a=scripts.length;
scripts[1000]="ASPX";
var b=scripts.length;
var c=scripts[0];

What will variables (a,b,c) be?

a)(4,5,null)
b)(5,1001,undefined)
c)(5,1001,undeclared)
d)(4,5,undefined)
e)(5,6,undefined)
f)(5,1001,null)
g)(4,1001,undefined)
h)(5,1001,object)

ans: b)(5,1001,undefined)


3)According to Javascript 1.5 version, which looping structure is NOT provided?

a)for
b)while
c)foreach
d)do-while

ans: c)foreach

Q. What is the CLR?
A. Common Language Runtime

Q. What is the role of the Data Reader class in ADO.NET connections?
A. It returns a forward-only, read-only view of data from the data source when the command is executed.

Q. In a Try - Catch - Finally block, will the finally block execute if an exception has not occurred? If an
Exception has occurred?
A. Yes and yes.

Q. Does C# support multiple-inheritance?
A. No, use interfaces instead.

Q. Can you prevent your class from being inherited by another class?
A. Yes. The keyword “sealed” will prevent the class from being inherited.
free counters

அவன் :

அவ்வளவு அழகு நான்
பார்த்தது இல்லை ..
அவன் என்னை பார்த்து
சிரித்த தருணம் இன்னும்
கண்ணில் தோன்றி மறைகிறது .

அவன் என்னை கடந்த பின்
கையசைத்து ஒரு சைகை
செய்தான் - அது என்னவென்று
இன்னும் விளங்கவில்லை..!!

அவன் என்னை பார்த்து
அப்படி செய்ததும்.,
என்னை சுற்றி உள்ள
அனைவரின் கண்களும்
என்மேல் தான்...!

நானும் பதிலுக்கு கை அசைத்து
ஒரு புன்னகை சிந்தினேன்.,
ஒரு பறக்கும் முத்தமும்
கொடுத்தான்..,

என்னால் திருப்பி கொடுக்க
முடியவில்லை... - அந்த
ரெண்டு வயது பாலகனுக்கு..!!