Google News
logo
IMS DB - Quiz(MCQ)

IMS DB : IMS DB (Information Management System Database) is a hierarchical database management system developed by IBM. It is widely used in large organizations for storing and retrieving data. IMS DB offers a variety of features such as high availability, reliability, and scalability.

A)
Inter-management system
B)
Information management system
C)
International message system
D)
None of the above

Correct Answer :   Information management system


Explanation : IMS DB (Information Management System Database) is a hierarchical database management system developed by IBM.

A)
Relational database
B)
Network database
C)
Hierarchical database
D)
Object-oriented database

Correct Answer :   Relational database


Explanation : IMS DB is a hierarchical database management system, which means that it stores data in a tree-like structure with parent-child relationships. It also supports network databases, which are similar to hierarchical databases but allow for more complex relationships. However, IMS DB does not support relational databases, which store data in tables with columns and rows.

A)
Database Descriptor Generator
B)
Data Description Generator
C)
Database Description Generator
D)
None of the above

Correct Answer :   Database Descriptor Generator


Explanation : DBDGEN stands for Database Descriptor Generator.

A)
DLI-GN
B)
DLI-GU
C)
DLI-GHU
D)
DLI-GHN

Correct Answer :   DLI-GHN


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.

A)
Apache
B)
Google
C)
IBM
D)
Microsoft

Correct Answer :   IBM


Explanation : IMS was developed by IBM in the year 1966.

A)
High-level
B)
Low-level
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   High-level


Explanation : IMS database is used by high-level programming languages like COBOL.

A)
To provide a way for IMS DB to interact with other databases
B)
To provide a way for IMS DB to interact with the operating system
C)
To provide a way for applications to interact with the IMS DB database
D)
None of the above

Correct Answer :   To provide a way for applications to interact with the IMS DB database


Explanation : The DL/I interface is a set of programming interfaces that allow applications to access and manipulate data stored in an IMS DB database. It provides a way for applications to issue commands and queries to the database, and to receive data in response.

A)
Transaction manager
B)
Message queue manager
C)
Application program
D)
Database management system

Correct Answer :   Message queue manager


Explanation : While message queue managers are often used in conjunction with IMS DB systems, they are not a component of the IMS DB system itself. The three main components of an IMS DB system are the database management system, the transaction manager, and the application program.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2


Explanation : There are two checkpoint approaches :

* Basic Checkpointing
* Symbolic Checkpointing

A)
CP
B)
CKP
C)
CHEPOI
D)
CHKP

Correct Answer :   CHKP


Explanation : A checkpoint can be established using a checkpoint call (CHKP).

A)
Hierarchical
B)
Relational
C)
Non-relational
D)
Object-oriented

Correct Answer :   Hierarchical


Explanation : The IMS database is a hierarchical database in which information is stored at various levels with each entity depending on entities at higher levels.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : IMS database management system protects data's integrity and enables quick recovery of it by structuring it in a way that makes it easy to find.

13 .
In IMS, the task of the ____ is to operate as a platform for communication between the application programs and the database.
A)
Segment manager
B)
Database manager
C)
Operation manager
D)
Transaction manager

Correct Answer :   Transaction manager


Explaination : The task of the transaction manager is to operate as a platform for communication between the application programs and the database.

A)
Segment manager
B)
Database manager
C)
Transaction manager
D)
Operation manager

Correct Answer :   Transaction manager


Explanation : To save and retrieve data from the database, a transaction manager interacts with the end user.

15 .
A ____ is a stage where the database changes done by the application program are considered complete and accurate.
A)
Milestone
B)
Checkpoint
C)
Snap shot
D)
Breakpoint

Correct Answer :   Checkpoint


Explaination : A checkpoint is a stage where the database changes done by the application program are considered complete and accurate.

A)
Forward Recovery
B)
Backward Recovery
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Backward Recovery


Explanation : Backward recovery is also known as backout recovery.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : The two approaches to database recovery are :

* Forward Recovery
* Backward Recovery

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : A logical child segment consists of the following two parts:

