wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ADBMS

Total questions: 84

Worksheet time: 42mins

Name
Class
Date
1.

A programming language for storing and processing information in a relational database

a)

SRL

b)

SQL

c)

RDBMS

d)

DML

2.

A database management system that manages data as a collection of tables in which all relationships are represented by common values in related tables.

a)

MYSQL

b)

RDBMS

c)

SQL

d)

XAMPP

3.

SQL

a)

Structured Queries Language

b)

Standard Query Language

c)

Structured Query Language

d)

Standard Queries Language

4.

RDBMS

a)

Related Databases Management System

b)

Relational Databases Management System

c)

Related Database Management System

d)

Relational Database Management Systems

5.

Has benefits of a Reduced training costs

a)

Standardized Relational Language

b)

SQL Environment

c)

SQL Standard

d)

Data Definition Language

6.

Specify syntax/semantics for data definition and manipulation.

a)

Standardized Relational Language

b)

SQL Environment

c)

SQL Standard

d)

Data Definition Language

7.

Importance of SQL is not usually apparent to the application users.

a)

Standardized Relational Language

b)

SQL Environment

c)

SQL Standard

d)

Data Definition Language

8.

These commands are used to create, alter, and drop tables, views and indexes. - It is also used to establish constraints in the database.

a)

CREATE

b)

DDL Data Definition Language

c)

DROP

d)

ALTER

9.

Creates an object (a table, for example) in the database.

a)

CREATE

b)

DDL Data Definition Language

c)

DROP

d)

ALTER

10.

Deletes an object in a database, usually irretrievably.

a)

CREATE

b)

DDL Data Definition Language

c)

DROP

d)

ALTER

11.

Modifies the structure of an existing object in various ways. For example, adding a column in a existing table

a)

CREATE

b)

DDL Data Definition Language

c)

DROP

d)

ALTER

12.

Commands used to maintain and query a database, including those for updating, inserting, modifying and querying data.

a)

Data Types

b)

Data Manipulation Language DML

c)

NUMBER(L, D)

d)

INTEGER

13.

Data type selection is usually dictated by nature of data and by intended use.

a)

Data Types

b)

Data Manipulation Language DML

c)

NUMBER(L, D)

d)

INTEGER

14.

The declaration (NUMBER 7, 2) indicates the numbers that will be stored with two decimal places may be up to six digits long, including the sign and decimal places. Examples are 12.32, -134.99.

a)

Data Types

b)

Data Manipulation Language DML

c)

NUMBER(L, D)

d)

INTEGER

15.

May be abbreviated as INT. Integers are whole counting numbers, so they cannot be used if you want to store numbers with decimal places.

a)

Data Types

b)

Data Manipulation Language DML

c)

NUMBER(L, D)

d)

INTEGER

16.

Like INTEGER but it is limited to integer values up to six(6) digits. If your integer values are relatively small, use SMALLINT instead of INT.

a)

DECIMAL(L, D)

b)

VARCHAR(L) or VARCHAR2(L)

c)

SMALLINT

d)

CHAR(L)

17.

Like the NUMBER specification. DECIMAL(9,2), DECIMAL(9), and DECIMAL are all acceptable.

a)

DECIMAL(L, D)

b)

VARCHAR(L) or VARCHAR2(L)

c)

SMALLINT

d)

CHAR(L)

18.

Fixed length character data up to 255 characters. If you store strings that are not as long as the CHAR parameter value, the remaining spaces are left unused

a)

DECIMAL(L, D)

b)

VARCHAR(L) or VARCHAR2(L)

c)

SMALLINT

d)

CHAR(L)

19.

Variable-length character data. The designation _______(25) will let you store characters up to 25 characters long.

a)

DECIMAL(L, D)

b)

VARCHAR(L) or VARCHAR2(L)

c)

SMALLINT

d)

CHAR(L)

20.

Stores dates (YYYY-MM-DD format).

a)

DATE

b)

Creating Table Structures

c)

VARCHAR(L) or VARCHAR2(L)

d)

CHAR(L)

21.

Defines the ff. Use one line per column (attribute) definition. - Use spaces to line up attribute characteristics and constraints.

a)

DATE

b)

Creating Table Structures

c)

VARCHAR(L) or VARCHAR2(L)

d)

CHAR(L)

22.

Adding Table Rows

a)

UPDATE

b)

SELECT

c)

INSERT

d)

COLUMN LIST

23.

Listing Table Rows

a)

UPDATE

b)

SELECT

c)

INSERT

d)

COLUMN LIST

24.

Updating Table Rows

a)

UPDATE

b)

SELECT

c)

INSERT

d)

COLUMN LIST

25.

Deleting Table Rows

