0

Oracle and SQL

Description: Oracle and SQL
Number of Questions: 15
Created by:
Tags: Oracle and SQL Oracle Database
Attempted 0/15 Correct 0 Score 0

Which of the following is the first step for using explicitly defined cursors within PL/SQL?

  1. Open the cursor

  2. Fetch data from the cursor

  3. Close the cursor

  4. Declare the cursor

  5. Hide the cursor


Correct Option: D
Explanation:

This is the first step for using explicitly defined cursors within PL/SQL that enables a user to define the cursor and assign a name to it.

Which of the following methods in Oracle is a default method that allows a calling program to create new objects of that type?

  1. Member method

  2. Static method

  3. Constructor method

  4. Comparison method

  5. None of these


Correct Option: C
Explanation:

This method in Oracle is a default method, which allows a calling program to create new objects of that type.

Which of the following logical storage structures in Oracle is a contiguous group of blocks allocated for use as a part of table, index and so forth?

  1. Segment

  2. Tablespace

  3. Extent

  4. Database block

  5. Schema


Correct Option: C
Explanation:

This is a contiguous group of blocks allocated for use as part of a table, index and so forth.

Which of the following schemas in distributed databases consists of fragments that are a part of logical portions of the global relation and that are physically dispersed at different sites of the network?

  1. Global schema

  2. Fragmentation schema

  3. Allocation schema

  4. Local mapping schema

  5. Physical schema


Correct Option: C
Explanation:

This schema in distributed databases consists of fragments that are a part of logical portions of the global relation and that are physically dispersed at different sites of the network.

Which of the following layers in distributed query processing decomposes the distributed calculus query into an algebraic query on global relations?

  1. Data localisation

  2. Global query optimisation

  3. Local query optimisation

  4. Query decomposition

  5. Entity


Correct Option: D
Explanation:

This layer in distributed query processing decomposes the distributed calculus query into an algebraic query on global relations.

Which of the following fragmentations in distributed database requires knowledge of the logical properties of the data and the statistical properties of the data such as the number of references of applications to the fragments?

  1. Primary fragmentation

  2. Horizontal fragmentation

  3. Derived horizontal fragmentation

  4. Vertical fragmentation

  5. Global fragmentation


Correct Option: B
Explanation:

This type of fragmentation in distributed database requires knowledge of the logical properties of the data and the statistical properties of the data such as the number of references of applications to the fragments.

Which of the following in Oracle architecture is a database management system that is able to store, manage and manipulate data?

  1. The Oracle instance

  2. The Oracle database

  3. The Oracle server

  4. Database schema

  5. Package


Correct Option: C
Explanation:

This in Oracle architecture is a database management system, which is able to store, manage and manipulate data.

Which of the following features of distributed database allows application developers and administrators to hide the physical location of database objects from applications and users?

  1. Distributed query optimisation

  2. Remote procedure calls

  3. Location transparency

  4. Site autonomy

  5. Distributed transactions


Correct Option: C
Explanation:

This feature of distributed database allows application developers and administrators to hide the physical location of database objects from applications and users.

Which of the following memory components of System Global Area (SGA) consists of an area in the memory that holds all the blocks read in from disk for query or modification?

  1. Redo log buffer

  2. Database buffer cache

  3. Shared pool

  4. Java pool

  5. Large pool


Correct Option: B
Explanation:

This memory component of System Global Area (SGA) consists of an area in the memory that holds all the blocks read in from disk for query or modification.

Which of the following languages in SQL is involved in retrieval of data, insertion of new data and deletion or modification of existing data?

  1. DDL

  2. DML

  3. TCL

  4. Schema

  5. Data structure


Correct Option: B
Explanation:

This language in SQL is involved in retrieval of data, insertion of new data and deletion or modification of existing data.

Which of the following exceptions is raised in PL/SQL when a select statement returns zero rows?

  1. TOO_MANY_ROWS

  2. VALUE_ERROR

  3. NO_DATA_FOUND

  4. INVALID_NUMBER

  5. ZERO_DIVIDE


Correct Option: C
Explanation:

This exception is raised in PL/SQL when a select statement returns zero rows.

Which of the following in SQL represents the set of all permissible values for that particular column?

  1. Tuple

  2. Data

  3. Domain

  4. Entity

  5. Files


Correct Option: C
Explanation:

This in SQL represents the set of all permissible values for that particular column.

Which of the following is the first step in starting database in Oracle?

  1. Mounting the database

  2. Opening the database

  3. Instance creation

  4. Shutting down the database

  5. Force


Correct Option: C
Explanation:

This is the first step in starting the database in Oracle.

Which of the following files in Oracle is used to hold the names of privileged users who have been granted the SYSDBA and SYSOPER roles?

  1. Parameter file

  2. Archive file

  3. Password file

  4. Redo log file

  5. Control file


Correct Option: C
Explanation:

This file in Oracle is used to hold the names of privileged users who have been granted the SYSDBA and SYSOPER roles.

Which of the following loops does not exist in PL/SQL?

  1. While loop

  2. Loop-Endloop

  3. For loop

  4. Do-while loop

  5. Goto statement.


Correct Option: D
Explanation:

This loop does not exist in PL/SQL. This statement allows one to change the flow of control within a PL/SQL block

- Hide questions