An MCQ on ISA - Philadelphia University



Data Base

0371240

Examination

Booklet

Contributed by:

Mr. Ahmed Al-Ghoul

Faculty of Administrative and Financial Sciences Business Networking and Systems Management Department

Database Management System

lecturer :- Ahmad Al_Ghoul

2006/2007

1) Which of the following languages is used to define the schema of the database?

A. DCL

B. =DDL

C. DML

D. None of these

2) The DML is used for:

a) Creating tables

b) =Retrieving data

c) Deleting users

d) Inserting data

e) Deleting data

A. b,c,d

B. =b,d,e

C. None of these

D. All of these

3) Which language is used to permit or prohibit access to a table?

A. =DCL

B. DDL

C. DML

D. All of these

4) The relationship between data is defined in the _______.

A. physical level

B. =view level

C. =logical level

5) The security features of the database are set up by the _______.

A. Online Users

B. =Database Administrator

C. =Naive Users

D. Application Programmer

6) Which of the following are the roles of the Database Administrator:

a) Managing security issues

b) Storage structure definition

c) Develop application programs

d) Take backups of the database

A. a

B. a,b,c

C. =a,b,d

D. All of these

7) A group of associated fields is called a _______.

A. attribute

B. =record

C. field

D. table

8) Which language is used to define the integrity constraints?

A. DCL

B. DDL

C. =DML

D. None of these

9) The database oriented approach _______ the redundancy of data compared to the file oriented approach.

A. =reduces

B. increases

10) SQL is platform independent.

A. =True

B. False

11) SQL is a _______ language.

A. =non-procedural

B. object-oriented

C. procedural

12) SQL statements can be executed without a DBMS.

A. True

B. =False

13) SQL stands for _______.

A. Structured Question Language

B. Structural Query Language

C. =Structured Query Language

D. Systematic Query Language

14) SQL is used for:

A. creating, managing and deleting tables and manage the relationships among the stored date.

B. generating queries, organizing, managing and retrieving data stored in a database.

C. maintaining data integrity and coordinate data sharing.

A. A and B

B. B and C

C. =All of the above

D. None of the above

15) What are the two types of tables that can be created in a RDBMS?

A. =Permanent and Temporary

B. Static and Dynamic

C. Local and Global

16) The ON COMMIT clause can be applied to _______ tables.

A. permanent

B. =temporary

C. both temporary and permanent

17) Which of the following are valid column constraints:

A. NULL

B. DISTINCT

C CHECK

D. FOREIGN KEY

A. A

B. C

C. =C, D

D. All of the above

18) Which of the following are valid table constraints:

A. PRIMARY KEY

B. UNIQUE

C. CHECK

D. FOREIGN KEY

A. A and D

B. B and C

C. A, C and D

D. =All of the above

19) Table constraints can be applied to individual columns and groups of columns.

A. True

B. False

20) Which of these describes a major advantage in using databases for storing data?

A. The data have a better chance of being available for the user in an accurate, integral form.

B. All of the data is stored in one place and therefore more vulnerable to loss or destruction.

C. Bureaucratic procedures may make it difficult for users to access data.

D. Data retrieval cannot be optimized for a single application.

21) A _______________ consists of linked tables that form one overall data structure.

A. =database system

B. data structure

C. file processing system

D. file-oriented system

22) Which of the following is used for archiving purposes?

A. transaction file

B. work file

C. =history file

D. security file

23) Which of the following is used as a temporary file created by an information system for a single task?

A. transaction file

B. work file

C. history file

D. security file

24) Typically, a database management system is managed by a person called a _____________.

A. system manager

B. technology manager

C. database manager

D. =database administrator

25) A _____ language allows a user to specify a task without specifying how the task will be accomplished.

A. programming

B. database

C. =query

D. user-oriented

26) A _____ refers to the complete definition of a database, including descriptions of all fields, tables, and relationships.

A. =schema

