Tag: programming languages

Questions Related to programming languages

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.

  1. True

  2. False


Correct Option: A
  1. Page load

  2. Page_Init

  3. Control events

  4. Page- prerender


Correct Option: A
  1. Parent control send events to child

  2. child control send events to parent

  3. only in child control

  4. only in Parent control


Correct Option: B
  1. 'ViewStateMac' property to false

  2. 'EnableViewStateMac' property to false

  3. 'EnableViewStateMac' property to True

  4. 'ViewStateMac' property to true


Correct Option: C
  1. In session

  2. In HTML Hidden Fields.

  3. In application session

  4. All the above


Correct Option: B
  1. execute ASP.NET application level events and setting application-level variables

  2. setting application-level variables.

  3. execute ASP.NET application level events.

  4. All the above


Correct Option: A
  1. @Register directive.

  2. @Page directive.

  3. @control directive.

  4. All the above


Correct Option: B