1.
There is no document available yet, please upload the document
2.
An Automic script line or comment begins with a : or ! in the first column.
Correct Answer
A. True
Explanation
An Atomic script line or comment beginning with a : or ! in the first column is a valid syntax in many programming languages. This syntax is commonly used to indicate a comment or a special command in the script. By starting a line with : or !, the script interpreter recognizes it as a comment or a specific instruction rather than executable code. Therefore, the statement "True" is correct, as it accurately describes the syntax convention in many programming languages.
3.
A script variable always begins with the & and can consist of letters and numbers as long as the first character after the & is not a number.
Correct Answer
A. True
Explanation
In scripting, a variable is a symbolic name for a value that can be used to store and manipulate data. The statement states that a script variable always begins with the symbol "&" and can contain letters and numbers. However, it specifies that the first character after "&" cannot be a number. Therefore, the given statement is true as it accurately describes the naming convention for script variables.
4.
On which tabs of an object can Automic script be utilized.
Correct Answer
D. All of the Above.
Explanation
Automic script can be utilized on all tabs of an object, including PROCESS, PRE-PROCESS, and POST-PROCESS. This means that the script can be executed before, during, or after the main process of the object. Utilizing Automic script on all tabs allows for greater flexibility and customization in automating tasks and workflows.
5.
In version 10 there are now predefined variables, which line is using a version 10 predefined variable?
Correct Answer
B. :PRINT &$pHYS_DATE_YYMMDD#
Explanation
The line ":PRINT &$PHYS_DATE_YYMMDD#" is using a version 10 predefined variable.
6.
Which Automic script statement assigns a value to a script variable?
Correct Answer
C. :SET
Explanation
The :SET statement is used in Automic scripting to assign a value to a script variable. This statement allows the programmer to specify the variable name and the value that should be assigned to it. By using the :SET statement, the programmer can manipulate and store data within the script, making it a crucial command for variable assignment in Automic scripting.
7.
To reference the LOGICAL date, which function would be called?
Correct Answer
C. SYS_LDATE()
Explanation
The function SYS_LDATE() would be called to reference the LOGICAL date.
8.
Which V10 Predefined Variable function returns the physical time?
Correct Answer
D. &$pHYS_TIME_format#
Explanation
The correct answer is &$PHYS_TIME_format#. This is because the &$PHYS_TIME_format# function returns the physical time. The other options, SYS_TIMESTAMP_PHYSICAL([Time Zone]), &$TIME_format#, and SYS_DATE_PHYSICAL(), do not specifically return the physical time.
9.
Which of these time or date formats are valid?
Correct Answer
G. All of the above.
Explanation
All of the given time and date formats are valid.
- HH:MM:SS represents the time in hours, minutes, and seconds.
- YYYY represents the year in four digits.
- LLL represents the month in three letters.
- HH represents the hour in two digits.
- HHMMSS represents the time in hours, minutes, and seconds without separators.
- DD-MM-YYYY represents the date in day, month, and year format.
10.
Which arithmetic operation will return the remainder of a division operation?
Correct Answer
C. MOD()
Explanation
The MOD() arithmetic operation will return the remainder of a division operation. This function calculates the remainder when one number is divided by another. It is commonly used in programming to determine if a number is divisible by another number or to perform modular arithmetic.
11.
The script function FORMAT() can be used to strip leading 0’s from a variable.
Correct Answer
A. True
Explanation
The statement is true because the FORMAT() function in a script can be used to remove leading zeros from a variable. This function allows for formatting and manipulating the display of data, including removing leading zeros. This can be useful in scenarios where leading zeros are not desired or when the data needs to be presented in a specific format.
12.
How many values maximum can a version 10 STATIC variable object store?
Correct Answer
C. 5
Explanation
A version 10 STATIC variable object can store a maximum of 5 values. This means that the object can hold up to 5 different values at any given time.
13.
Which statement is used to store a value in a static variable object.
Correct Answer
C. :PUT_VAR
Explanation
The statement used to store a value in a static variable object is ":PUT_VAR". This statement is specifically designed to assign a value to a static variable, which allows the value to be accessed and used throughout the program. The other options, ":READ" and ":SET", do not specifically deal with storing a value in a static variable. Therefore, the correct answer is ":PUT_VAR".
14.
The GET_VAR() function is used to retrieve values from a variable object.
Correct Answer
A. True
Explanation
The GET_VAR() function is indeed used to retrieve values from a variable object. This function allows access to the values stored within the variable object, providing a way to retrieve and use them in the program. By using the GET_VAR() function, developers can efficiently access and manipulate the values stored in the variable object.
15.
Which script statements allow looping in scripts?
Correct Answer
B. :WHILE :ENDWHILE
Explanation
The correct answer is ":WHILE :ENDWHILE". These script statements allow looping in scripts. The ":WHILE" statement is used to specify the condition for the loop to continue, and the ":ENDWHILE" statement marks the end of the loop. This combination allows the script to repeat a set of instructions as long as the specified condition is true.
16.
The script statements :IF :ELSE :ENDIF are used to evaluate an expression and execute statements dependent on the result.
Correct Answer
A. True
Explanation
The script statements :IF :ELSE :ENDIF are indeed used to evaluate an expression and execute statements dependent on the result. The IF statement allows for the evaluation of a condition, and if the condition is true, the statements within the IF block are executed. If the condition is false, the statements within the ELSE block (if present) are executed. Finally, the ENDIF statement marks the end of the conditional block. Therefore, the answer is true.
17.
Another way of evaluating an expression and executing statements based on the result would be to use the :SWITCH :CASE :ENDSWITCH script statements.
Correct Answer
A. True
Explanation
The given statement suggests that using the :SWITCH :CASE :ENDSWITCH script statements is another way of evaluating an expression and executing statements based on the result. This implies that the statement is true, as it presents an alternative method for achieving the mentioned purpose.
18.
Which script function can be used to check if an agent is active?
Correct Answer
C. SYS_HOST_ALIVE()
Explanation
The function SYS_HOST_ALIVE() can be used to check if an agent is active. This function is specifically designed to determine the status of a host or agent. It can be used to verify if the agent is currently running and available for processing tasks.
19.
Using the :STOP NOMSG statement in the PRE-PROCESS of a JOB object will end the object ‘ENDED_EMTPY – task is empy (STOP NOMSG)’.
Correct Answer
A. True
Explanation
Using the :STOP NOMSG statement in the PRE-PROCESS of a JOB object will end the object with the status 'ENDED_EMPTY - task is empty (STOP NOMSG)'. This means that the object will be terminated without any error message being displayed.
20.
All executable objects have attributes that can be read at object generation, the script function GET_ATT is used to retrieve these attributes.
Correct Answer
A. True
Explanation
The given statement is true. All executable objects have attributes that can be read at object generation. The GET_ATT script function is used to retrieve these attributes.
21.
In version 10 there are many predefined variables that contain the object attributes that can be referenced directly.
Correct Answer
A. True
Explanation
In version 10, there are indeed many predefined variables that contain the object attributes, which means these variables already have values assigned to them and can be directly referenced without any additional coding. Therefore, the statement "In version 10 there are many predefined variables that contain the object attributes that can be referenced directly" is true.
22.
Which of the following script statements is used to change an object attribute?
Correct Answer
C. :PUT_ATT
Explanation
The script statement ":PUT_ATT" is used to change an object attribute. This statement allows the script to modify the value of an attribute associated with an object. It is commonly used when there is a need to update or alter the properties of an object within a script.
23.
Which of the following functions is used to activate an object from another object?
Correct Answer
A. ACTIVATE_UC_OBJECT()
Explanation
ACTIVATE_UC_OBJECT() is the correct answer because this function is used to activate an object from another object. It is a function in a programming language or system that triggers the execution of a specific object or process. By calling this function, the specified object is activated and its associated actions or tasks are initiated. This function is commonly used in workflow or process automation systems to start or trigger the execution of a particular object or task.
24.
Which script statement would be used to store a value in a variable that is going to be passed to another object when activated with Automic script (assuming variable is not listed on ‘Variables and Prompts’ tab).
Correct Answer
C. :PSET
Explanation
The correct answer is :PSET. In Automic script, the :PSET statement is used to store a value in a variable that is going to be passed to another object when activated. This statement allows the value to be set dynamically at runtime, rather than being predefined in the script.
25.
Which of the following is the version 10 predefined variable that contains the RunID of the object in which it was activated?
Correct Answer
A. &$RUNID#
Explanation
The correct answer is &$RUNID#. This is the version 10 predefined variable that contains the RunID of the object in which it was activated.
26.
Which script function will return the RunID of the superordinate object?
Correct Answer
C. All of the above.
Explanation
All of the above options will return the RunID of the superordinate object. &$ACTIVATOR_RUNID is a script function that returns the RunID of the current object. SYS_ACT_PARENT_NR() is a script function that returns the RunID of the parent object. Therefore, both options can be used to retrieve the RunID of the superordinate object.
27.
Which of the following script statements is used to append text to a notification object using scripting on the PROCESS tab?
Correct Answer
C. :PUT_ATT_APPEND CALL_TEXT = ‘string’
Explanation
The correct answer is ":PUT_ATT_APPEND CALL_TEXT = 'string'". This script statement is used to append text to a notification object using scripting on the PROCESS tab. It allows you to add additional text to the existing text in the CALL_TEXT attribute of the notification object.
28.
The script function UC_CRLF() is used to insert a line break.
Correct Answer
A. True
Explanation
The script function UC_CRLF() is used to insert a line break. This means that when this function is called, it will add a line break in the text or code where it is placed. This can be useful in situations where you want to separate different lines or paragraphs of text in your script or code. By inserting a line break, you can improve the readability and organization of your code. Therefore, the statement "True" is correct.
29.
Which script function returns a ‘Y’ if a user is logged into Automic?
Correct Answer
D. SYS_USER_ALIVE()
Explanation
SYS_USER_ALIVE() is the correct answer because this script function returns a 'Y' if a user is logged into Automic. This function checks the status of the user's login session and returns 'Y' if the session is active or 'N' if it is inactive. Therefore, by using this function, it is possible to determine whether a user is currently logged into Automic or not.
30.
Which script functions return information about object names?
Correct Answer
G. All of the above.
Explanation
All of the given script functions return information about object names. The function "&$NAME#" returns the name of the current object, "SYS_ACT_ME_NAME()" returns the name of the current activity, "SYS_ACT_PARENT_NAME()" returns the name of the parent activity, "$ACTIVATOR#" returns the name of the object that triggered the current activity, "$TOP_PROCESSFLOW_NAME#" returns the name of the top-level process flow, and "SYS_ACT_TOP_NAME()" returns the name of the top-level activity. Therefore, all of these functions provide information about object names.
31.
Which script statement is needed if needing to pass a variable set on PRE-PROCESS or PROCESS tab to the POST-PROCESS tab?
Correct Answer
D. Either :RSET or :PSET
Explanation
In order to pass a variable set on the PRE-PROCESS or PROCESS tab to the POST-PROCESS tab, either the :RSET or :PSET script statement can be used. Both of these statements are capable of transferring the value of a variable from one tab to another.
32.
Which script function is used to create a data sequence out of a tasks job report?
Correct Answer
C. PREP_PROCESS_REPORT()
Explanation
PREP_PROCESS_REPORT() is the correct answer because it is the script function used to create a data sequence out of a tasks job report. This function allows the user to process report data and extract information from it in a structured manner. It is commonly used in scripting to manipulate and analyze job reports generated by tasks.
33.
Using the script function GET_UC_OBJECT_STATUS() and the script function :MODIFY_STATE it is possible to modify the return code from a non-zero to a zero?
Correct Answer
A. True
Explanation
The statement is true because the script function GET_UC_OBJECT_STATUS() allows retrieving the current status of an object, while the script function MODIFY_STATE enables modifying the state of an object. By using these functions together, it is possible to change the return code from a non-zero value to zero, indicating a successful execution.
34.
Which script function is used to create a data sequence out of the contents of an external file?
Correct Answer
E. PREP_PROCESS_FILE()
Explanation
The function PREP_PROCESS_FILE() is used to create a data sequence out of the contents of an external file. This function allows the script to read the data from a file and process it accordingly. It is commonly used when there is a need to import data from an external source and manipulate it within the script.
35.
Which script function is used to create a data sequence out of the contents of a variable object?
Correct Answer
A. PREP_PROCESS_VAR()
Explanation
The correct answer is PREP_PROCESS_VAR(). This script function is used to create a data sequence out of the contents of a variable object. It prepares the variable for processing by converting it into a format that can be easily manipulated and analyzed. This function is commonly used in programming to transform and manipulate data stored in variables.
36.
Which script function is used to create a data sequence from the output of an operating system command?
Correct Answer
B. PREP_PROCESS()
Explanation
PREP_PROCESS() is the script function used to create a data sequence from the output of an operating system command. This function prepares the output of the command for further processing within the script, allowing the data to be manipulated and analyzed as needed. It is commonly used when working with external data sources or when integrating with other systems.
37.
Which version 10 predefined variable returns the number of the current client?
Correct Answer
C. &$CLIENT#
Explanation
The correct answer is &$CLIENT#. The &$CLIENT# predefined variable returns the number of the current client.
38.
Which version 10 predefined variable returns the name of the Automic System?
Correct Answer
A. &$SYSTEM#
Explanation
The correct answer is &$SYSTEM#. This predefined variable returns the name of the Automic System.
39.
The version 10 predefined variable &$RESTART_COUNT# returns the number of restarts that have been made by a task on a workflow using the Post-Conditions tab
Correct Answer
A. True
Explanation
The version 10 predefined variable &$RESTART_COUNT# returns the number of restarts that have been made by a task on a workflow using the Post-Conditions tab. This means that if a task within a workflow has been restarted multiple times, the value of &$RESTART_COUNT# will reflect the number of times it has been restarted.
40.
Which script function is used to search for a character or a string within a string?
Correct Answer
B. STR_FIND()
Explanation
The STR_FIND() function is used to search for a character or a string within a string. It takes two parameters, the string to be searched and the string to search for. It returns the index of the first occurrence of the search string within the main string. If the search string is not found, it returns -1. This function is commonly used in programming to locate specific characters or substrings within a larger string and perform further operations based on the search results.
41.
Which script function returns the number of characters in a string?
Correct Answer
D. STR_LNG()
Explanation
The STR_LNG() function is used to return the number of characters in a string. It calculates and returns the length of the specified string.
42.
Which script function is used to shift a string to all uppercase characters?
Correct Answer
B. STR_UC()
Explanation
The STR_UC() script function is used to shift a string to all uppercase characters. This function takes a string as input and returns the same string with all characters converted to uppercase. It is commonly used when you want to convert a string to uppercase for consistency or comparison purposes.
43.
Which script statement will define an INTEGER that can contain positive (+) and negative (-) numbers.
Correct Answer
C. :define &num#, signed
Explanation
The correct answer is ":define &num#, signed". This script statement will define an INTEGER that can contain both positive and negative numbers. The keyword "signed" indicates that the variable can hold both positive and negative values.
44.
Which script function is used to copy characters of a string to a variable?
Correct Answer
A. STR_CUT()
Explanation
The STR_CUT() function is used to copy characters of a string to a variable. This function takes two parameters: the source string and the number of characters to copy. It returns the copied characters as a new string. Therefore, STR_CUT() is the correct answer for this question.
45.
Which script function is used to delete leading spaces from a string?
Correct Answer
C. STR_LTRIM()
Explanation
The correct answer is STR_LTRIM(). This script function is used to delete leading spaces from a string.
46.
Which script function is used to delete trailing spaces from a string?
Correct Answer
A. STR_RTRIM()
Explanation
The STR_RTRIM() function is used to delete trailing spaces from a string.
47.
Which script function is used to delete leading and trailing spaces from a string?
Correct Answer
C. STR_TRIM()
Explanation
The STR_TRIM() function is used to delete leading and trailing spaces from a string. This function removes any white spaces at the beginning and end of the string, ensuring that the string does not have any extra spaces. It is commonly used to clean up user input or to format strings before further processing.
48.
Which function is used to remove leading 0's from a number?
Correct Answer
A. FORMAT()
Explanation
The FORMAT() function is used to format a number as a string with a specified format. It can be used to remove leading 0's from a number by specifying a format that does not include leading zeros. For example, if the number is 00123, using the FORMAT() function with the format '0' would return '123' without the leading zeros.
49.
It is possible to see the ‘Modification of Variables’ before an object is executed.
Correct Answer
A. True
Explanation
The given statement is true. In programming, the modification of variables can occur before an object is executed. This means that the values of variables can be changed or updated before the object or code block associated with them is executed. This allows for dynamic and flexible programming, as variables can be modified based on certain conditions or inputs before their corresponding code is executed.
50.
It is possible to abort the execution of a task that was activated with the ‘Test Options’ parameter.
Correct Answer
A. True
Explanation
The statement is true because if a task was activated with the 'Test Options' parameter, it means that it was initiated for testing purposes. In such cases, it is important to have the ability to abort the execution of the task if needed. This allows for flexibility and control during the testing process.