B. data repository

C. data manipulation language

D. none of the above

27) Intranets and extranets use the same protocols as the Internet; they are called _____.

A. =Web-centric

B. externally aligned

C. frame compatible

D. HTML-based

28) A (n) _________ is software that connects dissimilar applications and enables them to communicate and exchange data.

A. =Middleware

B. application

C. protocol

D. extranet

29) ______ is the language used to write Web pages for the Internet.

A. THML

B. LMHT

C. MHTL

D. =HTML

30) Which of these is an example of an entity?

A. student

B. a patient’s name

C. an employee’s ID

D. =all of the above

31) The rule that a primary key cannot have a null value, and if the primary key is a composite key, none of the component fields can contain a null value is referred to as:

A. referential integrity

B. domain integrity.

C. =entity integrity constraint.

D. a data validation constraint.

32) The rule that requires that a foreign key value cannot be entered in one table unless it matches an existing primary key in another table

A. =referential integrity

B. domain integrity.

C. entity integrity constraint.

D. a data validation constraint.

33) A(n) ____________ is a person, place, thing, or event for which data is collected and maintained.

A. primary key

B. =table

C. record

D. entity

34) A(n) ____________ is a field or combination of fields that can be used to access or retrieve records.

A. foreign key

B. =secondary key

C. ERD

D. command key

35) A _____ relationship has an associative entity with its own characteristics.

A. 1:1

B. =M:N

C. 1:M

D. all of the above

36) The first entity in the relationship is the _________ entity.

A. =parent

B. child.

C. mother

D. brother

37) A type of cardinality notation called _______ notation because of the shapes

A. dove’s foot

B. bird’s foot

C. = foot

D. any one from the above

38) In a crow’s foot cardinality notation a single bar indicates

A. =

B. many

C. zero

D. one and only one

39) In a crow’s foot cardinality notation a double bar indicates

A. one

B. many

C. zero

D. =one and only one

40) A table design that contains a repeating group is called_______ .

A. a repetitive group

B. unfixed

C. =

D. 1NF

41) Standard notation format is represented in the example of_____.

A. FIELD 1: NAME (FIELD 2, FIELD 3)

B. =NAME (FIELD 1, FIELD 2, FIELD 3)

C. (FIELD 1, FIELD 2, FIELD 3)

D. ,FIELD 2, FIELD 3 (NAME)

42) A (n) __________ record is one that contains a repeating group.

A. =unnormalized

B. 1NF

C. 2NF

D. 3NF

43) in the 1NF

A. All key attributes defined

B. No repeating groups in a table

C. All attributes dependent on a primary key

D. =All of the above

44) What are the three steps of normalization to third normal form for databases?

A. Identify the primary key, select secondary keys, and define relationships.

B. =Remove repeating groups, remove partial dependencies, and remove transitive dependencies.

C. Define entities, select relationships, and define attributes.

D. None of the above is correct.

45) A table design is in __________________ if it is 1NF and if all the fields that are not part of the primary key are functionally dependent on the entire primary key.

A. second normal form

B. third normal form

C. fourth normal form

D. fifth normal form

46) Non key field is a field that is________________

A. not a candidate key for the primary key

B. a candidate key for the primary key

C. a primary key

D. none of the above is correct

47) STUDENT (STUDENT-NUMBER, STUDENT-NAME, TOTAL-CREDITS,

GPA, ADVISOR-NUMBER, ADVISOR-NAME, (COURSE-NUMBER, COURSE-DESC, NUM-CREDITS, GRADE))

The STUDENT table above is___________

A. unnormalized

B. in the 1NF

C. in the 2NF

D. in the 3NF

48) STUDENT (STUDENT-NUMBER, STUDENT-NAME, TOTAL-CREDITS, GPA, ADVISOR-NUMBER, ADVISOR-NAME, COURSE-NUMBER, COURSE-DESC, NUM-CREDITS, GRADE)