* Destination Parent Concatenated Key (DPCK)
* Logical child user data

A)
A record in a table
B)
A node in a tree-like structure
C)
Both (A) and (B)
D)
A group of related data items

Correct Answer :   A group of related data items


Explanation : In an IMS DB database, data is stored in a hierarchical structure with segments as the nodes. A segment can contain one or more data items, and may have child segments linked to it. The hierarchical structure allows for efficient access to data, especially for applications that access data in a particular order.

A)
A program storage block
B)
A program scheduling block
C)
A program specification block
D)
None of the above

Correct Answer :   A program specification block


Explanation : A PSB (program specification block) is a component of an IMS DB system that defines the interface between an application program and the IMS DB database. It specifies the database segments and fields that the program can access, as well as any processing options or rules.

A)
A program configuration block
B)
A program control block
C)
A program communication block
D)
None of the above

Correct Answer :   A program control block


Explanation : A PCB (program control block) is a component of an IMS DB system that represents a particular database segment or group of segments that an application program can access. It contains information about the segment, such as the name, location, and processing options.

A)
A field
B)
A segment
C)
A collection of related segments
D)
None of the above

Correct Answer :   A collection of related segments


Explanation : In an IMS DB system, a database record is a collection of related segments that are linked together in a hierarchical structure. The record may contain one or more segments, depending on the complexity of the data being stored. The segments in a record may have parent-child relationships, or they may be linked in other ways, such as through pointers.

A)
SEG-LEVEL
B)
STATUS-CODE
C)
PROC-OPTIONS
D)
RESERVED-DLI

Correct Answer :   SEG-LEVEL


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.

A)
Qualified SSA
B)
Unqualified SSA
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Qualified SSA


Explanation : A Qualified SSA provides the segment type with the specific database occurrence of a segment.

A)
U
B)
Q
C)
P
D)
N

Correct Answer :   N


Explanation : To use command codes, specify an asterisk in the 9th position of the SSA and for Path Call Ignore we code N at 10th position.

26 .
Which of the following comprises application programs that grant access to the data stored in the database?
A)
Segment
B)
Segment Type
C)
Transaction manager
D)
Data Language Interface DL/I

Correct Answer :   Data Language Interface DL/I


Explaination : Data Language Interface DL/I comprises of application programs that grant access to the data stored in the database.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : IMS can be utilized to run programs written in several languages, including Java and XML.

A)
Section
B)
Segment
C)
Relationship
D)
All of the above

Correct Answer :   Segment


Explanation : A segment is generated by combining groups of related data.

A)
Data
B)
Field
C)
Value
D)
Variable

Correct Answer :   Field


Explanation : Each segment of data contains a field. Roll Number, Name, and Course, for instance, are all separate fields in the student segment.

A)
BMP program
B)
DL/I program
C)
BMP transaction program
D)
None of the above

Correct Answer :   BMP transaction program


Explanation : While BMP (batch message processing) programs and DL/I (data language/interface) programs are types of programs that can be used in an IMS DB system, BMP transaction programs are not a type of program. BMP programs are used to process large batches of data, while DL/I programs are used to access and manipulate data in the IMS DB database.

A)
HIRAM data set
B)
HDAM data set
C)
HIDAM data set
D)
HISAM data set

Correct Answer :   HIRAM data set


Explanation : While HDAM (hierarchical direct access method), HIDAM (hierarchical indexed direct access method), and HISAM (hierarchical indexed sequential access method) are all types of IMS DB data sets, HIRAM data sets do not exist. Each type of data set has its own characteristics and is used for different types of data and applications.

A)
ADD command
B)
READ command
C)
DELETE command
D)
WRITE command

Correct Answer :   WRITE command


Explanation : While the READ, DELETE, and ADD commands are all commands that can be used to manipulate data in an IMS DB database, there is no WRITE command. Instead, the UPDATE command is used to modify existing data in a database record.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : A concatenated segment consists of the following two parts −

* Logical child segment
* Destination parent segment

