exam questions

Exam Certified Marketing Cloud Developer All Questions

View all questions & answers for the Certified Marketing Cloud Developer exam

Exam Certified Marketing Cloud Developer topic 1 question 1 discussion

Actual exam question from Salesforce's Certified Marketing Cloud Developer
Question #: 1
Topic #: 1
[All Certified Marketing Cloud Developer Questions]

A developer wants to create an HTML table where rows will alternate background colors between white and red. The developer does not know how many rows will be sent within each email, and decides to use a loop and assigns the RowCount() of the table rows to the variable @numerator.
What AMPscript logic should be used to determine the background color of each table row within the loop?

  • A. %%[ IF MOD(@numerator,2) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%%
  • B. %%[ IF SUBSTRING(DIVIDE(@numerator,2),l) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%%
  • C. %%[ IF @numerator/2 = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%%
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago