Which of the following declarations is NOT accepted by the compiler?
A. DCL D (3,3) FLOAT DEC (16) INIT ((*)1);
B. DCL A (3,3) FLOAT DEC (16) INIT ((3)(3)1);
C. DCL B (3,3) FLOAT DEC (16) INIT ((3)(1), (2)(1,1,1));
D. DCL C (3,3) FLOAT DEC (16) INIT ((9)1);
正解:B
質問 2:
Given the following declaration for X:
DCLX FIXED DEC(3) INIT (123);
If Y is declared as CHAR, what should its minimum length be to preserve the value 123 if these
statements are executed?
Y = X;
X =Y;
A. 4
B. 5
C. 3
D. 6
正解:D
質問 3:
Given the following declaration, how many bytes will be occupied by this structure under the default
alignment rules?
DCL 1 A DIM (10),
2 B FIXED BIN(31),
2 C CHAR (1)VAR;
A. 80
B. 79
C. 70
D. 77
正解:B
質問 4:
The lead developer has reviewed the team's progress and determined that the deadline of one week
cannot be met since all of the modules have not been thoroughly tested. Which of the following is the best
action for the lead developer to take?
A. Suggest that management lower the price of the productsince it does not have all therequired
functionality.
B. Ask management for more staff to ensure the testing is completed by the deadline.
C. Tell managementthatthe quality of the software maybe lowerthan expected but itwill be delivered on
time.
D. Tell management that not all functionality can be provided but those modules provided will be of high
quality.
正解:D
質問 5:
Assuming there is no information about the duration or each table update and the programs are running in
a multitasking environment, which of the following options will best minimize the chance for deadlocks?
A. Programs update table A, Table B and Table C in random order.
B. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table
C, Table B and Table A in the specified order.
C. All programs update Table A, Table B and Table C in the same order.
D. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table
B, Table C and Table A in the specified order.
正解:C
質問 6:
What happens to STATIC variables declared in a procedure when the procedure is called recursively?
A. The values of STATIC variables from the previous invocation are saved and are available when the
current invocation ends.
B. The values of STATIC variables from the previous invocation are lost.
C. STATIC variables are allocated and initialized at each new invocation.
D. STATIC variables are allocated only once and can, therefore, be used for communication between
invocations.
正解:D
質問 7:
How much storage in bytes will be allocated for the following declaration?
DCL 1 S(10) ALIGNED,
2 A BIN FIXED(15),
2 B DEC FIXED(3),
2 C CHAP(3);
A. 69
B. 80
C. 79
D. 70
正解:C
質問 8:
What characterizes the relational model with respect to data storage?
A. Data is stored in tables.
B. Data is stored in segments.
C. Data is stored in variable length and format.
D. Data is stored in hierarchies.
正解:A
松尾** -
模擬試験と本番は大体同じでしたので、落ち着いて受けることができました。
そして合格できました。
身に付けるのが大事だとは思いますが、合格だけならこの参考書だけで十分だと思います。