The STUDENT table above is ________________

A. unnormalized

B. in the 1NF

C. in the 2NF

D. in the 3NF

49) A _____ contains records that contain day-to-day business and operational data.

A. transaction file

B. work file

C. table file

D. master file

50) Scalability refers to _____.

A. a system can be modified, expanded, or down-sized easily to meet changing needs .

B. data can be shared across the enterprise, allowing more users access to more data .

C. consistent standards are set for data names, formats, and documentation .

D. systems are relatively independent of how the physical data is maintained.

51) _________ is an industry-standard protocol that makes it possible for software from different vendors to interact and exchange data uses SQL

Statements.

A. ODBC

B. JDBC

C. HTML

D. XML

52) A (n) _____________ is a query language that allows PC users to communicate with servers and mainframe computers.

A. structured query language.

B. standard query language.

C. procedural query language.

D. manipulation query language.

53) A _____ refers to a single characteristic or fact about an entity.

A. record

B. table

C. field

D. primary key 

54) In a crow’s foot cardinality notation a circle indicates

A. one

B. many

C. zero

D. one and only one

55) The process of creating table designs by assigning specific files or attributes to each table in the database is _____.

A. Compatibility

B. referential integrity

C. cardinality

D. normalization

56) in the 2NF

A. Attributes may be functionally dependent on nonkey attributes

B. No attribute dependent on a nonkey attribute

C. no attributes dependent on a primary key

D. none of the above is correct

57) Data that the db needs to manage itself is called.

A. User data.

B. system data.

C. Information data.

D. All of the above.

58) The Redo Logs (Transaction log)

A. A type of operating system files.

B. In which Oracle records all changes or transactions that happen to the db.

C. Redo logs work in a circular fashion.

D. all of the above.

59) SQL Commands that allow you to manipulate data in existing database objects is called.

A. DDL.

B. DCL.

C. DML.

D. DFL.

60) You can create a new object in a data base by.

A. DDL.

B. DCL.

C. DML.

D. DFL.

61) the category that includes commands that protect the integrity of the database and the consistency of data by controlling and managing the access to the database structures.

A. DDL.

B. DCL.

C. DML.

D. DFL.

62) Arithmetic Expressions can be used with.

A. With number data type.

B. With date data type.

C. With character data type.

D. Both a and b

63) SQL is:

A. Procedural Query Language.

B. Structure Query Language.

C. Non procedural Language.

D. B and C.

64) In SQL; the statements are executed:

A. Statement by statement.

B. Block of statements together.

C. All of the statements together.

D. B and C.

65) Rollback segments used for:

A. Records all changes or transactions that happen to the DB.

B. Used to recover the committed data that’s not written to the data files.

C. Used to undo transaction.

D. Used to hold users personal information.

66) Commands in data definition language (DDL) allow you:

A. Modify the structure of the DB.

B. Manipulate data in existing DB objects.

C. Protect the integrity of the DB.

D. All of the above.

67) The ‘Insert’ command is one of the popular command in:

A. DDL.

B. DML.

C. DCL.

D. None of the above.

68) SQL*Plus is:

A. Procedural Query Language.

B. Structure Query Language.

C. Non procedural Language.

D. Is an oracle tool.

E. is an Oracle tool an

69) SQL :

A. A language

B. ANSI standard

C. Keyword cannot be abbreviated.

D. All of the above.

70) If you divide number 500 on the number one, then you add 200, multiply the result by null. The result will be:

A. You get an error.

B. You get 200.

C. You get 700.

D. You get null value.

71) Commands in data definition language (DML) allow you:

A. Modify the structure of the DB.

B. Manipulate data in existing DB objects.

C. Protect the integrity of the DB.

D. All of the above.

72) Review the following output :

[pic]

which of the following SQL statements likely produced the output above:

A. select deptno || ' ' || dname || ' in ' || loc Departments from dept;

