InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
During Processing Of A Vsam File, Some System Error Occurs And It Is Subsequently Unusable . What Do You Do? |
|
Answer» Run VERIFY. |
|
| 102. |
What Are The Three Levels Of Definition For The Vsam Define? |
|
Answer» They are DEFINE CLUSTER, DATA and INDEX. They are DEFINE CLUSTER, DATA and INDEX. |
|
| 103. |
What Is The Utility Program Closely Associated With Vsam? |
|
Answer» IDCAMS the access method SERVICES UTILITY is ASSOCIATED with VSAM. IDCAMS the access method services utility is associated with VSAM. |
|
| 104. |
What Is The Purpose Of The File Status Clause In The Select Statement? |
|
Answer» FILE STATUS PROVIDE INFORMATION about each I/O OPERATION for the file. File Status provide information about each I/O operation for the file. |
|
| 105. |
What Are Access Modes Available For Ksds Dataset? |
|
Answer» ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC. ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC. |
|
| 106. |
What Is The Organization For A Ksds In Cobol Select Statement? |
|
Answer» The ORGANIZATION for KSDS is INDEXED. The ORGANIZATION for KSDS is INDEXED. |
|
| 107. |
Do Primary Key Values And Alternate Key Values Have To Be Unique? |
|
Answer» PRIMARY KEY values must be UNIQUE and alternate key values need not be unique. Primary key values must be unique and alternate key values need not be unique. |
|
| 108. |
What Is Free Space? |
|
Answer» Free space is RESERVED WITHIN the data component of a KSDS to ACCOMMODATE insertion of new RECORDS. Free space is reserved within the data component of a KSDS to accommodate insertion of new records. |
|
| 109. |
What Is A Path? |
|
Answer» A path is a FILE that allows you to access a file by ALTERNATE INDEX. The path provides an ASSOCIATION between the AIX and the base CLUSTER. A path is a file that allows you to access a file by alternate index. The path provides an association between the AIX and the base cluster. |
|
| 110. |
What Is An Alternate Index? |
|
Answer» An ALTERNATE INDEX is a file that ALLOWS access to a VSAM dataset by a key other than the primary ONE. An alternate index is a file that allows access to a VSAM dataset by a key other than the primary one. |
|
| 111. |
What Is The Catalog? |
|
Answer» The catalog contains the NAMES of all datasets, VSAM and non-VSAM. It is USED to access these datasets. The catalog contains the names of all datasets, VSAM and non-VSAM. It is used to access these datasets. |
|
| 112. |
What Is A Cluster? |
|
Answer» A cluster is the combination of the INDEX, sequence set and data portions of the DATASET. The operating system gives program access to the cluster, that is to all parts of the dataset SIMULTANEOUSLY. A cluster is the combination of the index, sequence set and data portions of the dataset. The operating system gives program access to the cluster, that is to all parts of the dataset simultaneously. |
|
| 113. |
What Is A Control Area? |
|
Answer» A GROUP of CONTROL INTERVALS MAKES up a control AREA. A group of control intervals makes up a control area. |
|
| 114. |
How Are Records Stored In An Esds? |
|
Answer» RECORDS are STORED in the ORDER in which they are INCLUDED in the FILE. Records are stored in the order in which they are included in the file. |
|
| 115. |
What Is A Control Interval? |
|
Answer» A CONTROL interval is the unit of information that VSAM transfers between VIRTUAL and auxiliary STORAGE. A control interval is the unit of information that VSAM transfers between virtual and auxiliary storage. |
|
| 116. |
What Are The Different Types Of Vsam Datasets? |
|
Answer» ENTRY SEQUENCED datasets (ESDS), Key sequenced datasets (KSDS), RELATIVE record dataset (RRDS) and Linear dataset (LDS). Entry sequenced datasets (ESDS), Key sequenced datasets (KSDS), Relative record dataset (RRDS) and Linear dataset (LDS). |
|
| 117. |
How You Will Count The Number Of Rows From A Table Tab? |
|
Answer» SELECT COUNT(*) FROM TAB QUERY is USED to count the NUMBER of rows in a table. SELECT COUNT(*) FROM TAB query is used to count the number of rows in a table. |
|
| 118. |
Suppose We Added A New Column By Using Alter Statement, Where The Column Will Be Added? |
|
Answer» When we use ALTER STATEMENT for ADDING a NEW column then it will be added at the end of the table. When we use ALTER statement for adding a new column then it will be added at the end of the table. |
|
| 119. |
In A Cobol-db2 Program Where Can We Declare A Cursor? |
|
Answer» We can DECLARE a CURSOR either i WORKING Storage SECTION or in PROCEDURE Division also. We can declare a cursor either i Working Storage Section or in Procedure Division also. |
|
| 120. |
When You Will Face Sqlcode -818? |
|
Answer» SQLCODE -818 is a TIMESTAMP MISMATCH of LOAD module and bind timestamp BUILT from DBRM. SQLCODE -818 is a timestamp mismatch of load module and bind timestamp built from DBRM. |
|
| 121. |
When You Will Face Sqlcode -922? |
|
Answer» If a user is not AUTHORIZED to access DB2 objects, he will face SQLCODE -922. If a user is not authorized to access DB2 objects, he will face SQLCODE -922. |
|
| 122. |
When You Will Face Sqlcode -911? |
|
Answer» At the time of deadlock or timeout you will FACE SQLCODE -911. At the time of deadlock or timeout you will face SQLCODE -911. |
|
| 123. |
When You Will Face Sqlcode -803? |
|
Answer» When you will TRY to INSERT or update a RECORD with DUPLICATE key then you will face SQLCODE = -803. When you will try to insert or update a record with duplicate key then you will face SQLCODE = -803. |
|
| 124. |
What Happens In Bind Step In A Db2 Program? |
|
Answer» BIND STEP CONVERTS all the SQL statements into executable form in COBOL-DB2 program. Bind step converts all the SQL statements into executable form in COBOL-DB2 program. |
|
| 125. |
Which Statement Is Used To Revoke The Access From A Database? |
|
Answer» REVOKE STATEMENT is used to take away the PERMISSIONS from a DATABASE. REVOKE statement is used to take away the permissions from a Database. |
|
| 126. |
In Which Statement You Can Define Primary Key? |
|
Answer» Primary KEYS are OPTIONAL and we can define them in CRETAE TABLE & ALTER TABLE STATEMENTS. Primary keys are optional and we can define them in CRETAE TABLE & ALTER TABLE statements. |
|
| 127. |
How Many Primary Keys Can Be Declared On A Table? |
|
Answer» A table can have only ONE PRIMARY KEY. A table can have only one primary key. |
|
| 128. |
Write A Query To Delete A Table From Database. |
|
Answer» DROP TABLE table-name is the SYNTAX to DELETE a table from DATABASE. DROP TABLE table-name is the syntax to delete a table from database. |
|
| 129. |
Write The Query To Delete All The Rows From A Table. |
|
Answer» DELETE * FROM table-name is the SYNTAX to delete all the ROWS from a table. DELETE * FROM table-name is the syntax to delete all the rows from a table. |
|
| 130. |
What Is The Maximum Size Of A Char Data Type In Db2? |
|
Answer» CHAR DATA type maximum SIZE is of 254 BYTES. Char data type maximum size is of 254 bytes. |
|
| 131. |
What Is The Maximum Size Of A Varchar Data Type In Db2? |
|
Answer» VARCHAR DATA TYPE maximum size is of 4046 BYTES. Varchar data type maximum size is of 4046 bytes. |
|
| 132. |
What Does Spufi Stands For? |
|
Answer» SPUFI stands for SQL PROCESSOR Using FILE INPUT SPUFI stands for SQL Processor Using File Input |
|
| 133. |
In Which Format Index In Stored? |
|
Answer» An INDEXED is STORED in B-tree FORMAT. An indexed is stored in B-tree format. |
|
| 134. |
Which Index Must Be Present For Partitioned Table Space? |
|
Answer» A PARTITIONED table SPACE MUST have a CLUSTERED INDEX. A partitioned table space must have a clustered index. |
|
| 135. |
How Many Clustering Index We Can Have For A Single Table? |
|
Answer» We can have only ONE CLUSTERING INDEX for a table. We can have only one clustering index for a table. |
|
| 136. |
In A Cobol-db2 Program All Sql Statements Must Be Coded In Area A. State Whether True Or False? |
|
Answer» This STATEMENT is incorrect as SQL statements MUST be coded in Area B. This statement is incorrect as SQL statements must be coded in Area B. |
|
| 137. |
Which Component Is Used To Processes Sql Statements And Selects The Access Paths? |
|
Answer» DB2 optimizer is USED to SELECT the ACCESS paths & to process the SQL QUERIES. DB2 optimizer is used to select the access paths & to process the SQL queries. |
|
| 138. |
What Is The Physical Storage Length Of Date Data Type? |
|
Answer» DATE data TYPES take 4 bytes and default is 'YYYY-MM-DD' DATE data types take 4 bytes and default is 'YYYY-MM-DD' |
|
| 139. |
What Is The Physical Storage Length Of Timestamp Data Type? |
|
Answer» TIMESTAMP data TYPE takes 10 BYTES and DEFAULT is YYYY-MM-DD:HH:MM:SS-NNNNNN TIMESTAMP data type takes 10 bytes and default is YYYY-MM-DD:HH:MM:SS-NNNNNN |
|
| 140. |
Which Field In Sqlca Shows The Number Of Updated Rows After Update Statement? |
|
Answer» Check the VALUE of SQLERRD to KNOW how many ROWS GOT updated after an update STATEMENT. Check the value of SQLERRD to know how many rows got updated after an update statement. |
|
| 141. |
In Which Step We Specify The Isolation Level? |
|
Answer» In BIND STEP we SPECIFY the ISOLATION LEVEL. In Bind step we specify the isolation level. |
|
| 142. |
On Which Level We Can Apply The Locks? |
|
Answer» LOCKING can be APPLIED on EITHER of these − PAGE, table and table SPACE. Locking can be applied on either of these − Page, table and table space. |
|
| 143. |
Which Component Handles Db2 Startup And Shutdown? |
|
Answer» System SERVICES component HANDLES DB2 startup and SHUTDOWN. System services component handles DB2 startup and shutdown. |
|
| 144. |
Which Component Is Responsible For Execution Of Sql Statements? |
|
Answer» DATABASE SERVICES component is responsible for execution of SQL STATEMENTS and it MANAGES buffer POOL also.
Database services component is responsible for execution of SQL statements and it manages buffer pool also.
|
|
| 145. |
Which Component Checks Db2 Deadlocks? |
|
Answer» LOCKING services are provided by Locking services component which is KNOWN as Internal Resource LOCK Manager (IRLM) and manages concurrency issues and dead locks. Locking services are provided by Locking services component which is known as Internal Resource Lock Manager (IRLM) and manages concurrency issues and dead locks. |
|
| 146. |
What Is The Picture Clause Of Null Indicator Variable? |
|
Answer» S9(4) COMP is the PICTURE clause of a null INDICATOR. S9(4) COMP is the picture clause of a null indicator. |
|