Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Parallel & Distributed Database

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

A data block is?

a)

The place where all deleted records are persisted

b)

The smallest logical storage unit for a database object

c)

The largest logical storage unit ever available for any database block

d)

All of the above

2.

The ____________ contains a set of tables and views that Oracle uses as a reference to the database?

a)

PGA

b)

Data Dictionary

c)

SGA

d)

Library cache

3.

____________ is an area on disk which comprises of one or more disk files?

a)

A partition

b)

Heap

c)

A package

d)

A table space

4.

What is the use of an index?

a)

Retrieve data more quickly and efficiently

b)

Simplify the user’s perception of data access

c)

Related data requires much less I/O overhead if accessed simultaneously

d)

All of them

5.

Partition description identifying partition bounds.

a)

Range Partition

b)

Hash Partition

c)

List Partition

d)

Range-Hash Partition

6.

Which partitioning methods can be used for index-organized tables?

a)

Range Partition

b)

Hash Partition

c)

List Partition

d)

All the above

7.

Oracle instance can have following tablespaces

a)

System

b)

Temp

c)

Users

d)

Undo

e)

All the above

8.

The table space used for keeping data dictionary and oracle data

a)

Temp

b)

Undo

c)

System

d)

None of these

9.

The tablespace used for execution of query for keeping temporary data like intermediate data generated for sorting operation is

a)

System tablespace

b)

Undo tablespace

c)

Temp tablespace

d)

All the above

10.

In case of _____ partitioning, partition key is defined and partition is defined using partition boundary in the ascending order.

a)

hash

b)

interval

c)

range

d)

list

11.

Consider the following statement

CREATE TABLE emp (

empno NUMBER(4),

ename VARCHAR2(30),

sal NUMBER

)

PARTITION BY RANGE(empno) (

partition e1 values less than (1000) tablespace ts1,

partition e2 values less than (2000) tablespace ts2,

partition e3 values less than (MAXVALUE) tablespace ts3

);

In above EMP table if following record inserted, in which partition it will be available?

insert into emp values(1890,'Sudha',55000);

a)

e1

b)

e2

c)

e3

d)

None of these

12.

Consider the following

CREATE TABLE emp (

empno NUMBER(4),

ename VARCHAR2(30),

sal NUMBER

)

PARTITION BY RANGE(empno) (

partition e1 values less than (1000) tablespace ts1,

partition e2 values less than (2000) tablespace ts2,

partition e3 values less than (MAXVALUE) tablespace ts3

);

In above EMP table if following record inserted, in which partition it will be available?

insert into emp(ename) values('Shnaya');

a)

e1

b)

e2

c)

e3

d)

Error will occur

13.

Hash partitioning is a partitioning technique where a ______ key is used to distribute rows evenly across the different partitions

a)

primary

b)

foreign

c)

hash

d)

unique

14.

Consider the following


CREATE TABLE myemp_work (

empno NUMBER PRIMARY KEY,

ename VARCHAR2(30),

salary NUMBER(8,2),

deptno NUMBER)

PARTITION BY LIST (deptno) (

PARTITION part1 VALUES (10),

PARTITION part2 VALUES (20),

PARTITION part3 VALUES (30,40));

If record inserted is (1000,'Mahi',75000,15) in which partition it will be inserted?

a)

part1

b)

part2

c)

part3

d)

Error will occur

15.

Following syntax can be used to partition an existing table

a)

ALTER TABLE ... EXCHANGE PARTITION ...

b)

ALTER TABLE ... MODIFY PARTITION ...

c)

ALTER TABLE ... RENAME PARTITION ...

d)

ALTER TABLE ... SPLIT PARTITION ...

16.

Which of the following is type of distributed DB?

a)

Homogeneous only

b)

Heterogeneous only

c)

Homogeneous and Heterogeneous

d)

None of these

17.

Which of the following is not an architecture of parallel DB?

a)

Shared Nothing

b)

Shared Memory

c)

Shared Time

d)

Shared Disk

18.

What are the types fragmentation in distributed database?

a)

Horizontal and Vertical

b)

Range and List

c)

Vertical and Tuple

d)

None of these

19.

To facilitate connections between the individual databases of a distributed database, Oracle uses database links. A database link defines a "path" to a remote database and the syntax to create database link is

a)

CREATE OR REPLACE DATABASE LINK <linkname> CONNECT TO -----

b)

CREATE DATABASE LINK <linkname> CONNECT TO -----

c)

ADD DATABASE LINK <linkname> CONNECT <username> ----

d)

None of these

20.

You can create copies of data at the various sites of a distributed database to make access to data faster for local clients, is called

a)

Fragmentation

b)

Segmentation

c)

Replication

d)

Data Sharing