Académique Documents
Professionnel Documents
Culture Documents
0371240
Examination
Booklet
Contributed by:
2006/2007
b,c,d
=b,d,e
None of these
All of these
A.
B.
C.
D.
attribute
=record
field
table
DCL
DDL
=DML
None of these
=reduces
increases
=True
False
True
=False
.database
.C. maintaining data integrity and coordinate data sharing
A.
B.
C.
D.
A and B
B and C
=All of the above
None of the above
15) What are the two types of tables that can be created in a RDBMS?
A.
B.
C.
permanent
=temporary
both temporary and permanent
A
C
=C, D
All of the above
A and D
B and C
A, C and D
=All of the above
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.
B.
C.
D.
=database system
data structure
file processing system
file-oriented system
transaction file
work file
=history file
security file
transaction file
work file
history file
security file
system manager
technology manager
database manager
=database administrator
C. =query
D. user-oriented
26) A _____ refers to the complete definition of a database, including
descriptions of all fields, tables, and relationships.
A.
B.
C.
D.
=schema
data repository
data manipulation language
none of the above
27) Intranets and extranets use the same protocols as the Internet;
they are called _____.
A.
B.
C.
D.
=Web-centric
externally aligned
frame compatible
HTML-based
=Middleware
application
protocol
extranet
29) ______ is the language used to write Web pages for the Internet.
A.
B.
C.
D.
THML
LMHT
MHTL
=HTML
student
a patients name
an employees ID
=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.
=referential integrity
domain integrity.
entity integrity constraint.
a data validation constraint.
33) A(n) ____________ is a person, place, thing, or event for which data
is collected and maintained.
A.
B.
C.
D.
primary key
=table
record
entity
foreign key
=secondary key
ERD
command key
1:1
=M:N
1:M
all of the above
=parent
child.
mother
brother
doves foot
birds foot
= foot
any one from the above
=
many
zero
one and only one
a repetitive group
unfixed
=
1NF
=unnormalized
1NF
2NF
3NF
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.
10
record
table
field
primary key
one
many
zero
one and only one
Compatibility
referential integrity
cardinality
normalization
11
User data.
system data.
Information data.
All of the above.
DDL.
DCL.
DML.
DFL.
DDL.
DCL.
DML.
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.
B.
C.
D.
DDL.
DCL.
DML.
DFL.
12
A.
B.
C.
D.
63)SQL is:
A.
B.
C.
D.
Statement by statement.
Block of statements together.
All of the statements together.
B and C.
DDL.
DML.
DCL.
None of the above.
68)SQL*Plus is:
A.
B.
C.
D.
13
E. is an Oracle tool an
69)SQL :
A.
B.
C.
D.
A language
ANSI standard
Keyword cannot be abbreviated.
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.
B.
C.
D.
: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 :
:which of the following SQL statements likely produced the output above
14
A.
B.
C.
D.
: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 :
:which of the following SQL statements likely produced the output above
A.
B.
C.
D.
76)Functions are a very powerful feature of SQL and can be used to do:
A.
B.
C.
D.
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
15
LENGTH
Trim
LPAD
CONCAT
79)NVL Function
A.
B.
C.
D.
where clause
having clause
from clause.
All of the above.
84)when you need to display all the possible combinations of rows from
.multiple tables, we use
A. Outer join
16
B. Self join
C. Cartesian product
D. Non equijoin.
85)When you want to write a simple join query, the minimum number of
join conditions required is :
A.
B.
C.
D.
17
2
3
4
2
3
4
A. SQL>select ename,
B. SQL> select ename,
to_char(hiredate, 'dd "of"
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
C. SQL> select ename, to_date(hiredate, D. SQL> select ename,
'ddspth
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
18
A.
C.
SQL> SELECT ename, comm,
(sal*12)+
NVL(COMM,'NO COMM')
FROM emp 3
;'where ename = 'KING 4
B.
SQL> SELECT ename,
comm, (sal*12)+
NVL(COMM,0)
FROM emp
;'where ename = 'KING
D.
SQL> SELECT ename, sal,
comm,
COMM +(sal*12)
FROM emp 3
;'where ename = 'KING 4
19
@
#
||
/
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.
B.
C.
D.
20
99)You may use the contents of the following code block to answer this
question:
;SQL> select * from dept
DEPTNO DNAME LOC
------------- -------------- --------ACCOUNTING NEW YORK 10
RESEARCH DALLAS 20
SALES CHICAGO 30
OPERATIONS BOSTON 40
,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.
B.
C.
D.
21
table [(column [,
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.
B.
C.
D.
simple value.
An expression.
subquery.
All of the above.
22
107) DELETE [FROM] table [WHERE condition]; from the above syntax
if you omit the where clause.
A.
B.
C.
D.
110) You can change a columns datatype, size, and default value by
using.
A. alter statement.
B. Modify statement.
C. Resize statement.
23
Number of Question
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Answer
C
A
B
B
B
A
C
A
D
C
B
A
D
B
A
A
A
B
A
A
A
A
C
D
A
A
B
D
C
Number of Question
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
21
22
23
24
25
26
27
28
29
30
Answer
B
B
A
C
B
C
B
C
A
A
A
B
C
C
A
B
C
D
A
A
C
B
D
C
A
A
A
D
D
24
Number of Question
60
61
62
63
64
65
Number 66
of Question
67
89
68
90
69
91
70
92
71
93
72
94
73
95
74
96
75
97
76
98
77
99
78
100
79
101
80
102
81
103
82
104
83
105
84
106
85
107
86
108
87
109
88
110
Answer
A
B
D
D
A
C
Answer
A
BB
DA
DA
DB
BA
AA
DC
BD
BC
DD
DA
CA
AD
CA
BB
DA
DB
CD
AA
25
AD
CC
BA