A)
Destroyed Parent Concatenated Key
B)
Destination Parent Concatenated Key
C)
Deprecated Parent Concatenated Key
D)
Degenerated Parent Concatenated Key

Correct Answer :   Destination Parent Concatenated Key


Explanation : DPCK stands for Destination Parent Concatenated Key.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   3


Explanation : There are three different kinds of logical relationships: unidirectional, bidirectional, and virtual.

A)
Only 1
B)
More than 1
C)
Any Number
D)
None of the above

Correct Answer :   Only 1


Explanation : Each segment type can only have one parent, according to a rule in the IMS database.

A)
555
B)
755
C)
899
D)
1000

Correct Answer :   1000


Explanation : Maximum number of fields per database are 1000.

A)
Prefix Element
B)
Data Element
C)
Can Not Say
D)
None of the above

Correct Answer :   Data Element


Explanation : The data element holds the key value from the segment in the index-built database.

A)
15
B)
20
C)
25
D)
35

Correct Answer :   15


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

A)
DLI-GU
B)
DLI-GN
C)
DLI-GHU
D)
DLI-GHN

Correct Answer :   DLI-GN


Explanation : 'GN' code is used for the Get Next function. It works similar to the read next statement in COBOL. It is used to fetch segment occurrences in a sequence.

A)
SEG-LEVEL
B)
STATUS-CODE
C)
RESERVED-DLI
D)
PROC-OPTIONS

Correct Answer :   PROC-OPTIONS


Explanation : Proc options are known as processing options which contain four-character data fields. A Processing Option field indicates what kind of processing the program is authorized to do on the database.

A)
KEY-FB-AREA
B)
SEG-NAME
C)
LENGTH-FB-KEY
D)
NUMB-SENS-SEGS

Correct Answer :   KEY-FB-AREA


Explanation : Key feedback area varies in length from one PCB to another. It contains the longest possible concatenated key that can be used with the program’s view of the database.

A)
Two fields
B)
Two variables
C)
Two or more segments
D)
Two or more category

Correct Answer :   Two or more segments


Explanation : Hierarchical databases work on the relationships between two or more segments.

A)
First segment
B)
Root segment
C)
Core segment
D)
Main segment

Correct Answer :   Root segment


Explanation : The root segment is the segment that sits at the top of the hierarchy.

A)
Root segment
B)
Child segment
C)
Main segment
D)
Parent segment

Correct Answer :   Root segment


Explanation : All dependent segments can only be accessed through the root segment.

A)
Core
B)
Left
C)
Child
D)
Parent

Correct Answer :   Child


Explanation : A segment is considered a child segment if it has another segment right above it in the hierarchy.

47 .
Two or more segment occurrences of a particular segment type under a single parent segment are called ____ segments.
A)
Pair segment
B)
Duo segment
C)
Clone segment
D)
Twin segment

Correct Answer :   Twin segment


Explaination : The term "twin segments" refers to two or more occurrences of a specific segment type within a single parent segment.

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   False


Explanation : Sibling segments are the segments of different types and the same parent.

A)
Prefix Element
B)
Data Element
C)
Can Not Say
D)
None of the above

Correct Answer :   Prefix Element


Explanation : A pointer to the Index Target Segment is present in the prefix part of the index pointer segment.

A)
5
B)
4
C)
3
D)
2

Correct Answer :   2


Explanation : The index pointer segment consists of two parts :

* Prefix Element
* Data Element

A)
Qualified
B)
Unqualified
C)
Can Not Say
D)
None of the above

Correct Answer :   Qualified


Explanation : With a REPL call, we are unable to employ a qualified SSA.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : With a REPL call, we are unable to modify a segment's length.

A)
To store backup copies of database records
B)
To provide additional security for the database
C)
To improve the performance of database searches
D)
None of the above

Correct Answer :   To improve the performance of database searches


Explanation : A secondary index is a data structure that is created to improve the performance of database searches by providing an alternative access path to the data. It is based on one or more fields in the database record, and is used to quickly locate records that match a particular search criteria.

