0

Oracle and PL/SQL

Description: Oracle and PL/SQL Test contains questions on database, SQL server questions
Number of Questions: 15
Created by:
Tags: Oracle PL SQL questions SQL questions Database questions DB questions IT questions Java/Oracle /C/C++ Computer Basics
Attempted 0/15 Correct 0 Score 0

Which of the following files in oracle is very useful in the event of a failure and is used for recovery purposes?

  1. Parameter file

  2. Archive file

  3. Password file

  4. Data files

  5. Control files


Correct Option: B
Explanation:

This file in oracle is very useful in the event of a failure and is used for recovery purposes.

Which of the following files is used in oracle in the event of an instance failure?

  1. Data files

  2. Control files

  3. Redo log files

  4. Password file

  5. Parameter file


Correct Option: C
Explanation:

These files are used in oracle in the event of an instance failure.

Which of the following queries returns the number of rows in the table student?

  1. select count()from student;

  2. select count(*)from student;

  3. select No_Rows_Tablefrom student;

  4. select max(age)from student;

  5. select min(salary)from student;


Correct Option: B
Explanation:

This is the correct query and returns the total number of rows in the table student.

Which of the following is the correct query to display name of student from the student table having name as 'aman' or 'harish'?

  1. select name from studentwhere name ='aman' and 'harish';

  2. select 'aman' and 'harish'from student;

  3. select namefrom studentwhere name like 'aman' or name like 'harish';

  4. select name from studentwhere name is 'aman' and 'harish';

  5. select 'aman' and 'harish'from studentwhere name = student;


Correct Option: C
Explanation:

This is the correct query as it makes use of like predicate to match the correct student names.

Which of the following object privileges in SQL is not supported by the Grant command?

  1. Alter

  2. Delete

  3. Select

  4. Update

  5. Drop


Correct Option: E
Explanation:

This object privilege in SQL is not supported by the Grant command.

Which of the following modes of shutdown in oracle allows oracle server to automatically rolls back all currently active transactions?

  1. Normal

  2. Abort

  3. Immediate

  4. Transactional

  5. Force shutdown


Correct Option: C
Explanation:

This mode of shutdown in oracle allows oracle server to automatically rolls back all currently active transactions.

Which of the following parameters in the create sequence command of SQL specifies that the values of the sequence are not preallocated?

  1. Order

  2. Nocache

  3. Cache

  4. Cycle

  5. Start with


Correct Option: B
Explanation:

This parameter in the create sequence command of SQL specifies that the values of the sequence are not preallocated.

Which of the following segments in oracle is/are created when the application creates the table or cluster with the Create command?

  1. Index segments

  2. Temporary segments

  3. Data segments

  4. Rollback segments

  5. Error segments


Correct Option: C
Explanation:

These segments in oracle are created when the application creates the table or cluster with the Create command.

Which of the following components of SGA is/are shared by multiple users as the contents of its memory area?

  1. Redo Log Buffer

  2. Java Pool

  3. Shared Pool

  4. Large Pool

  5. Streams Pool


Correct Option: C
Explanation:

This component of SGA are shared by multiple users as the contents of its memory area.

Which of the following schemas in a distributed database specifies that the fragments are really the logical portions of the global relation which are physically dispersed at different sites of the network, and defines at which site a fragment is allocated?

  1. Global schema

  2. Fragmentation schema

  3. Allocation schema

  4. Local mapping schema

  5. Data dictionary


Correct Option: C
Explanation:

This schema in a distributed database specifies that the fragments are really the logical portions of the global relation, which are physically dispersed at different sites of the network, and defines at which site a fragment is allocated.

Which of the following components of data block in oracle contains information about tables that have data in the data block?

  1. Header

  2. Table directory

  3. Row directory

  4. Row data

  5. Free space


Correct Option: B
Explanation:

This component of data block in oracle contains information about tables that have data in the data block.

Which of the following types of cursors is/are declared and used by the user to process multiple rows returned by Select statement?

  1. Implicit cursors

  2. Explicit cursors

  3. Open the cursor

  4. Closing cursor

  5. Active set


Correct Option: B
Explanation:

These type of cursors are declared and used by the user to process multiple row returned by Select statement.

Which of the following statements in SQL allows users to control the properties of their current session by enabling or disabling roles of users and changing language settings?

  1. DML Statements

  2. System Control Statements

  3. Embedded SQL Statements

  4. Session Control Statements

  5. Transaction Control Statements


Correct Option: D
Explanation:

These statements in SQL allow users to control the properties of their current session by enabling or disabling roles of users and changing language settings.

Which of the following components of oracle process in the background performs process recovery when a user processor fails?

  1. Processor monitor

  2. System monitor

  3. Recoverer process

  4. Dispatcher

  5. Lock processor


Correct Option: A
Explanation:

This component of oracle process in the background performs process recovery when a user processor fails.

Which of the following statements is used to add methods but not attributes to an object type stored in the database?

  1. Select

  2. Update

  3. Alter type

  4. Grant

  5. Revoke


Correct Option: C
Explanation:

This statement is used to add methods but not attributes to an object type stored in the database.

- Hide questions