IBM
C2170-010 · Question #8
C2170-010 Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock C2170-010 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
Review the following diagram:
[Image of StructA and StructB definitions]
After a build generated, which of the following assign methods is generated on StructA?
Options
- Apublic StructA assign(StructB structB){ structA.attribute1 = structB.attribute1; structA.attribute2 = structB.attribute2; structA.attribute3 = structB.attribute3; structA.attribute4 = structB.attribute4; }
- Bpublic StructA assign(StructB structB){ structA.attribute4 = structB.attribute5; }
- Cpublic StructA assign(StructB structB){
- Dpublic StructA assign(StructB structB){ structA.attribute1 = structB.attribute1; structA.attribute2 = structB.attribute2; structA.attribute3 = structB.attribute3; structA.attribute4 = structB.attribute4; structA.attribute5 = structB.attribute5; }
Unlock C2170-010 to see the answer
You've previewed enough free C2170-010 questions. Unlock C2170-010 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.