Unit 5: Extending Automation 360 Capabilities with External Scripts - Practice Quiz

INT346 — Robotic Process Automation 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary purpose of using External Scripts in Automation 360?

A. To increase the license cost of the RPA solution
B. To replace the Control Room database
C. To extend the capabilities of bots beyond native actions
D. To automatically generate documentation

2 Which of the following scripting languages is NOT natively supported by a specific 'Script' package in Automation 360?

A. Python
B. Swift
C. VBScript
D. JavaScript

3 When using the Python Script package, which action is required to initialize the script execution environment?

A. Python Script: Open
B. Python Script: Initialize
C. Python Script: Run
D. Python Script: Execute

4 In the context of VBScript integration, what must be done to ensure multiple actions (Open, Run, Close) refer to the same script instance?

A. They must share the same error handler
B. They must be in the same loop
C. They must use the same Session Name
D. They must use the same variable mapping

5 What is a common use case for integrating a DLL (Dynamic Link Library) in Automation 360?

A. To record user keystrokes
B. To execute high-performance compiled code or system-level functions
C. To send emails without an SMTP server
D. To styling the user interface of the bot

6 When using the Python Script: Run function action, how are arguments typically passed to the Python function?

A. As a global dictionary
B. As a JSON string only
C. As a List variable
D. Arguments cannot be passed to Python

7 Which file extension is associated with VBScript files used in external automation?

A. .js
B. .vbs
C. .py
D. .dll

8 If a Python script requires external libraries (e.g., pandas), what is a prerequisite for the bot to run the script successfully?

A. The libraries must be converted to .dll files
B. External libraries are not supported
C. The libraries must be imported in the Control Room
D. The libraries must be installed in the Python environment utilized by the Bot Agent

9 What is the best practice regarding the Close action for script packages?

A. It should always be called to release system resources and memory
B. It should only be used if an error occurs
C. It is handled automatically by the operating system immediately
D. It is optional and can be skipped

10 In the JavaScript package, which action is used to execute a specific function within the script?

A. JavaScript: Launch
B. JavaScript: Run function
C. JavaScript: Compile
D. JavaScript: Run JavaScript

11 When passing sensitive data (like passwords) to an external script, what is the most secure method?

A. Pass the password as plain text in the variable
B. Write the password to a text file and have the script read it
C. Hardcode the password in the script file
D. Retrieve from Credential Vault and pass as an insecure string variable (only if necessary and handled securely in memory)

12 Which of the following is a limitation of VBScript compared to Python when used in RPA?

A. VBScript cannot run on Windows
B. VBScript cannot manipulate strings
C. VBScript has fewer modern libraries and community support for data science and AI
D. VBScript requires a paid license

13 In a Python script designed for Automation 360, what data type is returned to the bot if the Python function returns a dictionary?

A. It is strictly converted to a String
B. It can be mapped to a Dictionary variable in Automation 360
C. It is returned as a Boolean
D. It causes a runtime error

14 What is the purpose of 'Manual input' in the Open action of a script package?

A. To ask the user for input at runtime
B. To manually type or paste the script code directly into the bot definition
C. To manually select a file from the desktop
D. To type the file path manually

15 How does Automation 360 handle errors thrown within an external script (e.g., a Python syntax error)?

A. The action fails, and the error can be caught using the Error Handler package
B. The bot pauses indefinitely
C. The computer restarts
D. The bot ignores it and continues

16 When using the DLL package, what is the difference between Managed and Unmanaged code?

A. Managed code is Python; Unmanaged is C++
B. There is no difference in Automation 360
C. Managed code runs on the .NET CLR; Unmanaged code runs directly on the OS
D. Managed code requires a manager approval

17 What is a 'Session Name' conflict?

A. When the variable name matches the session name
B. When the script file name matches the session name
C. When two bots try to run at the same time
D. When a bot tries to Open a new session with a name that is already currently Open

18 To maximize maintainability, where should large or complex external scripts be stored?

A. Stored as a file in the Control Room repository or a secure shared drive
B. Emailed to the developer
C. Stored in a local temporary folder
D. Pasted directly into the 'Manual input' field

19 Which of the following is a security risk when using external scripts?

A. Using a script to calculate
B. Allowing the script to execute arbitrary code download from the internet (Remote Code Execution)
C. Returning a boolean value
D. Using comments in the code

20 In a Python script, what needs to be considered regarding the 'List' argument passed from Automation 360?

A. Python treats it as a string
B. Python treats it as a standard Python list
C. Python converts it to a tuple
D. Python cannot accept lists

21 Why might a developer choose a DLL over a Python script for a calculation-heavy task?

A. DLLs do not require a session
B. Python is not supported in Automation 360
C. DLLs are easier to write
D. DLLs (compiled languages) generally offer faster execution speed than interpreted scripts

22 What is the recommended approach for debugging an external script that is failing inside a bot?

A. Implement logging within the script to write status/errors to a text file
B. Delete the script
C. Guess the error and change the code
D. Run the bot repeatedly hoping it works

23 Which variable type is NOT typically supported as a direct return type from a VBScript function to Automation 360?

A. Complex Custom Object
B. Number
C. Boolean
D. String

24 What is the function of the System.Reflection approach when using DLLs?

A. It allows the bot to inspect and interact with the DLL's metadata and types dynamically
B. It makes the bot run slower
C. It mirrors the screen
D. It is used for image recognition

25 When defining a Python function for Automation 360, how should the function signature look if it accepts arguments?

