nerdexam
MuleSoft

MCD-LEVEL-1 · Question #73

MCD-LEVEL-1 Question #73: Real Exam Question with Answer & Explanation

Sign in or unlock MCD-LEVEL-1 to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.

Question

A function named newProdCode needs to be defined that accepts two input parameters, an integer value for itemID and a string value for productCategory, and returns a new product code. What is the correct DataWeave code to define the newProdCode function?

Options

  • Afun newProdCode{itemID: Number, productCategory: String) --> "PC-" ++ productCategory ++
  • Bfun newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++
  • Cfunction newProdCode(itemID: Number, productCategory: String) =
  • Dvar newProdCode(itemID: Number, productCategory: String) ->

Unlock MCD-LEVEL-1 to see the answer

You've previewed enough free MCD-LEVEL-1 questions. Unlock MCD-LEVEL-1 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.

Full MCD-LEVEL-1 Practice