- 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 - How many databases can a DB2 system manage?
Answer : B
Explanation
This is self explanatory.
Q 2 - Which columns are good for indexing?
Answer : D
Explanation
The purpose of index is to retrieve the data faster. So we choose those columns which are unique.
Q 3 - In which format index in stored?
Answer : B
Explanation
An indexed is stored in B-tree format.
Q 4 - Suppose a Plan contains 4 Packages & we modified one of the DBRM which is present in one of the Package. Then for normal functionality of application what should we do?
Answer : C
Explanation
We will bind only that package which contains the modified DBRM. No need to bind all the packages.
Answer : C
Explanation
If a user is not authorized to access DB2 objects, he will face SQLCODE -922.
Q 6 - Which utility provides statistical information such as the number of pages and rows and stores them in Catalog tables?
Answer : A
Explanation
Runstats utility updated the catalog tables with the statistical information.
Answer : B
Explanation
FREE command is used to drop an existing plan.
Answer : B
Explanation
Yes we can add columns after table declaration by using ALTER statement.
Q 9 - SQLCA is a SQL communication area through which DB2 passes feedback of SQL execution to the program. It tells the program whether execution was successful or not. State whether true or false?
Answer : B
Explanation
This statement is correct.
Q 10 - Which field in SQLCA shows the number of updated rows after update statement?
Answer : C
Explanation
Check the value of SQLERRD to know how many rows got updated after an update statement.
To Continue Learning Please Login
Login with Google