CORRECT TEXT
What happens, if anything, after end of rile has been reached in the following code?
DCL INF FILE RECORD INPUT;
DCL INFIELD CHAR(100) BASED(P);
DCL P PTR;
DCL EOF BIT(1) INIT('0'B);
ON ENDFILE(INF) BEGIN;
EOF = '16;
ALLOC INFIELD;
INFIELD = 'EOF REACHED';
END;
OPEN FILE(INF);
READ FILE(INF) SET(P);
DO WHILE(^EOF);
READ FILE(INF) SET(P);
END;
A. INFIELD will have a value 'EOF REACHED' and the program ends.
B. Nothing because end of file will never be reached.
C. Runtime error because there
SE statement.
D. There will be an infinite
loop.
正解:A
質問 2:
CORRECT TEXT
What must be done, if anything, before calling the program U if it is declared as follows?
DCL U ENTRY OPTIONS (FETCHASLE);
A. ALLOCATE U;
B. Nothing needs to be done.
C. FETCH U;
D. LOAD U;
正解:B
質問 3:
CORRECT TEXT
Which of the following is a restriction using the BYVALUE attribute?
A. It can be specified only for scalar arguments and parameters with a size of four bytes.
B. It can be specified only for scalar arguments and parameters that can be passed in registers.
C. It can be specified only for scalar arguments and parameters whose lengths and sizes are
known at compile time.
D. It can be specified only for aggregate arguments and parameters.
正解:C
質問 4:
CORRECT TEXT
What is the key difference between logical file name and physical dataset name?
A. Physical dataset name is used in the program while logical file name is not.
B. Logical file name is used in the job control while physical dataset is not.
C. Physical dataset name is used in the job control while logical file name is not.
D. Logical file name is used in the program while physical dataset is not.
正解:D
質問 5:
CORRECT TEXT
Which is the impact, if any, of LIKE in the following code?
DCL
1 XY
2 A CHAR(4),
2 B BIN FIXED(31);
DCL 1 YZ LIKE XY;
A. YZ is based on the
structure XY.
B. YZ is exactly the same structure as XY but with its own storage.
C. There is no impact, because LIKE is a syntax error.
D. XY.A is always the same as YZ.
正解:B
質問 6:
CORRECT TEXT
What is the value of B after executing the following code?
DCL A CHAR(10) INIT('12A4BABCAB'); DCL B BIN FIXED(31) INIT(0); B = INDEX(A,'AB');
A. 3
B. 9
C. 6
D. 2
正解:C
質問 7:
CORRECT TEXT
Given the following code, what condition prefixes should be placed before the statement to ensure that the reference is valid?
PUT SKIP LIST( '< !! SUBSTR(X,1 ,N) !!'>');
A. SIZE
B. SUBSCRIPTRANGE
C. STRINGRANGE
D. STRINGSIZE
正解:C
饭岛** -
C2140-839に続き、C9050-041もこの問題集一つで完結しました。C9050-041を3周して分からないことをしっかり理解していく。合格しました。Pass4Testのおかげです。