| Exam Code/Number: | C9050-041Join the discussion |
| Exam Name: | Programming with IBM Enterprise PL/I |
| Certification: | IBM |
| Question Number: | 146 |
| Publish Date: | May 30, 2026 |
|
Rating
100%
|
|
CORRECT TEXT
Given the following code, which code is NOT equivalent?
DCL A CHAR (1);
...
SELECT (A);
WHEN ('A') PUT ('1')
WHEN ('B') PUT ('2')
WHEN ('C') PUT ('3');
OTHER;
END;
CORRECT TEXT
What code needs to be executed, if any, before the variable A can be successfully accessed?
DCL X PTR;
DCL B CHAR(100) INIT('');
DCL A CHAR(100) BASED(X);
CORRECT TEXT
Given the following declaration, the compiler will issue the message "The variable RX is declared without any data attributes." What possible problem is this message reporting?
DCL RX, RY FIXED BIN;
CORRECT TEXT
Given the following code, what will be the output of the preprocessor?
%DCL FLAG CHAR;
%FIag = 'TEST ,OPT';
%DCL FUN ENTRY; FUN(FIag)
%FUN: PROC (S);
DCL S CHAR;
IF INDEX(S, 'TEST') > 0 THEN
ANSWER ('put ("Test modus entered");') SKIP;
IF INDEX(S, 'OPT') > 0 THEN ANSWER ('put ("Optimize modus entered");') SKIP;
%END FUN;
CORRECT TEXT
Which of the following statements, if any, needs to be executed before the variable A can be used?
DCL A CHAR(5) CONTROLLED;