Practice Question and Answer
8Q: What is meant by index cardinality? 1851 05b5cc7d9e4d2b41977751578
5b5cc7d9e4d2b41977751578- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
The number of distinct values for a column is called index cardinality. DB2's RUNSTATS utility analyzes column value redundancy to determine whether to use a tablespace or index scan to search for data.
Q: Why SELECT * is not preferred in embedded SQL programs? 2131 05b5cc7d9e4d2b41977751577
5b5cc7d9e4d2b41977751577- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
- If the table structure is changed ( a field is added ), the program will have to be modified. - Program might retrieve the columns which it might not use, leading on I/O over head. - The chance of an index only scan is lost.
Q: When does the SQL statement gets executed when you use cursor in the application programming? 918 05b5cc7d9e4d2b41977751576
5b5cc7d9e4d2b41977751576- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
SQL statement gets executed when we open cursor
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.
Q: In terms of DB2 indexing, what is the root page? 988 05b5cc7d9e4d2b41977751574
5b5cc7d9e4d2b41977751574- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
The simplest DB2 index is the B-tree and the B-tree's top page is called the root page. The root page entries represent the upper range limits of the index and are referenced first in a search.
Q: In a DB2-CICS program which acts as co-ordinator and which is the participant? 1819 05b5cc7d9e4d2b41977751573
5b5cc7d9e4d2b41977751573- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
DB2 acts as the participant and CICS acts as a co-ordinator
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Customer Information Control System (CICS) is an online transaction processing monitor from IBM that acts as an interface between the operating system and application programs to provide rapid high-volume online transaction processing.
Q: What CICS command are used to read a VSAM KSDS sequentially in ascending order? 1426 05b5cc7d9e4d2b41977751571
5b5cc7d9e4d2b41977751571- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
READNEXT reads the next record from a browse operation for any of the three VSAM files.

