Which options will produce a list of the IDs?

You have declared a variable called var.list which is a list of objects that all have an attribute id .

Which options will produce a list of the IDs? Choose two correct answers.
A . [ var.list [ * ] , id ]
B . [ for o in var.list : o.Id ]
C . var.list[*].id
D . { for o in var.llst : o => o.id }

Answer: BC

Explanation:

These are two ways to produce a list of the IDs from a list of objects that have an attribute id, using either a for expression or a splat expression syntax.

Latest TA-003-P Dumps Valid Version with 138 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments