Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 5 MCQsExtending Automation 360 Capabilities with External Scripts
What is the primary purpose of using External Scripts in Automation 360?
Not quite. Try another option.
Answer: To extend the capabilities of bots beyond native actions
External scripts allow developers to perform complex logic, calculations, or integrations that are not available as out-of-the-box actions in the Automation 360 command library.
Question 2 of 50
Which of the following scripting languages is NOT natively supported by a specific 'Script' package in Automation 360?
Not quite. Try another option.
Answer: Swift
Automation 360 provides specific packages for Python, VBScript, and JavaScript (and DLLs). Swift is primarily used for Apple ecosystem development and does not have a native action package.
Question 3 of 50
When using the Python Script package, which action is required to initialize the script execution environment?
Not quite. Try another option.
Answer: Python Script: Open
The 'Open' action is required to initialize the session, define whether the script is inline or a file, and set the Python version/path before running functions.
Question 4 of 50
In the context of VBScript integration, what must be done to ensure multiple actions (Open, Run, Close) refer to the same script instance?
Not quite. Try another option.
Answer: They must use the same Session Name
The Session Name (e.g., 'Default') links the Open, Run, and Close actions together so the bot knows which script environment to execute commands in.
Question 5 of 50
What is a common use case for integrating a DLL (Dynamic Link Library) in Automation 360?
Not quite. Try another option.
Answer: To execute high-performance compiled code or system-level functions
DLLs are used to run compiled code (often written in C# or C++) for high-performance tasks, complex calculations, or accessing system APIs not exposed by the RPA tool.
Question 6 of 50
When using the Python Script: Run function action, how are arguments typically passed to the Python function?
Not quite. Try another option.
Answer: As a List variable
In Automation 360, arguments passed to a Python function are typically configured as a List variable, which the Python function receives as a list argument.
Question 7 of 50
Which file extension is associated with VBScript files used in external automation?
Not quite. Try another option.
Answer: .vbs
VBScript (Visual Basic Script) files typically use the .vbs extension.
Question 8 of 50
If a Python script requires external libraries (e.g., pandas), what is a prerequisite for the bot to run the script successfully?
Not quite. Try another option.
Answer: The libraries must be installed in the Python environment utilized by the Bot Agent
The Python environment on the machine running the bot (Bot Agent) must have the necessary packages installed (e.g., via pip install) for the script to import them.
Question 9 of 50
What is the best practice regarding the Close action for script packages?
Not quite. Try another option.
Answer: It should always be called to release system resources and memory
Explicitly using the Close action ensures that the script engine (Python interpreter, VBScript engine, etc.) is terminated properly, freeing up RAM and file handles.
Question 10 of 50
In the JavaScript package, which action is used to execute a specific function within the script?
Not quite. Try another option.
Answer: JavaScript: Run function
The 'Run function' action allows you to specify the name of the function inside the JavaScript code you wish to execute and pass arguments to it.
Question 11 of 50
When passing sensitive data (like passwords) to an external script, what is the most secure method?
Not quite. Try another option.
Answer: Retrieve from Credential Vault and pass as an insecure string variable (only if necessary and handled securely in memory)
Credentials should never be hardcoded or written to files. They should be pulled from the Credential Vault. While scripts often require string inputs, the data should be handled with least-privilege scope and cleaned up immediately.
Question 12 of 50
Which of the following is a limitation of VBScript compared to Python when used in RPA?
Not quite. Try another option.
Answer: VBScript has fewer modern libraries and community support for data science and AI
Python has a vast ecosystem (Pandas, NumPy, TensorFlow) for modern data processing. VBScript is a legacy language primarily used for Windows automation and lacks these modern libraries.
Question 13 of 50
In a Python script designed for Automation 360, what data type is returned to the bot if the Python function returns a dictionary?
Not quite. Try another option.
Answer: It can be mapped to a Dictionary variable in Automation 360
Automation 360 supports mapping the return value of a Python script directly to a Dictionary variable if the Python function returns a dictionary object.
Question 14 of 50
What is the purpose of 'Manual input' in the Open action of a script package?
Not quite. Try another option.
Answer: To manually type or paste the script code directly into the bot definition
Manual input allows the developer to write the code inline within the Bot editor, rather than importing an external file. This is useful for short, simple scripts.
Question 15 of 50
How does Automation 360 handle errors thrown within an external script (e.g., a Python syntax error)?
Not quite. Try another option.
Answer: The action fails, and the error can be caught using the Error Handler package
If the external script crashes or throws an exception, the specific Run action in the bot will fail. This failure can be caught and managed using a Try-Catch block in the Error Handler package.
Question 16 of 50
When using the DLL package, what is the difference between Managed and Unmanaged code?
Not quite. Try another option.
Answer: Managed code runs on the .NET CLR; Unmanaged code runs directly on the OS
Automation 360 allows selecting the type of DLL. Managed DLLs (C#, VB.NET) run inside the Common Language Runtime, while Unmanaged DLLs (C++) execute directly as native machine code.
Question 17 of 50
What is a 'Session Name' conflict?
Not quite. Try another option.
Answer: When a bot tries to Open a new session with a name that is already currently Open
If a bot executes an 'Open' action with the session name 'MySession' while 'MySession' is already active (hasn't been Closed), a session conflict error will occur.
Question 18 of 50
To maximize maintainability, where should large or complex external scripts be stored?
Not quite. Try another option.
Answer: Stored as a file in the Control Room repository or a secure shared drive
Storing scripts as files in the Control Room ensures version control, centralization, and that the bot always downloads the latest version of the script logic.
Question 19 of 50
Which of the following is a security risk when using external scripts?
Not quite. Try another option.
Answer: Allowing the script to execute arbitrary code download from the internet (Remote Code Execution)
Scripts that download and execute code from external URLs pose a severe security risk (RCE). Scripts should be self-contained or only access trusted, verified internal resources.
Question 20 of 50
In a Python script, what needs to be considered regarding the 'List' argument passed from Automation 360?
Not quite. Try another option.
Answer: Python treats it as a standard Python list
Automation 360 marshals the List variable into a standard Python list object, which can be indexed and iterated over using standard Python syntax.
Question 21 of 50
Why might a developer choose a DLL over a Python script for a calculation-heavy task?
Not quite. Try another option.
Answer: DLLs (compiled languages) generally offer faster execution speed than interpreted scripts
Compiled languages (C#/C++) packaged in DLLs often execute purely computational tasks significantly faster than interpreted languages like Python or VBScript.
Question 22 of 50
What is the recommended approach for debugging an external script that is failing inside a bot?
Not quite. Try another option.
Answer: Implement logging within the script to write status/errors to a text file
Since you cannot easily step-through debug a script while the bot is running it blindly, adding logging statements (print/write to file) inside the script helps identify where logic breaks or what values are being received.
Question 23 of 50
Which variable type is NOT typically supported as a direct return type from a VBScript function to Automation 360?
Not quite. Try another option.
Answer: Complex Custom Object
RPA tools generally exchange simple data types (Strings, Numbers, Booleans, basic Lists/Dictionaries). Complex custom objects defined inside a script usually cannot be passed back directly; they must be serialized (e.g., to JSON) first.
Question 24 of 50
What is the function of the System.Reflection approach when using DLLs?
Not quite. Try another option.
Answer: It allows the bot to inspect and interact with the DLL's metadata and types dynamically
In .NET, Reflection allows the code (or the bot) to inspect loaded assemblies, classes, and methods at runtime to invoke them, which is how Automation 360 interacts with Managed DLLs.
Question 25 of 50
When defining a Python function for Automation 360, how should the function signature look if it accepts arguments?
Not quite. Try another option.
Answer: def MyFunction(args):
Python syntax requires the def keyword, the function name, and parentheses containing the argument name (e.g., args), followed by a colon.
Question 26 of 50
If a VBScript is intended to automate an Excel file, what object is typically instantiated within the script?
Not quite. Try another option.
Answer: CreateObject("Excel.Application")
CreateObject("Excel.Application") is the standard COM command in VBScript to create an instance of the Excel application for automation.
Question 27 of 50
What is a 'Timeout' setting in the Run Script action used for?
Not quite. Try another option.
Answer: To prevent the bot from hanging indefinitely if the script gets stuck
The timeout ensures that if a script enters an infinite loop or freezes, the bot will eventually terminate the action and throw an error rather than waiting forever.
Question 28 of 50
Which of the following is a valid method to return data from a VBScript to Automation 360?
Not quite. Try another option.
Answer: The function name must be assigned the return value (e.g., MyFunction = result)
In VBScript, values are returned from a function by assigning the value to the function's name, unlike Python or JS which use the return keyword.
Question 29 of 50
In the context of the JavaScript package, which engine is typically used for execution?
Not quite. Try another option.
Answer: The V8 engine inside a browser or NodeJS (depending on config) or Windows Script Host
JavaScript in RPA is usually executed via Windows Script Host (JScript) or, in modern contexts, mapped to Node/Browser engines. Automation 360 primarily utilizes standard JS syntax compatible with these hosts.
Question 30 of 50
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?
Not quite. Try another option.
Answer: JavaScript or Python
JavaScript (JSON is native to JS) and Python (standard json library) are far superior and easier to use for JSON parsing than VBScript or Batch files.
Question 31 of 50
How can you pass multiple distinct values back from a Python script to the Bot if the Bot only accepts one return variable?
Not quite. Try another option.
Answer: Return them as a List or Dictionary (or JSON string) and parse them in the Bot
You can bundle multiple data points into a complex structure (List/Dictionary) or serialize them into a JSON string, return that single object, and then use Automation 360 actions to extract the individual values.
Question 32 of 50
What is a 'Bot Agent' in the context of running scripts?
Not quite. Try another option.
Answer: The local service running on the machine that executes the script code
The Bot Agent is the execution engine installed on the local machine. It is responsible for spinning up the script processes (Python, VBScript) requested by the bot.
Question 33 of 50
Which Python version is generally recommended for compatibility with Automation 360?
Not quite. Try another option.
Answer: The version officially supported by the specific release of Automation 360 (usually 3.x)
Automation 360 generally supports Python 3.x. Python 2 is deprecated. It is crucial to check the specific documentation for the supported version range (e.g., 3.6 to 3.12).
Question 34 of 50
When using the DLL: Run function, what must be specified regarding the class?
Not quite. Try another option.
Answer: The namespace and class name (e.g., MyNamespace.MyClass)
To invoke a method in a managed DLL, the bot needs the fully qualified name: Namespace + Class Name.
Question 35 of 50
What constitutes a 'clean' script environment (Best Practice)?
Not quite. Try another option.
Answer: Ensuring temporary files are deleted and variables are cleared/scoped correctly
Best practices dictate that scripts should not leave 'garbage' behind (temp files, open connections) that could clutter the bot runner or cause memory leaks.
Question 36 of 50
If a Python script works in IDLE but fails in Automation 360, what is a likely cause?
Not quite. Try another option.
Answer: Path issues or missing environment variables/dependencies in the execution context
Scripts often rely on relative paths or environment variables set in a developer's IDE that are not present when the Bot Agent executes the script in a background process.
Question 37 of 50
What is the primary benefit of using External Scripts for regular expressions (Regex)?
Not quite. Try another option.
Answer: Native Automation 360 string actions do not support advanced Regex patterns efficiently
While Automation 360 has some string manipulation, languages like Python have powerful, standard Regex libraries that can handle complex pattern matching and substitution much more effectively.
Question 38 of 50
How are print() statements in a Python script handled by Automation 360?
Not quite. Try another option.
Answer: They are ignored (unless captured via stdout redirection techniques, which is not standard)
Standard output (print) is not the return value. To get data back to the bot, the function must return data. print outputs usually go nowhere unless specific logging is set up.
Question 39 of 50
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'?
Not quite. Try another option.
Answer: A Python script using the pytesseract or OpenCV library
Python has extensive libraries for Computer Vision and OCR (like Tesseract) that can provide capabilities far beyond basic built-in OCR tools.
Question 40 of 50
When converting legacy metabots to Automation 360, how is logic often migrated?
Not quite. Try another option.
Answer: Logic is often converted into Task Bots or DLL/Script integrations
Metabots (from v11) often used DLLs. In Automation 360, these are migrated by using the DLL package or converting the logic into standard Task Bots or Scripts.
Question 41 of 50
What is a 'Zombie Process' in the context of script automation?
Not quite. Try another option.
Answer: A script process (e.g., python.exe) that remains running in the background after the bot finishes
If 'Close' actions are not used or error handling is poor, the script engine executable may remain active in memory, consuming resources, known as a zombie process.
Question 42 of 50
In VBScript, how do you handle arguments passed to the script file globally?
Not quite. Try another option.
Answer: Using WScript.Arguments
WScript.Arguments is the collection used in VBScript to access command-line arguments passed to the script execution.
Question 43 of 50
To ensure a Python script is portable between different Bot Agents, you should:
Not quite. Try another option.
Answer: Use relative paths or system variables
Hardcoded paths fail if the username or drive letter differs. Using relative paths (relative to the bot execution dir) or system variables makes the bot portable.
Question 44 of 50
Which command is used in Python to handle errors gracefully?
Not quite. Try another option.
Answer: try...except
Python uses the try...except block structure for exception handling. (try...catch is Java/JS/C#).
Question 45 of 50
Which command is used in VBScript to handle errors gracefully (or ignore them)?
Not quite. Try another option.
Answer: On Error Resume Next
VBScript uses On Error Resume Next to proceed to the next line after an error, or On Error GoTo 0 to disable it.
Question 46 of 50
Can an Automation 360 variable of type 'Number' be passed directly to a Python script?
Not quite. Try another option.
Answer: Yes, but it must be wrapped in a List or converted to String depending on the input configuration
The Python 'Run function' action typically takes a List of arguments. You would add the Number variable to a List variable in Automation 360, then pass the List.
Question 47 of 50
What is the result of using $$ inside a VBScript string in Automation 360?
Not quite. Try another option.
Answer: It represents a single $ literal if variable expansion is active
In Automation Anywhere, variables are wrapped in $. To use a literal dollar sign, you often need to escape it, though inside an external script file itself, standard language syntax applies. However, when passing arguments from the bot, $$ is the escape sequence for $.
Question 48 of 50
Which of the following is an example of an inefficient script integration?
Not quite. Try another option.
Answer: Opening a Python session, running one function, and closing it inside a loop that runs 1000 times
Initializing the script engine (Open) is resource-intensive. It is much more efficient to Open once, Loop the Run action, and Close once.
Question 49 of 50
What is the significance of the __name__ == "__main__" block in Python scripts used with Automation 360?
Not quite. Try another option.
Answer: It is useful for testing the script locally but is ignored when calling specific functions via the Bot
This block executes code only if the script is run directly (standalone). When Automation 360 imports the script to call a specific function (e.g. def process():), the code inside if __name__ == "__main__": does not run, preventing side effects.
Question 50 of 50
If a script requires user interaction (e.g., a Python input() prompt), what will happen in a scheduled unattended bot?
Not quite. Try another option.
Answer: The bot will hang/timeout because there is no user to provide input
Unattended bots run in the background. Scripts that block execution waiting for UI input (stdin) will cause the bot to hang until the timeout limit is reached.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT346 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT346 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.