A)
A request by the database management system to the operating system for resources
B)
A request by an application program to access or manipulate data in the database
C)
A request by the operating system to the database management system for information
D)
None of the above

Correct Answer :   A request by an application program to access or manipulate data in the database


Explanation : A DLI (Data Language Interface) call is a request made by an application program to access or manipulate data in an IMS DB database. The call is used to request data from the database, update existing data, or delete data from the database. The DLI interface provides a standard set of calls that can be used by application programs to interact with the database.

A)
To describe the format of database records
B)
To specify the database segments and fields that an application program accesses
C)
To provide a communication link between an application program and the database management system
D)
None of the above

Correct Answer :   To provide a communication link between an application program and the database management system


Explanation : The PCB (Program Communication Block) is used in an IMS DB system to provide a communication link between an application program and the database management system. It contains information about the location of the database and the type of access that is required, as well as information about the program’s communication requirements.

56 .
What error code you will get in GU call if DL/I could not find a segment that met the criteria specified in the call?
A)
GE
B)
GF
C)
ZERO
D)
SPACE

Correct Answer :   GE


Explaination : You will get GE value in STATUS-CODE if DL/I could not find a segment that met the criteria specified in the call.

A)
Left to right
B)
Front to back
C)
Top to bottom
D)
All of the above

Correct Answer :   All of the above


Explanation : All these are the approaches which are used for retrieval of data.

A)
Half word binary data type
B)
Character data type
C)
Hexadecimal data type
D)
Packed decimal data type

Correct Answer :   Half word binary data type


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

A)
SEG-LEVEL
B)
STATUS-CODE
C)
PROC-OPTIONS
D)
RESERVED-DLI

Correct Answer :   STATUS-CODE


Explanation : Status code field contains two bytes of character data. Status code contains the DL/I status code. Spaces are moved to the status code field when DL/I completes the processing of calls successfully.

A)
3
B)
4
C)
5
D)
6

Correct Answer :   3


Explanation : There are three types of Get Hold call that we specify in a DL/I call :

* Get Hold Unique (GHU)
* Get Hold Next (GHN)
* Get Hold Next within Parent (GHNP)

A)
4
B)
3
C)
2
D)
1

Correct Answer :   2


Explanation : Multiple processing can be done in two ways :

* Multiple PCBs
* Multiple Positioning

62 .
____ is the term used to describe when a program occupies more than one position in the IMS database.
A)
Dual processing
B)
Multiple processing
C)
Parallel processing
D)
None of the above

Correct Answer :   Multiple processing


Explaination : Multiple processing is the term used to describe when a program occupies more than one position in the IMS database.

A)
Qualified
B)
Unqualified
C)
Can Not Say
D)
None of the above

Correct Answer :   Qualified


Explanation : V command code is ignored when used with a qualified SSA.

A)
To describe the format of database records
B)
To specify the database segments and fields that an application program accesses
C)
To provide a communication link between an application program and the database management system
D)
None of the above

Correct Answer :   To describe the format of database records


Explanation : A DBD (Database Descriptor) is used in an IMS DB system to describe the format of database records. It contains information about the structure of the data, including the names and types of fields, as well as information about the relationships between different segments in the database.

A)
To provide additional security for the database
B)
To store backup copies of the database
C)
To provide a record of system activity for recovery purposes
D)
None of the above

Correct Answer :   To store backup copies of the database


Explanation : The LOG (Logging) data set is used in an IMS DB system to store backup copies of the database. It is used to ensure that changes made to the database are not lost in the event of a system failure, and can be used to restore the database to a previous state if necessary.

A)
An index that is used to improve the performance of database searches
B)
An index that is created automatically by the database management system
C)
An index that is created by the application program to improve access to the database
D)
None of the above

Correct Answer :   An index that is created by the application program to improve access to the database


Explanation : A secondary index in an IMS DB system is an index that is created by the application program to improve access to the database. It provides a way for the program to locate specific records in the database more quickly and efficiently than by searching through the entire database.

A)
DLI
B)
PCB
C)
SSA
D)
SSAQB

