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 database is difficult to manage?

A - DB2

B - IMS-DB

C - Both A & B

D - None of these

Answer : B

Explanation

IMS predefined tree structure reduces flexibility and it is difficult to manage.

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

A - Packed decimal data type

B - Hexadecimal data type

C - Character data type

D - Half word binary data type

Answer : B

Explanation

TYPE=X specifies Hexadecimal data type for the field which we have declared.

Q 3 - Which function is used to get the unique record from the IMS databse?

A - DLI-GU

B - DLI-GHU

C - DLI-GN

D - DLI-GHN

Answer : A

Explanation

'GU' code is used for the Get Unique function. It works similar to the random read statement in COBOL. It is used to fetch a particular segment occurrence based on the field values.

Q 4 - Which function is used to retrieve segment occurrences in sequence subordinate to an established parent segment?

A - DLI-GNP

B - DLI-ISRT

C - DLI-DLET

D - DLI-REPL

Answer : A

Explanation

'GNP' code is used for Get Next within Parent. This function is used to retrieve segment occurrences in sequence subordinate to an established parent segment.

Q 5 - In PCB which field stores the area for its own internal linkage related to an application program?

A - SEG-LEVEL

B - STATUS-CODE

C - PROC-OPTIONS

D - RESERVED-DLI

Answer : D

Explanation

Reserved DL/I is known as the reserved area of the IMS. It stores four bytes binary data. IMS uses this area for its own internal linkage related to an application program.

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

A - C

B - D

C - F

D - L

Answer : D

Explanation

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

Q 7 - Which of them is a control block in IMS DB?

A - DBD

B - PSB

C - ACB

D - All of these

Answer : D

Explanation

This is self explanatory.

Q 8 - Each occurrence of the root segment, plus all the subordinate segment occurrences make one database record. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 9 - A DL/I records all the changes made by an application program in a file which is known as the log file. 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 issues a replace call without an immediately preceding get hold call?

A - DJ

B - Spaces

C - DA

D - GF

Answer : A

Explanation

This is self explanatory.

ims_db_questions_answers.htm
Advertisements