A. function MyFunction { }
B. void MyFunction()
C. def MyFunction:
D. def MyFunction(args):

26 If a VBScript is intended to automate an Excel file, what object is typically instantiated within the script?

A. GetExcel()
B. CreateObject("Excel.Application")
C. Import Excel
D. New Excel()

27 What is a 'Timeout' setting in the Run Script action used for?

A. To speed up the script
B. To delay the script execution
C. To determine when to start the script
D. To prevent the bot from hanging indefinitely if the script gets stuck

28 Which of the following is a valid method to return data from a VBScript to Automation 360?

A. Using return result
B. Using WScript.Echo
C. The function name must be assigned the return value (e.g., MyFunction = result)
D. Writing to the registry

29 In the context of the JavaScript package, which engine is typically used for execution?

A. Unreal Engine
B. Unity Engine
C. The V8 engine inside a browser or NodeJS (depending on config) or Windows Script Host
D. Java Runtime Environment

30 If you need to parse a complex JSON response from an API that native actions cannot handle easily, which script type is most naturally suited for this?

A. VBScript
B. Batch file
C. DLL
D. JavaScript or Python

31 How can you pass multiple distinct values back from a Python script to the Bot if the Bot only accepts one return variable?

A. It is impossible
B. Run the script multiple times
C. Return them as a List or Dictionary (or JSON string) and parse them in the Bot
D. Use global variables

32 What is a 'Bot Agent' in the context of running scripts?

A. The local service running on the machine that executes the script code
B. The database
C. The person writing the bot
D. The cloud server

33 Which Python version is generally recommended for compatibility with Automation 360?

A. The version officially supported by the specific release of Automation 360 (usually 3.x)
B. Python 1.0
C. Python 2.7
D. Any version works identically

34 When using the DLL: Run function, what must be specified regarding the class?

A. The class inheritance tree
B. The class background color
C. The namespace and class name (e.g., MyNamespace.MyClass)
D. The class constructor arguments

35 What constitutes a 'clean' script environment (Best Practice)?

A. A script with no comments
B. A script that deletes all files on the computer
C. Ensuring temporary files are deleted and variables are cleared/scoped correctly
D. A script that relies on no external dependencies

36 If a Python script works in IDLE but fails in Automation 360, what is a likely cause?

A. The computer is off
B. Path issues or missing environment variables/dependencies in the execution context
C. Python is too fast
D. Automation 360 hates Python

37 What is the primary benefit of using External Scripts for regular expressions (Regex)?

A. It is more code to write
B. Native Automation 360 string actions do not support advanced Regex patterns efficiently
C. It is slower
D. Regex is illegal in RPA

38 How are print() statements in a Python script handled by Automation 360?

A. They appear in a pop-up window
B. They are automatically emailed to the admin
C. They stop the bot
D. They are ignored (unless captured via stdout redirection techniques, which is not standard)

39 Which advanced script integration example would best solve the problem of 'Reading text from a scanned PDF that requires OCR configuration not present in the native tool'?

A. A VBScript MsgBox
B. A simple text file
C. A Python script using the pytesseract or OpenCV library
D. A JavaScript alert

40 When converting legacy metabots to Automation 360, how is logic often migrated?

A. By printing the code on paper
B. Metabots are natively supported without changes
C. Logic is often converted into Task Bots or DLL/Script integrations
D. It is deleted

41 What is a 'Zombie Process' in the context of script automation?

A. A process that runs at midnight
B. A virus
C. A process that eats brains
D. A script process (e.g., python.exe) that remains running in the background after the bot finishes

42 In VBScript, how do you handle arguments passed to the script file globally?

A. Using input()
B. Using WScript.Arguments
C. Using Console.ReadLine
D. Using sys.argv

43 To ensure a Python script is portable between different Bot Agents, you should:

A. Use relative paths or system variables
B. Hardcode absolute paths like C:\Users\John\Desktop\script.py
C. Never use Python
D. Install Python on the D: drive only

44 Which command is used in Python to handle errors gracefully?

A. On Error Resume Next
B. Do...Loop
C. try...catch
D. try...except

45 Which command is used in VBScript to handle errors gracefully (or ignore them)?

A. try...except
B. ignore error
C. On Error Resume Next
D. catch error

46 Can an Automation 360 variable of type 'Number' be passed directly to a Python script?

A. Yes, but it must be wrapped in a List or converted to String depending on the input configuration
B. No, only Strings are supported
C. Yes, directly as an integer
D. No, Numbers are deprecated

47 What is the result of using $$ inside a VBScript string in Automation 360?

A. It represents a variable
B. It is a syntax error
C. It represents a single $ literal if variable expansion is active
D. It comments out the line

48 Which of the following is an example of an inefficient script integration?

A. Opening a Python session, running one function, and closing it inside a loop that runs 1000 times
B. Opening a session once, looping 1000 times running the function, then closing the session
C. Using a script to parse a 10MB JSON file
D. Using a DLL for math

49 What is the significance of the __name__ == "__main__" block in Python scripts used with Automation 360?

A. It causes an error in Automation 360
B. It is useful for testing the script locally but is ignored when calling specific functions via the Bot
C. It is required for the script to run
D. It renames the bot

50 If a script requires user interaction (e.g., a Python input() prompt), what will happen in a scheduled unattended bot?

A. The bot will randomly guess the input
B. The bot skips the line
C. The Admin receives an SMS
D. The bot will hang/timeout because there is no user to provide input