Leads4pass > IBM > IBM Certified Application Developer > C6030-042 > C6030-042 Online Practice Questions and Answers

C6030-042 Online Practice Questions and Answers

Questions 4

Which of the following is a typical deadlock situation?

Situation 1:

Transaction A waiting for resource_2 and Transaction B waiting for resource_1 while resource_1 is held by

Transaction C and resource_2 is held by

Transaction B

Situation 2:

Transaction A waiting for resource_1 and Transaction B waiting for resource_2 while resource_1 is held by

Transaction B and resource_2 is held by

Transaction C

Situation 3:

Transaction A Waiting for resource_2, Transaction B waiting for resource_3, Transaction C waiting for

resource_1 ,while resource_1 ,resource_2 and resource_3 are held by Transactions A, B and C

respectively.

Situation 4:

Transaction B waiting for resource_1 and Transaction C waiting for resource 2 while resource_1 is held by

Transaction C and resource_2 is held by

Transaction A

A. Situation 1

B. Situation 2

C. Situation 3

D. Situation 4

Buy Now
Questions 5

What does it mean that an interface is synchronous?

A. Requesting program must wait for a reply

B. Requesting program always receives immediate response

C. Requests are processed randomly

D. Requests are processed in parallel

Buy Now
Questions 6

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. 70

B. 79

C. 80

D. 69

Buy Now
Questions 7

Which of the following is the most appropriate way of avoiding a recursive deadlock?

A. Aborting the Transaction

B. Setting a time limit on the runtime of the Transaction

C. Partitioning the relevant Database

D. Changing the program

Buy Now
Questions 8

Which of the following characters may NOT be translated correctly when moving between code pages, character sets and platforms?

A. A

B. +

C. 9

D. ¦è

Buy Now
Questions 9

Given the following code, which condition would be raised first (if ENABLED)?

DCL A(50000) CHAR (8);

DCL I BIN FIXED (31);

DCL J BIN FIXED (15);

DCI = 1 TO 100_000;

J = I;

A(J) = I;

END;

A. SIZE

B. FIXEDOVERFLOW

C. SUBSCRIPTRANGE

D. CONVERSION

Buy Now
Questions 10

A lead developer reviewing code from one of the programmers found the following code. What should the programmer be told about BY NAME assignments?

DCLl STR1, 3FB15 FIXED BIN (15), 3 CH10 CHAR (10), 3 NAME CHAR (25). 3 ADDR CHAR (30), 3 FB31 FIXED BIN (31); DCL 1 STR2, 3 FB31 FIXED BIN (31), 3 FB31B FIXED BIN (31), 3 NAME CHAR (20), 3 ADDR CHAR (30), 3 CH20 CHAR (20); STR2 = STR1, BY NAME;

A. There is nothing wrong with using BY NAME assignments in this situation.

B. They are incorrect and should be replaced by individual assignments.

C. They can have inadvertent side effects and the code should be analwed.

D. They do not work in this case and the code should be replaced by individual assignments.

Buy Now
Questions 11

What will be printed, if anything, to SYSPRINT after executing the following code? DCL A FIXED

CONTROLLED;

DCL P PTR;

DCL X FIXED BASED(P);

ALLOC A;

A = 1;

ALLOC A;

A = 2;

P = ADDR(A);

ALLOC A;

A = 3;

P = ADDR(A);

ALLOC A;

A = 4;

FREE A;

FREE A;

PUT DATA(X);

A. 2

B. 3

C. 4

D. The results are undefined.

Buy Now
Questions 12

Given the following declaration, which code does NOT initialize C completely?

DCL 1 A,

2 B DIM (0:9),

3 C DIM (5) FIXED BIN (31),

3 D CHAR (100) VAR;

A. 3 C DIM (5) FIXED BIN (31) INIT ((50)1),

B. 3 C DIM (5) FIXED BIN (31) INIT ((5)1,(*)2),

C. 3 C DIM (5) FIXED BIN (31) INIT ((HSOUND(C,1))( 0)),

D. 3 C DIM (5) FIXED BIN (31) INIT ((*)1),

Buy Now
Questions 13

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. 3

B. 4

C. 5

D. 6

Buy Now
Exam Code: C6030-042
Exam Name: Developing with IBM Enterprise PL/I
Last Update: Dec 13, 2024
Questions: 145
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99