Database Fundamentals and Technologies

Covers core database concepts including SQL Server, Oracle, iBATIS persistence framework, and IMS database systems. Topics include triggers, constraints, data types, SQL functions, and database storage.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

maximum number of levels allowed in IMS DB?

  1. 1
  2. 15
  3. 255
  4. 1000
Question 2 True/False

Can we use PROCOPT on PCB and Segment field (SENSEG)?

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

Each PSB consists of how many control blocks?

  1. 15
  2. 1
  3. 1 OR MORE
  4. 255
Question 4 Multiple Choice (Single Answer)

wHAT defines the types of access to the database?

  1. PCB
  2. SENSEG
  3. SENFLD
  4. PROCOPT
Question 5 Multiple Choice (Single Answer)

ALL OCCURENCES OF A SEGMENT TYPE UNDER A PARENT IS CALLED AS

  1. CHILD
  2. DEPENDENT
  3. TWIN
  4. SIBLINGS
Question 6 Multiple Choice (Single Answer)

Emp table has 10 rows. How many rows will be fetched against the following query? Select 10 from emp where rownum>=2

  1. 2
  2. 8
  3. 10
  4. None of the above
Question 7 Multiple Choice (Single Answer)

Round(159.63,-3) and Trunc(159.63,-3) will have following Outputs respectively:

  1. 200 and 100
  2. 100 and 100
  3. 160 and 150
  4. none of the above
Question 8 Multiple Choice (Single Answer)

What will be Output of the following query? select length(to_char('9999','999999.99')) from dual

  1. 9
  2. 10
  3. 4
  4. 8
Question 9 Multiple Choice (Single Answer)

If sysdate is ‘17/10/2009’and we run the following query,what will be the Output?

  1. 01/01/10
  2. 01/10/10
  3. 17/10/10
  4. It will throw an error
Question 10 Multiple Choice (Multiple Answers)

Which three SELECT statements displays 2000 in the format "$2,000.00"? (Choose three)

  1. SELECT TO CHAR(2000, '$#,###.##')
  2. SELECT TO CHAR(2000, '$0,000.00')
  3. SELECT TO CHAR(2000, '$9,999.00')
  4. SELECT TO CHAR(2000, '$2,000.00')
  5. SELECT TO CHAR(2000, '$N,NNN.NN')
  6. SELECT TO CHAR(2000, '$9,999.99')
Question 11 Multiple Choice (Multiple Answers)

Which three are DATETIME data types that can be used when specifying column definitions? (Choose three.)

  1. TIMESTAMP
  2. . INTERVAL MONTH TO DAY
  3. INTERVAL DAY TO SECOND
  4. INTERVAL YEAR TO MONTH
  5. TIMESTAMP WITH DATABASE TIMEZONE
Question 12 Multiple Choice (Single Answer)

You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?

  1. ALTER TABLE students ADD PRIMARY KEY student_id;
  2. ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student _ id);
  3. ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student _ id);
  4. ALTER TABLE students ADD CONSTRAINT stud _ id _pk PRIMARY KEY (student _ id);
  5. ALTER TABLE students MODIFY CONSTRAINT stud _ id _pk PRIMARY KEY (student _ id);
Question 13 Multiple Choice (Single Answer)

Which syntax turns an existing constraint on?

  1. ALTER TABLE table_name ENABLE constraint_name;
  2. ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name;
  3. ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name;
  4. ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name;
Question 14 True/False

A file can be member of only one filegroup.

  1. True
  2. False
Question 15 True/False

CREATE TABLE statements are not allowed in a trigger.

  1. True
  2. False
Question 16 True/False

A trigger cannot be created on a view.

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

Which one is correct for the following example shows how a stored procedure would be used with output parameters?

  1. <procedure id="swapEmailAddresses" parameterName="swapParameters" > {call swap_email_address (?, ?)} </procedure>
  2. <procedure id="swapEmailAddresses" parameterMap="swapParameters" > {call swap_email_address (?, ?)} </procedure>
  3. <procedure name="swapEmailAddresses" parameterMap="swapParameters" > {call swap_email_address (?, ?)} </procedure>
  4. <procedure propertyName="swapEmailAddresses" parameterMap="swapParameters" > {call swap_email_address (?, ?)} </procedure>
Question 18 Multiple Choice (Single Answer)

What is iBATIS?

  1. iBATIS is a O/R Mapping tool.
  2. iBATIS is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings.
  3. iBATIS is a java development tool.
  4. iBATIS is a first class persistence framework, and will not support for custom SQL, but will support stored procedures.
Question 19 Multiple Choice (Single Answer)

Every iBATIS application centers around an instance of SqlSessionFactory. A SqlSessionFactory instance can be acquired by using the ______________________

  1. SqlSessionFactoryBuilder
  2. SqlBuilder
  3. SqlFactoryBuilder
  4. SqlSessionBuilder
Question 20 True/False

iBATIS does not encourages the direct use fo SQL and ensures that all the benefits of SQL are not overridder by the framework itself.

  1. True
  2. False