Exam UiADPv1 All QuestionsBrowse all questions from this exam
Question 32

The following table is stored in a variable called "dt".

What will the value of the qty variable be after executing the Assign activity?

    Correct Answer: B

    To determine the value of the qty variable, the SkipWhile method in this context is used. The method will skip elements in the sequence until the specified condition is no longer true. It starts evaluating from the beginning of the dataset and will continue to skip elements while the item is equal to 'mango'. When it finds 'mango', it stops skipping and moves to the next element. The first element after 'mango' has the Quantity of 10. So, the value of the qty variable will be 10.

Discussion
[Removed]Option: B

Answer is B, tested in Studio

Ui_Bot001Option: B

Answer is B, tested it in studio. dt.AsEnumerable. SkipWhile(Function(x) x("Item").ToString.Equals("mango"))(0)("Quantity").ToString

ASMA__Option: B

correct answer is 10 tested on studio

ASMA__Option: A

correct answer is 10 tested on studio

milindkumarOption: B

correct answer is 10 tested on studio

EricHsuOption: A

The answer should be A. because the skipwhile function will keep all the rest value "if not" equal the sentence.

EricHsu

The answer should be 10, it's B

tenso

skipwhile will only skip Items all the way to mango, but quantity index is still at 0 thus answer is 10. even if item = pear, the answer will still be 10