B. select deptno || “ “ || dname || “ in “ || loc DEPARTMENT from dept;

C. select deptno || ' ' || ‘dname’ || ' in ' || loc DEPARTMENT from dept;

D. select dname || ' ' || deptno || in || loc departments from dept;

73) Review the following output :

[pic]

which of the following SQL statements likely produced the output above:

A. select job from emp;

B. select job from emp where job is not null;

C. select * from emp;

D. select distinct job from emp;

74) Review the following output :

[pic]

which of the following SQL statements likely produced the output above:

A. select deptno as Department_Number, dname as Name, loc location from dept;

B. select deptno as "Department_Number", dname name, loc "Location"

from dept;

C. select deptno as ‘Department_Number’, dname name, loc ‘Location’

from dept;

D. select "Department_Number", NAME, "LOCATION"

from dept;

75) Review the following output :

[pic]

which of the following SQL statements likely produced the output above:

A. select ename from emp where ename like J_M%S;

B. select ename from emp where ename like 'J_M%S';

C. select ename from emp where ename like 'j_m%s';

D. select ename from emp where ename like 'J_MS %';

76) Functions are a very powerful feature of SQL and can be used to do:

A. Perform calculations on data

B. Manipulate output for groups of rows

C. Format dates and numbers for display

D. All of the above

77) Functions are a very powerful feature of SQL and can be used to do:

A. Perform calculations on data

B. Manipulate output for groups of rows

C. Format dates and numbers for display

D. All of the above

78) The function that Pads the character value right-justified is.

A. LENGTH

B. Trim

C. LPAD

D. CONCAT

79) NVL Function

A. Converts null to an actual value

B. Converts date to an character data type.

C. Converts null to numbers.

D. Converts numbers to a null value.

80) Outer join operator is

A. The plus sign (+).

B. The minus sign (-).

C. The multiply sign ( * ).

D. None of the above.

81) ( select e.ename, d.deptno, d.dname |SQL> select e.ename, d.deptno, d.dname |

|2 FROM emp e, dept d |2 FROM emp e, dept d |

|3 WHERE e.deptno(+) = d.deptno; |3 WHERE e.deptno = d.deptno(+) |

|4 and d.deptno=40; |4 and d.deptno=40; |

|SQL> SELECT e.ename, d.deptno, d.dname |SQL> select e.ename, d.deptno, d.dname |

|2 FROM emp e, dept d |2 FROM emp e, dept d |

|3 WHERE e.deptno = d.deptno(+); |3 WHERE e.deptno(+) = d.deptno(+) |

| |4 and deptno = 40; |

91) Review the following output :

[pic]

|SQL> SELECT deptno, AVG(sal( |SQL> select deptno, AVG(sal) |

|2 FROM emp |2 FROM emp |

|3 GROUP BY deptno |3 WHERE AVG(sal) > 2000 |

|4 having avg(sal) >2000 |4 GROUP BY deptno; |

|SQL> SELECT deptno, AVG(sal) |SQL> SELECT deptno, AVG(sal) |

|2 FROM emp |2 FROM emp |

|3 GROUP BY avg(sal) |3 where sal>1500 |

|4 having avg(sal) >2000; |4 GROUP BY deptno |

| |5 having avg(sal)>2000; |

92) Review the following output :

[pic]

|SQL>select ename, to_char(hiredate, 'dd "of" |SQL> select ename, to_char(hiredate, |

|month yyyy HH:MI:SS AM') Hiredate |‘fmddspth “of” month yyyy |

|from emp |fmHH:MI:SS AM’) hiredate |

|where ename='KING'; |from emp |

| |where ename= ‘KING’; |

|SQL> select ename, to_date(hiredate, 'ddspth |SQL> select ename, to_char(hiredate, |

|"of" month yyyy |'ddspth "of" month year |

|HH:MI:SS AM') hiredate |HH:MI:SS AM') hiredate |

|from emp |from emp |

|where ename='KING'; |where ename='KING'; |

93) Review the following output :

