Oracle and PL/SQL

Oracle and PL/SQL Test contains questions on database, SQL server questions

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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
Question 2 Multiple Choice (Single Answer)

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
Question 3 Multiple Choice (Single Answer)

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;
Question 4 Multiple Choice (Single Answer)

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;
Question 5 Multiple Choice (Single Answer)

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
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

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
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

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
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

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
Question 14 Multiple Choice (Single Answer)

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
Question 15 Multiple Choice (Single Answer)

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