Revision help please

Help help!
1.While performing a code review, it was discovered that a developer failed to use best practices and wrote the following expression in the Condition Field of an If actvity:
Convert.ToBoolean(ExampleInteger) = False
What is the result of the expression referenced above if “ExampleInteger” = 0 and how should the expression in the Condition Field be written based on best practices?

  • A. Expression Result: True -
    Condition: Convert.ToBoolean(ExampleInteger)
  • B. Expression Result: True -
    Condition: Convert.ToBoolean(ExampleInteger) = True
  • C. Expression Result: False -
    Condition: Convert.ToBoolean(ExampleInteger)
  • D. Expression Result: False -
    Condition: Convert.ToBoolean(ExampleInteger) = True

2.A developer indicated a UI element for a Type Into activity. The automatically-generated selector is shown below.
Based on best practices, which selector attribute is unreliable because the order of the elements in the application may change over time?
A. idx
B. app
C. tag
D. title

3.A developer created a robot to do the following:

  1. Launch Internet Explorer
  2. Scrape the data
  3. Store the data in Microsoft Excel
  4. Close Internet Explorer
    If there is an exception in Step 2 or Step 3, the process should still perform Step 4. Which block of the Try Catch activity allows Step 4 to execute whether or not there is an exception in Step 2 or Step 3?
    A. Application Exception Catch Block
    B. Business Exception Catch Block
    C. Finally Block
    D. Try Block

5.A developer wants a process to display a Message Box every 30 seconds to remind a Call Center representative when a customer is on “hold”. Which activity can be used?

A. Do While
B. Delay
C. Comment
D. Break

6.What is the maximum scope a variable can have in an automation project?
A. Outermost container in the current xaml project file
B. Within the activity in which it is defined
C. Within the surrounding “Do” or “Body” sequence
D. Entire automation project which includes all project files

@Latifa

C
A
C
A
A

Cheers

I agree with Anil,

C
A
C
A
A

@Latifa
1)C
2) A
3) C
4) B
5) D

Hi @Latifa
C
A
C
B
B

Thanks!!

What is the maximum scope a variable can have in an automation project?
A. Outermost container in the current xaml project file
B. Within the activity in which it is defined
C. Within the surrounding “Do” or “Body” sequence
D. Entire automation project which includes all project files

@Anil_G and @prateek.mehandiratta9,why do you opt for “A” instead of “D” on the above question?

@Latifa

If you open any xaml and click on the scope the maximum you can see is the number outer most container only and not the whole project… say axaml has a outer sequence then that is the maximum…between xamls we use arguments …and any variable declared can go only till that xaml max

Cheers

1 Like

A developer wants a process to display a Message Box every 30 seconds to remind a Call Center representative when a customer is on “hold”. Which activity can be used?

A. Do While
B. Delay
C. Comment
D. Break

@Nitya1 and @raja.arslankhan why opt for “Delay” and not "Do while’?

Hi @Latifa

The “Delay” activity allows you to introduce a pause in the workflow for a specified amount of time. In this case, the developer can set the delay to 30 seconds, and then place the Message Box activity after the delay. This will ensure that the Message Box is displayed every 30 seconds to remind the Call Center representative when a customer is on hold.

Thanks!!

1 Like

@Latifa
Its simple, Loop can iterate only. suppose its running infinite time.
Message box is inside and its running continuously. Only the delay is the technique which will put loop on hold till 30 second.
in loop condition we can’t put delay.
Do while is open option(open option means you will use it but its role is different and can each from other activities like while loop)

1 Like

@raja.arslankhan

With out loop we cannot make it come every 30 seconds …but without delay through some activity also we can get a delay of 30 sec

Cheers

1 Like

@Anil_G Right
In given options delay is present then how we can specify others delays

1 Like

@raja.arslankhan

Checking if the call is present or not…or is it on going or not…check time difference

Cheers

1 Like

Variable maximum scope can be increased to entire xaml which its used in.

However, if we have a gloabal variable that has scope for the enitre project. and we are not referrring to global variables here, thats why.

Thanks.

1 Like

Its every 30 seconds so a loop is required.

A for me.

Thanks.

1 Like

@Yoichi @zell12 @pravallikapaluri your opinion would be appreciated on the below:

5.A developer wants a process to display a Message Box every 30 seconds to remind a Call Center representative when a customer is on “hold”. Which activity can be used?
A. Do While
B. Delay
C. Comment
D. Break

@Latifa
B. Delay.

Explanation:

The Delay activity in UiPath is used to introduce a delay or wait for a specific amount of time in a workflow. It pauses the execution of the workflow for a specified duration before proceeding to the next activity.

Hope it helps!!

Hi,

I think it’s probably “A” as the following.

Regards,

1 Like