Big 11.11 Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

MuleSoft Certified Developer - Level 1 (Mule 4) DELTA MCD-Level1-Delta Question # 15 Topic 2 Discussion

MuleSoft Certified Developer - Level 1 (Mule 4) DELTA MCD-Level1-Delta Question # 15 Topic 2 Discussion

MCD-Level1-Delta Exam Topic 2 Question 15 Discussion:
Question #: 15
Topic #: 2

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?


A.

fun newProdCode{itemID: Number, productCategory: String) —> "PC-" ++ productCategory ++ (itemID as String)


B.

fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++ (itemID as String)


C.

function newProdCode(itemID: Number, productCategory: String) =

"PC-" ++ productCategory ++ (itemID as String)


D.

var newProdCode(itemID: Number, productCategory: String) ->

"PC-" ++ productCategory ++ (itemID as String)


Get Premium MCD-Level1-Delta Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.