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

Q 1 - Which of the following are physical objects?

A - Table space

B - Database

C - Views

D - Both A & B

Answer : D

Explanation

Database and Table space are physical objects.

Q 2 - Which of the following can refer to both local as well as remote tables?

A - Synonyms

B - Alias

C - Both A & B

D - None of these

Answer : B

Explanation

Alias can refer to both local as well as remote tables whereas synonyms refers only to local tables.

Answer : A

Explanation

SPUFI stands for SQL Processor Using File Input.

Answer : C

Explanation

Bind step converts all the SQL statements into executable form in COBOL-DB2 program.

Answer : C

Explanation

If a user is not authorized to access DB2 objects, he will face SQLCODE -922.

Q 6 - Suppose we added a new column by using ALTER statement, where the column will be added?

A - Starting of the table

B - End of the table

C - Middle of the table

D - None of these

Answer : B

Explanation

When we use ALTER statement for adding a new column then it will be added at the end of the table.

Q 7 - What action DB2 takes when a program abends?

A - Auto Rollback

B - Auto Commit

C - Acquire

D - Release

Answer : A

Explanation

When a program abends in middle of some transaction then DB2 performs a auto rollback.

Q 8 - Deadlock resolution is done by rolling back one of the transactions which has the least log entries. State whether true or false?

A - False

B - True

Answer : B

Explanation

This statement is correct.

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 - Which utility is used to execute a COBOL-DB2 program?

A - IGYCTCRL

B - IKJEFT01

C - RUN

D - None of these

Answer : B

Explanation

IKJEFT is used to execute a COBOL-DB2 program. Program name is mentioned with PLAN name & Library where program resides.

db2_questions_answers.htm
Advertisements