1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
True
False
In which event are the controls fully loaded?
Page load
Page_Init
Control events
Page- prerender
What is event bubbling?
Parent control send events to child
child control send events to parent
only in child control
only in Parent control
How do we ensure view state is not tampered?
'ViewStateMac' property to false
'EnableViewStateMac' property to false
'EnableViewStateMac' property to True
'ViewStateMac' property to true
Where is View State information stored?
In session
In HTML Hidden Fields.
In application session
All the above
What is the use of "GLOBAL.ASAX" file?
execute ASP.NET application level events and setting application-level variables
setting application-level variables.
execute ASP.NET application level events.
How do we assign page specific attributes?
@Register directive.
@Page directive.
@control directive.
What is the value of variable z when the following program segment ends? int z; for(z=0; z<50; z++) {}
51
49
0
50
Which of the following operators cannot be overloaded?
sizeof
::
:?
All the Above