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.

Questions and Answers

Answer : B

Explanation

System services component handles DB2 startup and shutdown.

Q 2 - Which table space can have one or more tables and can have rows from multiple tables on a single page?

A - Simple Table space

B - Segmented Table space

C - Partitioned Table space

D - None of these

Answer : A

Explanation

A simple table space can contain one or more tables and there is no limit on the number of tables. Rows from multiple tables can be on a single page.

Q 3 - What is the maximum size of a VARCHAR data type in DB2?

A - 256 bytes

B - 1032 bytes

C - 4046 bytes

D - 1064 bytes

Answer : C

Explanation

Varchar data type maximum size is of 4046 bytes.

Q 4 - Which statement is used to revoke the access from a database?

A - REJECT

B - REVERT

C - REVOKE

D - None of these

Answer : C

Explanation

REVOKE statement is used to take away the permissions from a Database.

Answer : C

Explanation

You will face SQLCODE = -805 when program has not been binded to the plan.

Q 6 - Which utility provides statistical information such as the number of pages and rows and stores them in Catalog tables?

A - RUNSTATS

B - REORG

C - RECOVER

D - COPY

Answer : A

Explanation

Runstats utility updated the catalog tables with the statistical information.

Q 7 - How the locks can be classified?

A - Size

B - Duration

C - Mode

D - All of these

Answer : D

Explanation

Locks can be classified based on size, duration and mode.

Q 8 - Stored procedures require no message traffic over the network while they are running and they provide high performance. State whether true or false?

A - False

B - True

Answer : B

Explanation

Stored procedures are mainly useful in distributed environment and provide an easy way to call a remote program.

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?

A - False

B - True

Answer : B

Explanation

This statement is correct.

Q 10 - What is the physical storage length of TIMESTAMP data type?

A - 4 bytes

B - 3 bytes

C - 10 bytes

D - 20 bytes

Answer : C

Explanation

TIMESTAMP data type takes 10 bytes and default is YYYY-MM-DD:HH:MM:SS-NNNNNN

db2_questions_answers.htm
Advertisements