Lists querry

Hi guys,
I tried both of this questions on studio.
Kindly confirm to me that these are the correct answers. I am very new in RPA

  1. A
    2.D


    @Yoichi @Anil_G @pravallikapaluri @raja.arslankhan

Hi @J_Crosby

You have the correct answers

  • First question the list is not initialized so the invoke will thrown an error because it is null
  • Second question the list is initialized incorrectly, so it will thrown an error as well

Regards

2 Likes

Thanks for consideration:

  1. A
  2. D
    correct way of initialization of list is:

New List(Of String)(new String() {“Str1”,“Str2”})

1 Like

Hi @J_Crosby

  1. A
    Explanation: The list is not initialized. The Invoke code activity will throw an error as the parameter is null.
  2. D
    Explanation: The List has been initialized incorrectly. So, it will throw an error. Correct way of initializing an List is
    New List(of String) from {"str1","str2"}

Hope it helps!!
Regards,

Hi @J_Crosby

Yes Your answers are correct
1.A
2.D

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.