IMS Database and Oracle SQL Functions

Test your knowledge of IMS DB concepts including hierarchical database management, DBD, segments, and Oracle SQL functions for date, string, and numeric operations.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

what does the query select * from table_abc where column_xyz like '%oracle%'

  1. selects all the rows from the table having the column_xyz value starting with the word oracle
  2. selects all the rows from the table having the column_xyz value ending with the word oracle
  3. selects all the rows from the table having the column_xyz value containing the word oracle
  4. selects all the rows from the table having the column_xyz value not containing the word oracle
Question 2 Multiple Choice (Single Answer)

Which of the following returns 123.46

  1. abs(-123.456)
  2. trunc(123.456,2)
  3. round(123.456,2)
  4. avg(1,2,3,4,5)
Question 3 Multiple Choice (Single Answer)

What does initcap('oracle') return?

  1. O
  2. oracle
  3. Oracle
  4. ORACLE
Question 4 Multiple Choice (Single Answer)

What does the function months_between('02-feb-2001','01-jan-2001') return?

  1. 8
  2. 30
  3. 1.03225806
  4. .998989989
Question 5 Multiple Choice (Single Answer)

What does the function next_day('14-mar-2001','tuesday') return?

  1. '14-mar-2002'
  2. '13-mar-2001'
  3. '20-mar-2001'
  4. '14-apr-2001'
Question 6 Multiple Choice (Single Answer)

What does trunc(datetime) do?

  1. removes the time component from a date_time value
  2. removes the date component from a date_time value
  3. removes the day component from a date_time value
  4. removes the year component from a date_time value
Question 7 Multiple Choice (Single Answer)

Which of the following functions is used to convert a date to a string in the specified format?

  1. to_date(string,format)
  2. to_char(date,format)
  3. to_date(date,format)
  4. to_number(string,format)
Question 8 Multiple Choice (Single Answer)

IMS Db uses what kind of database management

  1. network
  2. relational
  3. hierarchical
  4. object-oriented
Question 9 Multiple Choice (Single Answer)

What is the advantage of IMS DB?

  1. Faster access
  2. easy implementation
  3. high flexibility
  4. simple management
Question 10 Multiple Choice (Single Answer)

Which of the following is true about DBD ?

  1. multiple DBD s for each database
  2. none of these
  3. cannot be used by DL/I
  4. created by a process called DBDGEN
Question 11 Multiple Choice (Single Answer)

A segment has 3 occurrences for a parent. This segment is called a

  1. multiple
  2. twin
  3. sibling
  4. none of these
Question 12 Multiple Choice (Single Answer)

What information is not included in DBD

  1. access method
  2. segment name
  3. parameter
  4. key field length
Question 13 Multiple Choice (Single Answer)

IMS Db uses what kind of database management

  1. network
  2. relational
  3. hierarchical
  4. object-oriented
Question 14 Multiple Choice (Single Answer)

What is the advantage of IMS DB?

  1. Faster access
  2. easy implementation
  3. high flexibility
  4. simple management
Question 15 Multiple Choice (Single Answer)

Which of the following is true about DBD ?

  1. multiple DBD s for each database
  2. none of these
  3. cannot be used by DL/I
  4. created by a process called DBDGEN
Question 16 Multiple Choice (Single Answer)

A segment has 3 occurrences for a parent. This segment is called a

  1. multiple
  2. twin
  3. sibling
  4. none of these
Question 17 Multiple Choice (Single Answer)

What information is not included in DBD

  1. access method
  2. segment name
  3. parameter
  4. key field length
Question 18 Multiple Choice (Single Answer)

IMS Db uses what kind of database management

  1. network
  2. relational
  3. hierarchical
  4. object-oriented
Question 19 Multiple Choice (Single Answer)

What is the advantage of IMS DB?

  1. Faster access
  2. easy implementation
  3. high flexibility
  4. simple management