Correct Answer :   SSAQB


Explanation : While DLI (Data Language Interface), SSA (Segment Search Argument), and PCB (Program Communication Block) are all valid IMS DB command codes, SSAQB is not a valid code.

A)
To specify the format of database records
B)
To specify the search criteria for a database query
C)
To provide a communication link between an application program and the database management system
D)
None of the above

Correct Answer :   To specify the search criteria for a database query


Explanation : The SSA (Segment Search Argument) is used in an IMS DB system to specify the search criteria for a database query. It contains information about the segments and fields that should be searched, as well as the search criteria that should be used.

A)
To retrieve a specific record from the database
B)
To update a record in the database
C)
To retrieve the next record that matches a search criteria
D)
None of the above

Correct Answer :   To retrieve a specific record from the database


Explanation : The GU (Get Unique) command is used in an IMS DB system to retrieve a specific record from the database. It is used when the application program knows the exact key value of the record that it wants to retrieve.

A)
IMS Control Blocks
B)
IMS process manager
C)
IMS transaction manager
D)
No

Correct Answer :   IMS Control Blocks


Explanation : IMS Control Blocks specify how the IMS database is organized and how an application may access it.

A)
Access Control Block (ACB)
B)
Program Specification Block (PSB)
C)
Database Descriptor (DBD)
D)
None of the above

Correct Answer :   Database Descriptor (DBD)


Explanation : Once all the segments have been established, DBD defines the whole physical structure of the database.

A)
Database Validator
B)
Database Administrator
C)
Database Generator
D)
None of the above

Correct Answer :   Database Administrator


Explanation : The Database Administrator is responsible for creating control blocks.

A)
ACB
B)
DBD
C)
DBGEN
D)
PCB

Correct Answer :   PCB


Explanation : PSB consists of one or more control blocks called Program Communication Blocks (PCBs).

A)
Access Control Blocks Generator
B)
Access common block generator
C)
Access communication block generator
D)
None of the above

Correct Answer :   Access Control Blocks Generator


Explanation : ACBGEN is known as Access Control Blocks Generator.

A)
ACBGEN
B)
PCBGEN
C)
DBDGEN
D)
None of the above

Correct Answer :   ACBGEN


Explanation : ACBGEN is used to generate ACBs.

A)
Call Statement
B)
Entry Statement
C)
Goback Statement
D)
None of the above

Correct Answer :   Goback Statement


Explanation : GOBACK is coded at the end of the application program.

A)
Get new function
B)
Get next function
C)
Get number function
D)
All of the above

Correct Answer :   Get next function


Explanation : 'GN' code is used for the Get Next function.

A)
Qualified
B)
Unqualified
C)
Can Not Say
D)
None of the above

Correct Answer :   Qualified


Explanation : U command code is ignored if it is used with a qualified SSA.

A)
A
B)
C
C)
K
D)
P

Correct Answer :   C


Explanation : Concatenating keys is done using C command code.

A)
A
B)
D
C)
P
D)
X

Correct Answer :   D


Explanation : The D command code can be utilized to get multiple segment occurrences with only one call.

A)
To update a record in the database
B)
To retrieve a specific record from the database
C)
To retrieve the next record that matches a search criteria
D)
None of the above

Correct Answer :   To retrieve the next record that matches a search criteria


Explanation : The GNP (Get Next with Positioning) command is used in an IMS DB system to retrieve the next record that matches a search criteria. It is similar to the GN (Get Next) command, but also provides a way for the application program to specify the position in the database where the search should start.

A)
A segment that has no parent segment
B)
A segment that contains only one occurrence of a particular record type
C)
A segment that is descended from another segment through a parent-child relationship
D)
None of the above

Correct Answer :   A segment that is descended from another segment through a parent-child relationship


Explanation : In an IMS DB system, a child segment is a segment that is descended from another segment through a parent-child relationship. It contains information that is related to the information in the parent segment, and may have one or more descendant segments of its own.

A)
To insert a new record into the database
B)
To update a record in the database
C)
To retrieve a specific record from the database
D)
None of the above

