IMS DB Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to IMS DB Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - Which segment lies at the top of the hierarchy?

A - Twin Segment

B - Child Segment

C - Root Segment

D - None of these

Answer : C

Explanation

The segment that lies at the top of the hierarchy is called the root segment. The root segment is the only segment through which all dependent segments are accessed.

Q 2 - For FIELD macro statement in DBDGEN, what does TYPE=H parameter specifies?

A - Packed decimal data type

B - Hexadecimal data type

C - Character data type

D - Half word binary data type

Answer : D

Explanation

TYPE = H specifies Half word binary data type for the field which we have declared.

Q 3 - Which function is used to get a unique record for update purpose?

A - DLI-GU

B - DLI-GHU

C - DLI-GN

D - DLI-GHN

Answer : B

Explanation

'GHU' code is used for Get Hold Unique. Hold function specifies that we are going to update the segment after retrieval. The Get Hold Unique function corresponds to the Get Unique call.

Q 4 - Which function is used in CICS programs in the IMS DL/I database?

A - DLI-CHKP

B - DLI-XRST

C - DLI-PCB

D - DLI-ISRT

Answer : C

Explanation

PCB function is used in CICS programs in the IMS DL/I database.

Q 5 - In PCB which field is used to store the name of segment after each DLI call?

A - LENGTH-FB-KEY

B - NUMB-SENS-SEGS

C - KEY-FB-AREA

D - SEG-NAME

Answer : D

Explanation

SEG Name is known as segment name feedback area. It contains 8 bytes of character data. The name of the segment is stored in this field after each DL/I call.

Q 6 - What command code we used to code for First Occurrence?

A - C

B - D

C - F

D - L

Answer : C

Explanation

To use command codes, specify an asterisk in the 9th position of the SSA and for First Occurrence we code F at 10th position.

Q 7 - The function of transaction manager is to provide a communication platform between the database and the application programs. IMS acts as a transaction manager. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - All segments are known as dependent segments. State whether true or false?

A - False

B - True

Answer : A

Explanation

This statement is incorrect as all segments other than the root segment are known as dependent segments.

Q 9 - Any field can be used as a secondary key. It need not be the segments sequence field. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 10 - What error code you will get when program makes a change to the segment’s key field before issuing the REPL or DLET call?

A - DJ

B - Spaces

C - DA

D - GF

Answer : C

Explanation

This is self explanatory.

ims_db_questions_answers.htm
Advertisements