[pic]

|SQL> select ename, sal, comm, |SQL> SELECT ename, comm, (sal*12)+ |

|(sal*12)+NVL(comm,0) |NVL(COMM,0) |

|FROM emp |FROM emp |

|where ename = 'KING'; |where ename = 'KING'; |

|SQL> SELECT ename, comm, (sal*12)+ |SQL> SELECT ename, sal, comm, |

|NVL(COMM,'NO COMM') |(sal*12)+ COMM |

|3 FROM emp |3 FROM emp |

|4 where ename = 'KING'; |4 where ename = 'KING'; |

94) You are determining which type of SQL statement to use in your Oracle database. Which of the following choices identifies the type of statement you would use when trying to obtain data from the database?

A. select

B. update

C. insert

D. delete

95) You are identifying a table for use in your select clause that was not created by you. Which of the following choices identifies the reference that must be included in your select statement so that Oracle knows where to look for the information?

A. Alias

B. Schema

C. Expression

D. Session

96) Use the following code block to answer this question:

SQL> select empno, ename, mgr

from emp;

EMPNO ENAME MGR

--------- ---------- ---------

7369 SMITH 7902

7499 ALLEN 7698

7521 WARD 7698

7566 JONES 7839

7654 MARTIN 7698

7698 BLAKE 7839

7782 CLARK 7839

7788 SCOTT 7566

7839 KING

7844 TURNER 7698

7876 ADAMS 7788

7900 JAMES 7698

7902 FORD 7566

7934 MILLER 7782

SQL> select empno, ename, nvl(mgr,'none') as mgr

from emp;

Which of the following choices describes what Oracle will return as the

output in the MGR column for KING’s record from this query?

A. Oracle returns NULL in the MGR column for KING’s record.

B. Oracle returns MGR in the MGR column for KING’s record.

C. Oracle returns NONE in the MGR column for KING’s record.

D. Oracle returns an error.

97) You are concatenating information from two columns in an SQL query. Which of the following choices best identifies the special character required for this operation?

A. @

B. #

C. ||

D. /

98) You may use the contents from the standard EMP table used in this discussion to answer the following question. You are attempting to calculate 20 percent of the salary and commission for all employees of the company. Which of the following SQL statements would be appropriate for the task?

A. select empno, ename, sal/20, comm/20 from emp;

B. select empno, ename, sal*20, comm*20 from emp;

C. select empno, ename, sal/.20, comm/.20 from emp;

D. select empno, ename, sal*.20, comm*.20 from emp;

99) You may use the contents of the following code block to answer this question:

SQL> select * from dept;

DEPTNO DNAME LOC

--------- -------------- -------------

10 ACCOUNTING NEW YORK

20 RESEARCH DALLAS

30 SALES CHICAGO

40 OPERATIONS BOSTON

You issue the following statement in Oracle: select distinct dname,

loc from dept. Which of the following choices correctly describes the

result Oracle will return?

A. Oracle returns the distinct combinations of values from DNAME and LOC.

B. Oracle returns only three distinct values from DNAME in the DEPT table.

C. Oracle returns only the distinct values from the DEPTNO column.

D. Oracle returns the contents of all four records from the table.

100) Review the following output from a SQL*Plus session:

Name Null? Type

----------------------------- -------- ------------

SYMPTOM NOT NULL VARCHAR2(10)

CAUSE VARCHAR2(10)

TREATMENT VARCHAR2(9)

Which of the following keywords likely produced the output above?

A. describe

B. get

C. run

D. spool

101) A DML statement is executed when you:

A. Add new rows to a table

B. modify existing rows in a table

C. Remove existing rows from a table

D. all of the above.

102) With the flowing syntax you can INSERT INTO table [(column [, column...])] VALUES(value [, value...]);

A. insert one row at a time.

B. Insert multiple rows at a time.

