0

mainframe Online Quiz - 21

Description: mainframe Online Quiz - 21
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

In the below code, what will happen if first IF is satisfied. IF A=B NEXT SENTENCE ELSE IF C=D Move 20 to C End-If Move 40 to D End-If. Move A to B. Move C to D.

  1. (A) Control Starts after the line where, FULLSTOP is present

  2. (B) Control Starts after the line where, First END-IF is present

  3. (C) Control starts after the line where, its respective END-IF is present

  4. (D) None of the above.


Correct Option: A

Drop dependencies

  1. A. STORAGE GROUP -->DATABASE --> TABLESPACE -->TABLE--> VIEW

  2. B.TABLESPACE -> DATABASE-> TABLE-> VIEW--> STORAGE GROUP

  3. C. DATABASE --> TABLE --> TABLE SPACE --> VIEW-->STORAGE GROUP

  4. D. VIEW --> TABLE --> DATABASE--> TABLE SPACE --> STORAGE GROUP


Correct Option: A

SQL Return code -180

  1. Foreign Key constraint

  2. Bind Issue

  3. Invalid date or Time

  4. Invalid string


Correct Option: C

AI Explanation

To answer this question, we need to understand the different return codes in SQL and their meanings.

Return code -180 in SQL typically indicates an "Invalid date or time" error. This error occurs when there is an issue with the format or value of a date or time value being used in a SQL statement.

Let's go through each option to understand why it is correct or incorrect:

Option A) Foreign Key constraint - This option is incorrect because return code -180 does not indicate a foreign key constraint error. Foreign key constraint errors are usually indicated by different return codes, such as -530 or -532.

Option B) Bind Issue - This option is incorrect because return code -180 does not indicate a bind issue. Bind issues are typically indicated by different return codes, such as -803 or -805.

Option C) Invalid date or Time - This option is correct because return code -180 does indicate an "Invalid date or time" error. This error occurs when there is an issue with the format or value of a date or time value being used in a SQL statement.

Option D) Invalid string - This option is incorrect because return code -180 does not indicate an invalid string error. Invalid string errors are typically indicated by different return codes, such as -305 or -432.

The correct answer is C) Invalid date or Time. This option is correct because return code -180 is associated with an "Invalid date or time" error.

SQL Retun code -181

  1. Bind issue

  2. String representation of invalid date value

  3. Both A and B

  4. No Null indicator


Correct Option: B

SQL Return code -204

  1. Row not found

  2. Column not found

  3. Both A and B

  4. Table not found


Correct Option: D

SQL Return code -501

  1. With Hold option missing

  2. Cursor not open

  3. Cursor not close

  4. BOTH B and C


Correct Option: B

SQL Return Code -502

  1. Cursor not closed

  2. Cursor not opened

  3. Cursor already open

  4. ALL the ABOVE


Correct Option: C

SQL Return Code -503

  1. Invalid column values

  2. Invalid date or time

  3. Update issue. Update clause missing in the select statement of the cursor

  4. BOTH A and B


Correct Option: C

SQL Return code -530

  1. Foreign Key constraint

  2. Bind issue

  3. Authorization iussue

  4. BOTH A and C


Correct Option: A

SQL Return code -532

  1. Restriction in deletion

  2. Foreign key constraint

  3. Invalid update

  4. Both A and B


Correct Option: A

Sql Return code -803

  1. Column value is not valid

  2. Duplicate Value

  3. Row not found

  4. BOTH A and C


Correct Option: B

Sql Return code -117

  1. Row not found

  2. Privilege issue

  3. Bind issuie

  4. Insert value is missing for a Column


Correct Option: D

Sql Return code -805

  1. Column not found

  2. Duplicate value

  3. Bind issue

  4. Invalid time and date


Correct Option: C

Sql Return code -811

  1. Fetching only Zero Rows

  2. Fetching more than one row.

  3. Table not found

  4. BOTH A and B


Correct Option: B

AI Explanation

To answer this question, we need to understand the possible meanings of SQL return code -811.

SQL return code -811 typically indicates that a SELECT statement returned more than one row. Therefore, option B, "Fetching more than one row," is the correct answer.

Let's go through each option to understand why it is correct or incorrect:

A) Fetching only Zero Rows - This option is incorrect because SQL return code -811 does not indicate that zero rows were fetched. It specifically indicates that more than one row was fetched.

B) Fetching more than one row - This option is correct. SQL return code -811 indicates that a SELECT statement returned more than one row.

C) Table not found - This option is incorrect. SQL return code -811 is not related to a table not being found. It specifically indicates that multiple rows were fetched.

D) BOTH A and B - This option is incorrect. SQL return code -811 does not indicate fetching zero rows. It specifically indicates fetching more than one row.

Therefore, the correct answer is B) Fetching more than one row because SQL return code -811 indicates that a SELECT statement returned more than one row.

Sql Return code -818

  1. Bind issue

  2. No Null indicator found

  3. Invalid Date or Time

  4. Timestamp mismatch between Load and BIND


Correct Option: D

Sql Return code -904

  1. RESOURCE UNAVAILABLE

  2. TABLE NOT FOUND

  3. PLAN NOT FOUND

  4. ALL THE ABOVE


Correct Option: A

SQL Retun code -911

  1. BOTH B and C

  2. Privilege issue

  3. Dead Lock

  4. No row found


Correct Option: C

Sql Return code -913

  1. Access not given

  2. Plan not found

  3. Deadlock and Timeout

  4. Authorization isse


Correct Option: C

SQL Return code -922

  1. Dead Loack

  2. Time out

  3. BOTH A and D

  4. Authorization failure


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Dead Lock - This option is incorrect because a dead lock is a situation where two or more transactions are permanently blocked, waiting for each other to release the resources they need to continue executing. It is not related to return code -922 in SQL.

Option B) Time Out - This option is incorrect because a timeout occurs when a process or query takes longer than a specified time to complete. It is not related to return code -922 in SQL.

Option C) BOTH A and D - This option is incorrect because option A (Dead Lock) is incorrect. Therefore, it cannot be both A and D.

Option D) Authorization failure - This option is correct because return code -922 in SQL typically indicates an authorization failure. It means that the user does not have the necessary permissions or privileges to perform the requested operation.

The correct answer is D. This option is correct because return code -922 in SQL indicates an authorization failure.

Sql Return Code 100

  1. Colum not found

  2. Rows found

  3. No Row found

  4. Both A and B


Correct Option: C
- Hide questions