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 - How many different types of segment can be there in a DLI database?

A - 15

B - 255

C - 355

D - 155

Answer : B

Explanation

A DL/I database can have 255 different segment types and 15 levels of hierarchy

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

A - Packed decimal data type

B - Hexadecimal data type

C - Character data type

D - Half word binary data type

Answer : A

Explanation

TYPE=P specifies Packed decimal data type for the field which we have declared.

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

A - DLI-GU

B - DLI-GHU

C - DLI-GN

D - DLI-GHN

Answer : D

Explanation

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

Q 4 - In PCB which field is used to store the level of the segment that was processed?

A - SEG-LEVEL

B - STATUS-CODE

C - PROC-OPTIONS

D - RESERVED-DLI

Answer : A

Explanation

Segment level is known as Segment Hierarchy Level Indicator. It contains character data and is two bytes long. A segment level field stores the level of the segment that was processed. When a segment is retrieved successfully, the level number of the retrieved segment is stored here.

Q 5 - At what position we specify two-character relational operator code in a Qualified SSA?

A - 18th position

B - 18th & 19th position

C - 19th position

D - 19th and 20th position

Answer : B

Explanation

After the field name, in the 18th and 19th positions, we specify two-character relational operator code.

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 - What are the maximum number of fields in a database?

A - 1000

B - 555

C - 755

D - 899

Answer : A

Explanation

Maximum number of fields per database are 1000.

Q 8 - Application programs have their own PSB and it is common for application programs that have similar database processing requirements to share a PSB. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 9 - Logical twins are the occurrences of a logical child segment type that are all subordinate to a single occurrence of the logical parent segment type. 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 you try to add a segment occurrence that is already present in the database?

A - II

B - Spaces

C - DA

D - GF

Answer : A

Explanation

This is self explanatory.

ims_db_questions_answers.htm
Advertisements