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.