UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 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?

Show Answer
Correct Answer: B,C

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

6 comments
Sign in to comment
[Removed]Option: B
Dec 22, 2023

Answer is B, tested in Studio

ASMA__Option: A
Dec 28, 2023

correct answer is 10 tested on studio

ASMA__Option: B
Dec 28, 2023

correct answer is 10 tested on studio

Ui_Bot001Option: B
Jul 4, 2024

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

EricHsuOption: A
Dec 13, 2023

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

EricHsu
Dec 13, 2023

The answer should be 10, it's B

tenso
May 20, 2024

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

milindkumarOption: B
Feb 29, 2024

correct answer is 10 tested on studio