Check Your Answers [ Using the 900 Series HP 3000: Advanced Skills Module 6: Variables and Expression ] MPE/iX 5.0 Documentation
Using the 900 Series HP 3000: Advanced Skills Module 6: Variables and Expression
Check Your Answers
---------------------------------------------------------------------------------------------
| | |
| Is Your Answer...? | If Not, Start With |
| | |
---------------------------------------------------------------------------------------------
| | |
| 1. VAR_1 | Lesson 1 |
| | |
| VARIABLE_1 | |
| | |
| 2. HPPROMPT or HPPATH | Lesson 1 |
| | |
| 3. FALSE | Lesson 1 |
| | |
| 4. TRUE | Lesson 1 |
| | |
| 5. SHOWVAR VARIABLE1 or | Lesson 1 |
| | |
| ECHO !VARIABLE1 | |
| | |
| 6. ECHO HELLO --- WELCOME TO THE... | Lesson 2 |
| | |
| - OR - | |
| | |
| SETVAR A "HELLO -- WELCOME TO THE..." | |
| | |
| SHOWVAR Aor ECHO !A | |
| | |
| 7. INPUT USERNAME;PROMPT="What is your name?" | Lesson 2 |
| | |
| ECHO HELLO !USERNAME -- WELCOME TO THE... | |
| | |
---------------------------------------------------------------------------------------------
Answers continued on next page.
---------------------------------------------------------------------------------------------
| | |
| Is Your Answer...? | If Not, Start With |
| | |
---------------------------------------------------------------------------------------------
| | |
| 8. You must explicitly dereference the value of VAR_A by using | Lesson 2 |
| the statements in b and c. | |
| | |
| 9. | Lesson 2 |
| a. CFA: It prints: *** HELLO JULIO FROM SPAIN *** and | |
| quits. | |
| CFB: It prints: *** HELLO JULIO FROM SPAIN *** and | |
| reprompts. | |
| | |
| b. CFA: It prints *** SORRY, NO MESSAGE *** and quits. | |
| CFB: It prints *** SORRY, NO MESSAGE *** and quits. | |
| | |
| c. CFA: It prints: *** HELLO GINA FROM ITALY *** and | |
| quits. It never gives you a chance to enter the //. | |
| CFB: It prints: HELLO GINA FROM ITALY *** and quits | |
| after you enter //. | |
| | |
---------------------------------------------------------------------------------------------
MPE/iX 5.0 Documentation