Multiple choice technology enterprise content management

var txtObj1 = new WebObject(WebObject.PAGE); txtObj1.name = "Text1" txtObj1.url = "Text1" var txtObj2 = new WebObject(); txtObj2.name = "Text1" txtObj2.url = "Text1" write(txtObj1.state == WebObject.ACTIVE); write(",") write(txtObj2.state == WebObject.ACTIVE); What are the values

  1. true, true

  2. true. false

  3. false, true

  4. true, undefined

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This question relies on a proprietary API (likely Livelink/OpenText WCM). In this API, instantiating a WebObject with a type parameter activates it, whereas the default constructor leaves it inactive, resulting in true, false.