- IMS DB - Home
- IMS DB - Overview
- IMS DB - Structure
- IMS DB - DL/I Terminology
- IMS DB - DL/I Processing
- IMS DB - Control Blocks
- IMS DB - Programming
- IMS DB - Cobol Basics
- IMS DB - DL/I Functions
- IMS DB - PCB Mask
- IMS DB - SSA
- IMS DB - Data Retrieval
- IMS DB - Data Manipulation
- IMS DB - Secondary Indexing
- IMS DB - Logical Database
- IMS DB - Recovery
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.
Q 1 - How many different types of segment can be there in a DLI database?
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?
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?
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?
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?
Answer : B
Explanation
After the field name, in the 18th and 19th positions, we specify two-character relational operator code.
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.
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?
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?
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?
Answer : A
Explanation
This is self explanatory.