C. Insert one column at a time.

D. Insert multiple columns at a time.

103) In insert statement If a date is required to be entered in a format other than the default (for example, another century) and/or a specific time is required, you must use

A. the TO_DATE function.

B. the TO_CHAR function.

C. The NVL function.

D. Non of the above.

104) Which of those statements allows the you to add values interactively as below

Enter value for department_id:

Enter value for department_name:

Enter value for location:

A. SQL> INSERT INTO dept (deptno, dname, loc)

VALUES(&department_id, '&department name', '&location');

B. SQL> INSERT INTO dept (deptno, dname, loc)

VALUES(department_id, 'department name', 'location');

C. SQL> INSERT INTO dept (deptno, dname, loc)

(&department_id, '&department name', '&location');

D. non of the above.

105) INSERT INTO table (column [ , column ]) Subquery; The above syntax allow you to

A. insert new row

B. adding a rows to a table by copying rows from anther table.

C. Inserting multiple new rows

D. All of the above

106) when you Modify existing rows with the UPDATE statement the vale can be.

A. simple value.

B. An expression.

C. subquery.

D. All of the above.

107) DELETE [FROM] table [WHERE condition]; from the above syntax if you omit the where clause.

A. all rows in the table are deleted.

B. It will give you an error.

C. No rows will be deleted.

D. Only one row will be deleted.

108) Database transaction end with one of the following events:

A. COMMIT or ROLLBACK is issued

B. DDL or DCL statement executes (automatic commit)

C. User exits

D. all of the above.

109) the user Tables in the Oracle Database contains.

A. Collection of tables created and maintained by the Oracle server

B. Contain database information

C. Collection of tables created and maintained by the user

D. all of the above.

110) You can change a column’s datatype, size, and default value by using.

A. alter statement.

B. Modify statement.

C. Resize statement.

|Number of Question |Answer |

|1 |B |

|2 |B |

|3 |A |

|4 |C |

|5 |B |

|6 |C |

|7 |B |

|8 |C |

|9 |A |

|10 |A |

|11 |A |

|12 |B |

|13 |C |

|14 |C |

|15 |A |

|16 |B |

|17 |C |

|18 |D |

|19 |A |

|21 |A |

|22 |C |

|23 |B |

|24 |D |

|25 |C |

|26 |A |

|27 |A |

|28 |A |

|29 |D |

|30 |D |

|Number of Question |Answer |

|31 |C |

|32 |A |

|33 |B |

|34 |B |

|35 |B |

|36 |A |

|37 |C |

|38 |A |

|39 |D |

|40 |C |

|41 |B |

|42 |A |

|43 |D |

|44 |B |

|45 |A |

|46 |A |

|47 |A |

|48 |B |

|49 |A |

|50 |A |

|51 |A |

|52 |A |

|53 |C |

|54 |D |

|55 |A |

|56 |A |

|57 |B |

|58 |D |

|59 |C |

|Number of Question |Answer |

|60 |A |

|61 |B |

|62 |D |

|63 |D |

|64 |A |

|65 |C |

|66 |A |

|67 |B |

|68 |D |

|69 |D |

|70 |D |

|71 |B |

|72 |A |

|73 |D |

|74 |B |

|75 |B |

|76 |D |

|77 |D |

|78 |C |

|79 |A |

|80 |C |

|81 |B |

|82 |D |

|83 |D |

|84 |C |

|85 |A |

|86 |A |

|87 |C |

|88 |B |

|Number of Question |Answer |

|89 |B |

|90 |A |

|91 |A |

|92 |B |

|93 |A |

|94 |A |

|95 |C |

|96 |D |

|97 |C |

|98 |D |

|99 |A |

|100 |A |

|101 |D |

|102 |A |

|103 |B |

|104 |A |

|105 |B |

|106 |D |

|107 |A |

|108 |D |

|109 |C |

|110 |A |

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download