a)

UPDATE

b)

SELECT

c)

INSERT

d)

DELETE

26.

a key which uniquely identifies each record in a table and it should not contain NULL values

a)

FOREIGN KEY

b)

PRIMARY KEY

27.

a key used to link two tables together. It is a field in one table that refers to the PRIMARY KEY in another table.

a)

FOREIGN KEY

b)

PRIMARY KEY

28.

Used to check whether attribute value is within range

a)

IN

b)

BETWEEN

c)

IS NULL

d)

LIKE

29.

A Special Operator: that Used to check whether attribute value is null

a)

IN

b)

BETWEEN

c)

IS NULL

d)

LIKE

30.

A Special Operator: that Used to check whether attribute value matches any value within a value list

a)

IN

b)

BETWEEN

c)

IS NULL

d)

LIKE

31.

A Special Operator: that Used to check whether attribute value matches given string pattern

a)

IN

b)

BETWEEN

c)

IS NULL

d)

LIKE

32.

Finds any values that starts with "a"

a)

a%

b)

%a

c)

%or%

d)

_r%

33.

Finds any values that end with "a"

a)

a%

b)

%a

c)

%or%

d)

_r%

34.

Finds any values that have with "or" in any position

a)

a%

b)

%a

c)

%or%

d)

_r%

35.

Finds any values that have with "or" in any position

a)

a%

b)

%a

c)

%or%

d)

_r%

36.

Finds any values that have with "or" in that second position

a)

a%

b)

%a

c)

%or%

d)

_r%

37.

Finds any values that starts with 'a' and are at least 2 characters in length

a)

'a_%'

b)

'a%o'

c)

'a__%'

d)

'_r'

38.

Finds any values that starts with 'a' and are at least 3 characters in length

a)

'a_%'

b)

'a%o'

c)

'a__%'

d)

'_r'

39.

Finds any values that end with "a" and ends with "o"

a)

'a%'

b)

'%a'

c)

'a%o'

d)

'_r%'

40.

All changes in table structure are made by using ALTER command, followed by keyword that produces specific change. The following three options are available: ADD, MODIFY, DROP

a)

Advanced Database Management

b)

Advanced DDL Command

c)

Advanced Select Queries

d)

ADVANCED SQL

41.

SQL provides useful functions that can count, find minimum and maximum values, and calculate sum and average.

a)

Advanced Database Management

b)

Advanced DDL Command

c)

Advanced Select Queries

d)

ADVANCED SQL

42.

Returns the number of rows with non-null values for a given column

a)

SUM

b)

MIN

c)

COUNT

d)

MAX

43.

Returns the minimum value found in a given column

a)

SUM

b)

MIN

c)

COUNT

d)

MAX

44.

Returns the minimum value found in a given column

a)

SUM

b)

MIN

c)

COUNT

d)

MAX

45.

Returns the maximum value found in given column

a)

SUM

b)

MIN

c)

COUNT

d)

MAX

46.

Returns the sum value of all values for a given column

a)

SUM

b)

MIN

c)

COUNT

d)

MAX

47.

Returns the average of all values for a given column

a)

SUM

b)

MIN

c)

AVG

d)

MAX

48.

A view is a virtual table based on SELECT query. It can contain columns, aliases and functions from one or more table

a)

ADVANCED SQL

b)

Restoring Table Contents

c)

Saving Table Content

d)

Creating a View

49.

Changes made to table are not physically saved on disk until one of the following occurs: the database is closed, program is closed, or the COMMIT command is used.

a)

ADVANCED SQL

b)

Restoring Table Contents

c)

Saving Table Content

d)

Creating a View

50.

The ROLLBACK command is used to restore database to its previous condition

a)

ADVANCED SQL

b)

Restoring Table Contents

c)

Saving Table Content

d)

Creating a View

51.

A relational operation that causes two tables with a common domain to be combined into a single-table or view.

a)

SQL Joins

b)

Restoring Table Contents

c)

Saving Table Content

d)

Creating a View

52.

Selects records that have matching values in both tables.

a)

SQL Joins

b)

Restoring Table Contents

c)

INNER JOIN

d)

Creating a View

53.

SYNTAX:

SELECT columnname(s)

FROM tablename

LEFT JOIN tablename

ON tablename.columnname = tablename.columnname;

a)

SQL Joins

b)

LEFT JOIN

c)

INNER JOIN

d)

RIGHT JOIN

54.

SYNTAX:

SELECT columnname(s)

FROM tablename

RIGHT JOIN tablename

ON tablename.columnname = tablename.columnname;

a)

SQL Joins

b)

LEFT JOIN

c)

INNER JOIN

d)

RIGHT JOIN

