Databases and IMS Database Systems

Covers general database concepts including SQL queries, joins, subqueries, and embedded SQL, along with specific IMS database topics such as SSA, PSB, status codes, and retrieval methods.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the command code use to update the path of the segment?

  1. Q
  2. D
  3. N
  4. I
Question 2 Multiple Choice (Single Answer)

What are the two types of recovery?

  1. Horizontal and Vertical
  2. Forward and Backward
  3. Left and Right
  4. Front and Back
Question 3 Multiple Choice (Single Answer)

__________ is the smallest information that a DLI can fetch .

  1. Field
  2. Segment
  3. Branch
  4. Character
Question 4 Multiple Choice (Single Answer)

What is the limitation on number of segment occurrences?

  1. 255
  2. 1000
  3. 453
  4. No Limitation
Question 5 Multiple Choice (Single Answer)

What does Procopt O in PSB stand for?

  1. Sequential Initial Load
  2. Access only Key of segment
  3. Used with G to Indicate that Hold is not allowed
  4. None of the above
Question 6 Multiple Choice (Single Answer)

What are the two types of SSA's?

  1. Basic and Complex
  2. General and Specific
  3. Qualified and Unqualified
  4. None of these
Question 7 Multiple Choice (Single Answer)

What is the retrieval sequence in IMS DB?

  1. Top to Bottom, Front to back, Left to right
  2. Front to back, Left to right, Top to Bottom
  3. Left to right, Top to Bottom, Front to back
  4. Left to right, Front to back, Top to Bottom
Question 8 Multiple Choice (Single Answer)

What Status code is returned when trying to insert a segment that already exists?

  1. IX
  2. IQ
  3. II
  4. ID
Question 9 Multiple Choice (Single Answer)

What is the status code for an invalid SSA?

  1. AJ
  2. AI
  3. AC
  4. Ak
Question 10 Multiple Choice (Single Answer)

Which of the following is true about a MPP processing mode in IMS?

  1. Databases accessed must be online.
  2. No data communication services are used.
  3. Transactions are entered at the terminal and stored in a message queue.
  4. True batch processing.
Question 11 Multiple Choice (Single Answer)

What is the limitation on the Secondary indicies for a database?

  1. 255
  2. 1000
  3. No Limit
  4. 32
Question 12 Multiple Choice (Single Answer)

After database is loaded in HSAM which of the following operation becomes invalid?

  1. GU
  2. GN
  3. GNP
  4. GHNP
Question 13 True/False

PROCOPT cannot be used on PCB and SENSEG.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Which language is not supported by IMS?

  1. COBOL
  2. JAVA
  3. REXX
  4. VS PASCAL
Question 15 Multiple Choice (Single Answer)

The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID

  1. Equi-join
  2. Natural join
  3. Outer join
  4. Cartesian join
Question 16 Multiple Choice (Single Answer)

Embedded SQL is which of the following?

  1. Hard-coded SQL statements in a program language such as Java
  2. The process of making an application capable of generating specific SQL code on the fly.
  3. Hard-coded SQL statements in a procedure.
  4. Hard-coded SQL statements in a trigger.
Question 17 Multiple Choice (Single Answer)

A UNION query is which of the following?

  1. Combines the output from no more than two queries and must include the same number of columns.
  2. Combines the output from no more than two queries and does not include the same number of columns.
  3. Combines the output from multiple queries and must include the same number of columns.
  4. Combines the output from multiple queries and does not include the same number of columns.
Question 18 Multiple Choice (Single Answer)

What type of join is needed when you wish to include rows that do not have matching values?

  1. Equi-join
  2. Natural join
  3. Outer join
  4. All of the above.
Question 19 Multiple Choice (Single Answer)

Which of the following statements is true concerning routines and triggers?

  1. Both consist of procedural code
  2. Both have to be called to operate.
  3. Both run automatically.
  4. Both are stored in the database.
Question 20 Multiple Choice (Single Answer)

Which of the following is a correlated subquery?

  1. Uses the result of an inner query to determine the processing of an outer query.
  2. Uses the result of an outer query to determine the processing of an inner query.
  3. Uses the result of an inner query to determine the processing of an inner query.
  4. Uses the result of an outer query to determine the processing of an outer query.