Chapter 5 Test [ MPE V to MPE XL Getting Started: Mentor's Guide ] MPE/iX 5.0 Documentation
MPE V to MPE XL Getting Started: Mentor's Guide
Chapter 5 Test
Name: ___________________________________
1. Which of the following are acceptable names for user created
variables?
____ a. Acceptable Name
____ b. Unacceptable_Name
____ c. _123
____ d. 123
2. In each of the following examples, how would you assign the value
to the variables, display the variable, and its value, and delete
the variable?
VARIABLE VALUE PROCEDURE
a. X 250 :_______________________________
:_______________________________
:_______________________________
b. Z_A 1.25 :_______________________________
:_______________________________
:_______________________________
3. Which of the following displays will result from entering this
string:
echo setvar x,'Pat'
____ a. setvar x,Pat
____ b. setvar x,'Pat'
____ c. SETVAR X,'PAT'
4. Which of the following prompts the user for a choice of prompt
character, and then changes the prompt?
____ a. setvar hpprompt,'New Prompt?'
____ b. input hpprompt,'New Prompt?'
5. In which document(s) can you find a list of user modifiable system
variables?
6. What command strings will change the value of the system variable
HPREDOSIZE from its default of 20 to 10, and back to 20 again?
How do you show, at each step, that the change has taken place?
7. What command string would you enter to add a TARK group to your
existing search path?
How would you then execute the released COMFILE command file from
that group's files without having to change from your home group
and without having to specify the group name?
8. How would you use the ECHO command to dereference the user created
variable ARN_WILK?
9. Assume you have a variable X with a value of MONDAY. What value
would you give a variable Y, so that if the value of X changed to
TUESDAY, the value of Y would also change to TUESDAY?
10. The term used for the function described in the question above is
known as:
____ Dereferencing
____ Recursive dereferencing
MPE/iX 5.0 Documentation