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.

2 comments:

  1. அதிகமா கேள்வி
    கேட்கறாங்கன்னு தான்
    நான் School-க்கே ஒழுங்கா
    போனது இல்ல..

    நீங்க இப்படியெல்லாம்
    கேள்வி கேட்டா..,
    உங்க Blog பக்கம்
    எப்படிங்க வர்றது..???

    ReplyDelete
  2. ப‌டிக்கிற‌ பசங்க‌ளுக்கு ம‌ட்டும் தான் பாஸ் இந்த‌ பதிவு ..
    ந‌ம‌க்கு இல்ல‌...:) :)

    ReplyDelete