Correct Answer :   To insert a new record into the database


Explanation : The ISRT (Insert) command is used in an IMS DB system to insert a new record into the database. It is used when the application program needs to add new information to the database.

A)
To insert a new record into the database
B)
To update a record in the database
C)
To retrieve a specific record from the database
D)
None of the above

Correct Answer :   To update a record in the database


Explanation : The REPL (Replace) command is used in an IMS DB system to update a record in the database. It is used when the application program needs to change information that is already in the database.

A)
To delete a record from the database
B)
To insert a new record into the database
C)
To retrieve a specific record from the database
D)
None of the above

Correct Answer :   To delete a record from the database


Explanation : The DLET (Delete) command is used in an IMS DB system to delete a record from the database. It is used when the application program no longer needs the information in the record and wants to remove it from the database.

A)
A tool used to generate a database schema
B)
A tool used to generate a program from a PSB
C)
A tool used to generate a PSB from a program
D)
None of the above

Correct Answer :   A tool used to generate a PSB from a program


Explanation : In an IMS DB system, a PSBGEN is a tool used to generate a PSB (Program Specification Block) from a program. It reads the program code and generates a PSB that specifies which database segments the program needs to access and how they should be accessed.

A)
1
B)
100
C)
255
D)
No Limit

Correct Answer :   No Limit


Explanation : There is no limit of PCBs allowed in a PSB.

A)
Batch Manager Processing
B)
Batch Message Processing
C)
Batch Message Process
D)
None of the above

Correct Answer :   Batch Manager Processing


Explanation : BMP stands for Batch Message Processing.

A)
INSERT
B)
UPDATE
C)
DELETE
D)
All of the above

Correct Answer :   All of the above


Explanation : The following Update functions are used in IMS DB :

* Insert
* Delete
* Replace

A)
INS
B)
ISRT
C)
INSRT
D)
INSERT

Correct Answer :   ISRT


Explanation : ISRT code is used for the Insert function.

A)
ADD
B)
ISRT
C)
CREATE
D)
APPEND

Correct Answer :   ISRT


Explanation : ISRT function is used to add a new segment to the database.

A)
DEL
B)
DLETE
C)
DLET
D)
DELETE

Correct Answer :   DLET


Explanation : 'DLET' code is used for the Delete function.

A)
DLET
B)
DEL
C)
ERASE
D)
REMOVE

Correct Answer :   DLET


Explanation : 'DLET' code is used for the Delete function. It is used to remove a segment from an IMS DL/I database.

A)
SHIFT
B)
MOVE
C)
REPLACE
D)
REPL

Correct Answer :   REPL


Explanation : REPL is used to replace a segment in the IMS DL/I database.

A)
XRST
B)
START
C)
SRTART
D)
RESTART

Correct Answer :   XRST


Explanation : XRST code is used for the Restart function

A)
Space
B)
Left parenthesis
C)
Right parenthesis
D)
None of the above

Correct Answer :   Space


Explanation : The last byte of unqualified SSA always contains space.

A)
2 bytes
B)
9 bytes
C)
10 bytes
D)
15 bytes

Correct Answer :   9 bytes


Explanation : The length of a standard, unqualified SSA is 9 bytes.

A)
White spaces
B)
The segment category which is being used for processing
C)
The segment name which is being used for processing.
D)
None of the above

Correct Answer :   The segment name which is being used for processing.


Explanation : The first 8 bytes of unqualified SSA holds the segment name which is being used for processing.

A)
A file that contains the database records
B)
A file that contains the structure of the database
C)
A program that is used to retrieve information from the database
D)
None of the above

Correct Answer :   A file that contains the database records


Explanation : In an IMS DB system, a VSAM (Virtual Storage Access Method) dataset is a file that contains the database records. It is used to store the data for the database.

A)
WRITE
B)
LANG
C)
PSBNAME
D)
LANGUAGE

Correct Answer :   LANG


Explanation : The LANG parameter specifies the language in which the application program is written, e.g., COBOL.