8. Which SQL keyword is used to delete a table

PL/SQL LANGUAGE
MULITPLE CHOICE
QUESTION SET-1
1. SQL is:
Procedural language
Non- procedural
language
Not a data
sublanguage
None
www.prolearninghub.com
2. To form a projection with SQL:
Name of relation to be
projected and the list of
column to be shown
The keywords
table to beSELECT
used is
The
listed
before
the
and keyword
FROM are
optional.
FROM
The column to be
obtained are listed
before the keyword
FROM
None of these
www.prolearninghub.com
3. To remove duplicate rows this
qualifier must be specified:
ONLY
UNIQUE
DISTINCT
SINGLE
www.prolearninghub.com
4. Which SQL keyword is used to
name a new table and describe the
table column?
Set
Create
Alter
Modify
www.prolearninghub.com
5. Which SQL keyword is used to
change the structure, properties,
and constraints of the column?
Set
Create
Alter
Modify
www.prolearninghub.com
6. If a table PRODUCT has a
column PRICE with datatype
Numebric (8,2), it store value as :
8 digits, decimal point
and 2 more digits
6 digits decimals point
and 2 more digits
10 digits with no stored
decimal points
8 digits with no stored
decimal points
www.prolearninghub.com
7. If a table product has a column
price that has the data type
numeric (8,2), the value 12345 will
be displayed by the DBMS as:
123.45
12345
12345.00
123450.00
www.prolearninghub.com
8. Which SQL keyword is used to
delete a table structure?
Delete
Drop
Update
Alter
www.prolearninghub.com
9. When the correct SQL command
is used to delete a table’s structure
what happens to the data of the
table?
If deleted table is
parent table the data is
referred to child table
If deleted table is child
table the data is added
to parent table
The data in table is
also deleted
Nothing because there
is no data in the table
www.prolearninghub.com
10. In an SQL query which
keyword is to be used to specify
the table’s to be used?
EXISTS
From
Update
Set
www.prolearninghub.com
11. The asterisk means that?
All column
All records
All records with partial
criteria meta re
obtained
None
www.prolearninghub.com
12. Which SQL keyword is used to
state the condition to specify the
row to be selected?
EXISTS
Where
From
Select
www.prolearninghub.com
13. In an SQL query, which SQL
keyword is used to join two
conditions that both must be true
for the rows to be selected?
EXISTS
AND
IN
OR
www.prolearninghub.com
14. In a SQL query which SQL
keyword is used to determine if a
column value is equal to any one
of set of values?
EXIST
AND
IN
OR
www.prolearninghub.com
15. In an SQL query which built in
function is used to compute the
no of rows in a table ?
AVG
MAX
MIN
COUNT
www.prolearninghub.com
16. In an SQL query which built in
function is used to total numeric
columns?
AVG
SUM
MIN
COUNT
www.prolearninghub.com
17. In SQL which built in function
is used to compare the average
value of numeric column?
AVG
MEAN
MEAN
COUNT
www.prolearninghub.com
18. In an SQL which built in
function is used to obtained
largest value numeric columns?
AVG
MAX
MIN
COUNT
www.prolearninghub.com
19. In SQL which built in function
used to obtain the smallest value
of numeric columns?
AVG
MIN
LOWEST
COUNT
www.prolearninghub.com
20. In an SQL query which SQL
keyword is used with built-in
functions to group rows that have
the same value in a specified
column together?
Group by
Order by
Select
Sort by
www.prolearninghub.com
21. Which SQL keyword is used
with group by to selects group
meeting specified criteria?
AND
EXIST
HAVING
IN
www.prolearninghub.com
22. Given a table with structure:
emp (empno, name, salary,
hiredate), which of the following
is not a valid ANSI SQL command:
SELECT * FROM
EMPLYEE WHERE NAME
LIKE JA%
SELECT COUNT (*) FROM
EMPLOYEE WHERE
SALARY >30000
SELECT COUNT (EMPNO)
FROM EMP
SELECT
HIREDATE,COUNT (*)
FROM EMP WHERE
SALARY >30000
www.prolearninghub.com
23. In an SQL query which SQL
keyword is used to implement a
sub query?
Group by
Having
Order by
Select
www.prolearninghub.com
24. When one SQL query is
embedded in where clause of
another SQL query, it is called?
Subset
Joins
Where query
sub query
www.prolearninghub.com
25. In an SQL query which SQL
keyword is used to specified the
name of table to be joined
From
Having
Join
Select
www.prolearninghub.com
26. In SQL which SQL keyword is
used to specify the condition (s)
for a join operation?
From
Having
Where
Select
www.prolearninghub.com
27. Regarding the
interchangeability sub quires and
joins:
Join can always be used as
an alternating to a
subquery, and a subquery
can always be used as an
alternative to a join
A join can sometime be
used as an alternative to a
subquery and a subquery
be sometime as an
alternative to a join
A join can always be used
as an alternative to a
subquery, and a subquery
can sometimes be used as
an alternative to a join.
A join can sometimes be
used as an alternative to a
subquries and subquery
can always be used as an
alternative to a join.
www.prolearninghub.com
28. Which SQL keyword is used to
add one or more rows in a table?
MODIFY
INSERT
SELECT
NONE
www.prolearninghub.com
29. Which SQL keyword is used to
change one or more rows in a
table?
MODIFY
INSERT
SELECT
UPDATE
www.prolearninghub.com
30. Which SQL statement is used to
change a column value?
CHANGE
INSERT
SELECT
SET
www.prolearninghub.com
31. Which keyword is used to
remove one or more rows in a
table?
CHANGE
DELETE
SET
ERASE
www.prolearninghub.com
32. WHERE clause cannot be
referred to ranges and partial
values when ?
The keyword LIKE is
used
Keyword BETWEEN is
used
Keyword NULL is used
Keyword ALSO is
used
www.prolearninghub.com
33. Which of the following are the
five built-in functions provided by
SQL?
COUNT, SUM,
AVG,MIN, MAX
SUM, AVG, MIN,
MAX, MULT
SU, AVG, MIN, MAX,
DIV
SUM, AVG, MIN,
MAX, NAME
www.prolearninghub.com
34. The SQL keyword GROPU BY
instructs the DBMS:
To group the rows
together
To group together
those rows that have
same value of the
column
Both A and B
Neither A and B
www.prolearninghub.com
35. A sub query must be
In bold
In capital latter
In parentheses
In italics
www.prolearninghub.com
36. Which is true about a join:
A join is a combination
of WHERE and
SELECT clause
A join is the
combination of product
operation, followed by a
selection, followed by a
projection
A join is a product of
SELECT FROM
WHERE clause.
A join can be used for
two tables
www.prolearninghub.com
37. Which is true of a join?
A join can be used for
a alternative way of
expressing many
subquries
A join expression can
be substituted for all
subquries expression
A join expression can
be substituted for
EXISTS and NONEXISTS
Subquries can be
substituted for all joins
www.prolearninghub.com
38. An outer join:
Is not supported by
ANSI standard SQL.
Is supported by many
DBMS products
Both A and B
Neither A nor B
www.prolearninghub.com
39. EXISTS and NON-EXISTS:
Are logical operators
Only works with one or
two tables
Can return values
None of above
www.prolearninghub.com
40. When using INSERT:
Rows can be modified
according to criteria
Rows cannot be
copied in mass from
one table to another
Rows can be copied in
mass from one table to
another
Rows can be inserted
into a table
www.prolearninghub.com
41. When using DELETE:
Rows can be delete
one at a time or
groups
It will not cause
integrity problem
Rows can be deleted
one at a time
Order of operation is
not required
www.prolearninghub.com
42. Which is not true about
modifying data?
Rows can be modified one
at a time or in groups
The keyword set is used to
change a column value
After SET, the name of the
column to be changed or
then the new value or way
of computing new value is
specified
Mass update are fast,
easy and cause less
problems
www.prolearninghub.com
43. Which of the following is not
an SQL statement used on a single
table?
SELECT with WHERE
SELECT with GROUP
BY
SELECT with GROUP
BY and HAVING
SELECTION
www.prolearninghub.com
44. Which of the following is not
an operation used on two or more
tables?
Subquries
Joins
EXISTS
SELECT with GROUP
by and HAVING
www.prolearninghub.com
45. SQL command can be classified
into three types which is not an
SQL command type?
DDL
DML
DGL
DCL
www.prolearninghub.com
46. Three SQL, DDL, CREATE
commands are
Schema, base and
table
Base, table and
schema
Key, base and table
Schema, table and
view
www.prolearninghub.com
47. Which is not an advantage of
view?
Simplify query
commands
Provide data security
Enhance programming
productivity
Decrease system
overhead
www.prolearninghub.com
48. Which keyword is not included
in most data retrieval statement?
Select
From
As
Where
www.prolearninghub.com
49. Which of the following is true
about data types in PL/SQL?
Large Object or LOB
data types are pointers
to large objects
The composite data
types have data items
that have internal
components
References are pointers
to other data items.
All of the above.
www.prolearninghub.com
What value will be assigned to the
variable declared as below −
Counter binary integer;
0
1
NULL
None of above
www.prolearninghub.com