0

databases Online Quiz - 7

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

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


Correct Option: C

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)


Correct Option: C

What does initcap('oracle') return?

  1. O

  2. oracle

  3. Oracle

  4. ORACLE


Correct Option: C

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

  1. 8

  2. 30

  3. 1.03225806

  4. .998989989


Correct Option: C

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'


Correct Option: C

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


Correct Option: A

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)


Correct Option: B

How to analyse presssure in the processor

  1. % processor time >80

  2. % processor time <80

  3. Processor queue length>2

  4. Batch request/sec

  5. sql compilation./sec

  6. sql recompilation/sec


Correct Option: B,D,E,F

IMS Db uses what kind of database management

  1. network

  2. relational

  3. hierarchical

  4. object-oriented


Correct Option: C

What is the advantage of IMS DB?

  1. Faster access

  2. easy implementation

  3. high flexibility

  4. simple management


Correct Option: A

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


Correct Option: D

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

  1. multiple

  2. twin

  3. sibling

  4. none of these


Correct Option: B

What information is not included in DBD

  1. access method

  2. segment name

  3. parameter

  4. key field length


Correct Option: C

IMS Db uses what kind of database management

  1. network

  2. relational

  3. hierarchical

  4. object-oriented


Correct Option: C

What is the advantage of IMS DB?

  1. Faster access

  2. easy implementation

  3. high flexibility

  4. simple management


Correct Option: A

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


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) multiple DBDs for each database - This option is incorrect. In a database management system, there is typically one DBD (Database Description) for each database. The DBD contains information about the structure and organization of the database.

Option B) none of these - This option is incorrect.

Option C) cannot be used by DL/I - This option is incorrect. DBD (Database Description) is used in conjunction with DL/I (Data Language/I) to access and manipulate data stored in hierarchical databases.

Option D) created by a process called DBDGEN - This option is correct. DBD (Database Description) is created using a process called DBDGEN. DBDGEN is a utility that generates the DBD based on the database schema and specifications.

Therefore, the correct answer is option D) created by a process called DBDGEN.

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

  1. multiple

  2. twin

  3. sibling

  4. none of these


Correct Option: B

What information is not included in DBD

  1. access method

  2. segment name

  3. parameter

  4. key field length


Correct Option: C

IMS Db uses what kind of database management

  1. network

  2. relational

  3. hierarchical

  4. object-oriented


Correct Option: C

What is the advantage of IMS DB?

  1. Faster access

  2. easy implementation

  3. high flexibility

  4. simple management


Correct Option: A
- Hide questions