DBT - Mock4 - 0923 For Students
DBT - Mock4 - 0923 For Students
a two-dimensional
11 Each table is perceived as a flat structure. a linked structure. None of the above Option2
structure.
Which one is a TCL (or DTL) statement?
12 update Truncate Alter RollBack Option4
Select EMPNO
Select * from EMP Select EMPNO from where EMPNO =
Which of the following statement contain Select EMPNO
14 where EMP where 56949 and Option4
an error? from EMP;
EMPNO=493945; EMPNO=493945; LASTNAME='SMIT
H';
Correct
Q. No. Question Option1 Option2 Option3 Option4
Option No.
The transaction control that prevents
15 more than one user from updating data in Locks Commits Rollbacks Savepoints Option1
a table is called __________.
Which of the following has the same
16 <= := != > Option3
meaning as <>?
Data is raw facts whereas Information is
17 TRUE FALSE Option1
meaningful data.
In an RDBMS, relationship between 2
18 TRUE FALSE Option2
files is maintained programmatically.
DBMS does not support Distributed
19 TRUE FALSE Option1
atabases.
20 Null value is independent of datatype. TRUE FALSE Option1
The Relational operator < has higher
21 TRUE FALSE Option2
precedence than >.
By default, the ORDER BY clause returns
22 TRUE FALSE Option1
output in ascending order.
23 You can commit to a savepoint. TRUE FALSE Option2
24 Dual is a system table. TRUE FALSE Option1
The work done by the computer to
25 convert Information into Data is known TRUE FALSE Option2
as processing.
DBMS does not support Client-Server
26 TRUE FALSE Option1
architecture.
In MySQL, the upper limit for table name
27 TRUE FALSE Option1
is 30 characters.
You can specify an Alias only for
28 computed fields and not for ordinary TRUE FALSE Option2
columns of a table.
You can Commit to a savepoint but you
29 TRUE FALSE Option2
cannot Rollback to a savepoint.
_____ holds the definitions of all of the
30 database data disctionary data source data mining Option2
data tables.
The ____ operator is used for pattern
31 DISTINCT LIKE GROUP BY ORDER BY Option2
matching.
All SQL
Only DML
32 Rollback and Commit affect Only DDL statements Both (a) and (b) statements Option1
statements
executed
Which of the following is invalid rollback ROLLBACK TO
33 ROLLBACK; ROLLBACK WORK; None of the above Option4
statement in MySQL? SAVEPOINT A;
Correct
Q. No. Question Option1 Option2 Option3 Option4
Option No.
The delete
The delete statement The delete The delete
Omitting the WHERE clause from a statement will fail
will prompt the user statement will fail statement will
34 DELETE statement has which of the because there are Option4
to enter the criteria because of syntax remove all records
following effects? no records to
for the deletion. error. from the table.
delete.
The transaction control that prevents
35 more than one user from updating data in Locks Commits Rollbacks Savepoints Option1
a table is called __________.
Accepts a number & Accepts a character Accepts a number
36 CHAR( ) function returns the & returns the & returns the None of the above Option1
character number number
Saves the changes
Saves the previous Saves the changes
37 A COMMIT statement for the current None of the above Option1
changes for all sessions
session
How many columns are presented after
executing this query:
SELECT
38 3 2 1 ERROR Option3
address1||','||address2||','||address2
"Address" FROM employee;
All statements
Only DML
42 Rollback and Commit affect Only DDL statements Both (1) and (2) executed in Option1
statements
SQL*PLUS
In order to select data that is within a
43 range of values, the "BETWEEN" operator TRUE FALSE Option1
is used.
One row many One column and One row and One Many Rows and
44 The DUAL table has Option3
columns many Rows Column many columns
Correct
Q. No. Question Option1 Option2 Option3 Option4
Option No.
____ makes a string of certain length by
45 adding a certain set of characters to the LTRIM LPAD SUBSTR INSTR Option2
left
Wildcards used for pattern matching are
46 _______. * and ? $ and # @and! % and _ Option4
SELECT SELECT
SELECT
2. SELECT (column_name) (column_name)
(column_name)
(column_name) FROM HAVING (function
Which of the following is the correct HAVING (function
FROM (entity_name) (entity_name) condition)
63 syntax for using the HAVING clause? condition) GROUP Option2
GROUP BY HAVING (function FROM
BY
(column_name) condition) (entity_name)
(column_name)FRO
HAVING (function GROUP BY GROUP BY
M (entity_name);
condition); (column_name); (column_name);
Which of the following SQL functions can
64 TO_CHAR LOWER LPAD MAX Option4
operate on any datatype?
To include certain
To put returned To execute certain To include certain
Which of the following uses of the data groups based
65 data into sorted data groups based data groups based Option4
HAVING clause are appropriate? on unknown
order. on known criteria. on known criteria
criteria.
Which of the following is not a group
66 LTRIM2. MAX MAX MIND STDDEV Option1
function.
Select CEIL(MOD(POWER(2,3),
FLOOR(3.5))) from dual;
67 What is the result of the above 0 1 2 4 Option3
statement?
Three joinsmake
If five tables are given & three join
Cartesian product relation between We cannot apply
70 conditions are given & select Query is None of above Option2
of first 3 tables four tables& keep 3 joins on 5 tables
applied then what will happen?
the fifth independent
The BLOB datatype stores what type of
71 Character data Binary data Numeric data ASCII data Option2
data?
inner query
The inner query The outer query fires firesfor every row
72 In a correlated query no order Option3
fires first first returned by outer
query
The limit of level of nesting is __________
73 255 1024 1000 2000 Option1
subqueries in SQL
74 EXISTS,SOME, ANY are operators in SQL TRUE FALSE Option1
retrieve data
based on an
A subquery can be used to _________. create groups of sort data in a specific convert data to a
87 unknown Option4
data order different format
condition
Open—Declare--
Declare--Fetch and Declare—Open-- Declare--Open--
________ is the sequence of steps for Fetch and Process
119 Process Iteratively-- Close-- Fetch and Fetch and Process Option3
handling Explicit cursors Iteratively--Close
Open—Close Process Iteratively Iteratively--Close