PrepAway - Latest Free Exam Questions & Answers

Which steps should you use to set the values on an object?

You are given a list of attribute names and the value(s) associated with them. Which steps should
you use to set the values on an object?

PrepAway - Latest Free Exam Questions & Answers

A.
Always usesysObject.setString(attrName, attrValue)

B.
1. Determine if an attribute is repeating or not
2. If repeating, call sysObject.setRepeatingString(attrName, index, attrValue)
3. If not repeating, call sysObject.setString(attrName, attrValue) )

C.
1. Determine if an attribute is repeating or not
2. Determine the attribute type (such as int, boolean etc)
3. Based on the type and if it is repeating or not, call sysObject.setRepeatingXXX(attrName,index,
attrValue)
4. If not repeating, call sysObject.setXXX(attrName, attrValue) where XXX represents the typesafe method (e.g setInt(), setRepeatingTime() etc.) based on the type

D.
1. Determine if an attribute is repeating or not
2. Determine the attribute type (such as int, boolean etc)
3. Based on the type construct the appropriate IDfValue object
4. If repeating, call sysObject.setRepeatingValue(attrName, index, attrValue)
5. If not repeating, call sysObject.setValue(attrName, attrValue)


Leave a Reply