- DB2 Tutorial
- Home
- DB2 - Introduction
- DB2 - Server Installation
- DB2 - Instance
- DB2 - Databases
- DB2 - Bufferpools
- DB2 - Tablespaces
- DB2 - Storagegroups
- DB2 - Schemas
- DB2 - Data Types
- DB2 - Tables
- DB2 - Alias
- DB2 - Constraints
- DB2 - Indexes
- DB2 - Triggers
- DB2 - Sequences
- DB2 - Views
- DB2 with XML
- DB2 - Backup and Recovery
- DB2 - Database Security
- DB2 - Roles
- DB2 - LDAP
- DB2 Useful Resources
- DB2 - Questions and Answers
- DB2 - Quick Guide
- DB2 - Useful Resources
- DB2 - Discussion
DB2 Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to DB2. 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 - Collection of one or more DASD volumes creates a storage group. What is the maximum limit of DASD which can be used for a storage group?
Answer : C
Explanation
This is self explanatory.
Q 2 - Which columns are not good for indexing?
A - Frequently updated columns
Answer : D
Explanation
The purpose of index is to retrieve the data faster. So we choose those columns which are unique or less frequently updated.
Answer : B
Explanation
A table can have only one primary key.
Q 4 - What does DCLGEN stands for?
Answer : B
Explanation
DCLGEN stands for Declaration Generator.
Q 5 - When you will face SQLCODE -818?
Answer : D
Explanation
SQLCODE -818 is a timestamp mismatch of load module and bind timestamp built from DBRM.
Q 6 - How you will count the number of rows from a table TAB?
Answer : C
Explanation
This is self explanatory.
Q 7 - What action DB2 takes when a program abends?
Answer : A
Explanation
When a program abends in middle of some transaction then DB2 performs a auto rollback.
Q 8 - Static SQL is compiled and optimized prior to its execution where as dynamic SQL is compiled and optimized during execution. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 9 - Fetch statement identifies the cursor and puts the value in INTO clause. A Fetch statement is coded in loop as we get one row at a time. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 10 - What is the physical storage length of DATE data type?
Answer : A
Explanation
DATE data types take 4 bytes and default is 'YYYY-MM-DD'
To Continue Learning Please Login
Login with Google