InterviewSolution
| 1. |
What Are Variables And What Is Variable Scope? |
|
Answer» A variable is used to store VALUES. There are basically two types of variables, System Variable (like ErrorCode, ErrorDescription, PackageName etc) WHOSE values you can use but cannot change and User Variable which you CREATE, assign values and read as needed. A variable can hold a value of the data type you have chosen when you defined the variable. Variables can have a different scope depending on where it was defined. For example you can have package level variables which are ACCESSIBLE to all the tasks in the package and there could also be container level variables which are accessible only to those tasks that are WITHIN the container. A variable is used to store values. There are basically two types of variables, System Variable (like ErrorCode, ErrorDescription, PackageName etc) whose values you can use but cannot change and User Variable which you create, assign values and read as needed. A variable can hold a value of the data type you have chosen when you defined the variable. Variables can have a different scope depending on where it was defined. For example you can have package level variables which are accessible to all the tasks in the package and there could also be container level variables which are accessible only to those tasks that are within the container. |
|