55.

Operator used to combine the results of two or more SELECT statements.

a)

TRANSACTION

b)

UNION

c)

INTERSECT

d)

MINUS

56.

A logical unit of work that must be either entirely completed or aborted.

a)

TRANSACTION

b)

UNION

c)

INTERSECT

d)

MINUS

57.

A logical unit of work that must be either entirely completed or aborted.

a)

TRANSACTION

b)

UNION

c)

INTERSECT

d)

MINUS

58.

All properties of a transaction must be completed.

a)

ISOLATION

b)

ATOMICITY

c)

CONSISTENCY

d)

DURABILITY

59.

Permanence of database’s consistent state

a)

ISOLATION

b)

ATOMICITY

c)

CONSISTENCY

d)

DURABILITY

60.

Data used during transaction cannot be used by second transaction until the first is completed.

a)

ISOLATION

b)

ATOMICITY

c)

CONSISTENCY

d)

DURABILITY

61.

Once transaction are committed, they cannot be undone.

a)

ISOLATION

b)

ATOMICITY

c)

CONSISTENCY

d)

DURABILITY

62.

Concurrent execution of several transaction yields consistent results.

a)

ISOLATION

b)

ATOMICITY

c)

SERIALIZABILITY

d)

DURABILITY

63.

ANSI has defined standards that govern SQL transactions

a)

Lost Updates

b)

Transaction Management with SQL

c)

Concurrency Control

d)

The Transaction Log

64.

it stores a record for the beginning of transaction.

a)

Lost Updates

b)

Transaction Management with SQL

c)

Concurrency Control

d)

The Transaction Log

65.

Coordination of simultaneous transaction execution in multiprocessing database.

a)

Lost Updates

b)

Transaction Management with SQL

c)

Concurrency Control

d)

The Transaction Log

66.

Problem that has Two concurrent transaction update same data element

a)

Lost Updates

b)

Transaction Management with SQL

c)

Concurrency Control

d)

The Transaction Log

67.

First transaction rolled back after second already accessed uncommitted data.

a)

Lost Updates

b)

Inconsistent Retrievals

c)

Uncommitted Data

d)

The Scheduler

68.

Transaction might read some data before they are changed and other data after changed

a)

Lost Updates

b)

Inconsistent Retrievals

c)

Uncommitted Data

d)

The Scheduler

69.

Interleaves execution of database operations:

○ Ensures serializability.

○ Ensures isolation.

a)

Lost Updates

b)

Inconsistent Retrievals

c)

Uncommitted Data

d)

The Scheduler

70.

It Guarantees exclusive use of a data item to a current transaction

a)

Lock

b)

Lock Manager

c)

Lock Granularity

71.

Responsible for assigning and policing the locks used by transactions.

a)

Lock

b)

Lock Manager

c)

Lock Granularity

72.

It Indicates level of lock use

a)

Lock

b)

Lock Manager

c)

Lock Granularity

73.

Entire database is locked.

a)

Row-level lock

b)

Table-level lock

c)

Database-level lock

d)

Page-level lock

74.

Entire table is locked.

a)

Row-level lock

b)

Table-level lock

c)

Database-level lock

d)

Page-level lock

75.

Entire disk page is locked.

a)

Row-level lock

b)

Table-level lock

c)

Database-level lock

d)

Page-level lock

76.

Allows concurrent transaction to access different rows of same table.

a)

Row-level lock

b)

Table-level lock

c)

Database-level lock

d)

Page-level lock

77.

Allows concurrent transaction the access same

a)

Field-level lock

b)

Table-level lock

c)

Database-level lock

d)

Page-level lock

78.

Two states: locked (1) or unlocked (0).

a)

Exclusive lock

b)

Binary lock

c)

Shared lock

79.

Access is specifically reserved for transaction that locked object.

a)

Exclusive lock

b)

Binary lock

c)

Shared lock

80.

Access is specifically reserved for transaction that locked object.

a)

Exclusive lock

b)

Binary lock

c)

Shared lock

81.

Concurrent transactions are granted read access on basis of a common lock.

a)

Exclusive lock

b)

Binary lock

c)

Shared lock

82.

a Two Phase Locking that Transaction acquires all required locks without unlocking any data.

a)

Glowing Phase

b)

Shrinking Phase

c)

Growing Phase

d)

Arriving Phase

83.

a Two Phase Locking that Transaction release all locks and cannot obtain any new lock.

a)

Glowing Phase

b)

Shrinking Phase

c)

Growing Phase

d)

Arriving Phase

84.

Condition that occurs when two transactions wait for each other to unlock data.

a)

Locks

b)

Deadlocks

c)

Lock Types

d)

Lock Granularity