Presentation is loading. Please wait.

Presentation is loading. Please wait.

PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1

Similar presentations


Presentation on theme: "PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1"— Presentation transcript:

1 PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1

2 Non- procedural language
1. SQL is: Procedural language Non- procedural language Not a data sublanguage None

3 2. To form a projection with SQL:
Name of relation to be projected and the list of column to be shown The keywords SELECT and FROM are optional. The table to be used is listed before the keyword FROM The column to be obtained are listed before the keyword FROM None of these

4 3. To remove duplicate rows this qualifier must be specified:
ONLY UNIQUE DISTINCT SINGLE

5 4. Which SQL keyword is used to name a new table and describe the table column?
Set Create Alter Modify

6 5. Which SQL keyword is used to change the structure, properties, and constraints of the column?
Set Create Alter Modify

7 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

8 7. If a table product has a column price that has the data type numeric (8,2), the value will be displayed by the DBMS as: 123.45 12345

9 8. Which SQL keyword is used to delete a table structure?
Drop Update Alter

10 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

11 10. In an SQL query which keyword is to be used to specify the table’s to be used?
EXISTS From Update Set

12 11. The asterisk means that?
All column All records All records with partial criteria meta re obtained None

13 12. Which SQL keyword is used to state the condition to specify the row to be selected?
EXISTS Where From Select

14 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

15 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

16 15. In an SQL query which built in function is used to compute the no of rows in a table ?
AVG MAX MIN COUNT

17 16. In an SQL query which built in function is used to total numeric columns?
AVG SUM MIN COUNT

18 17. In SQL which built in function is used to compare the average value of numeric column?
AVG MEAN MEAN COUNT

19 18. In an SQL which built in function is used to obtained largest value numeric columns?
AVG MAX MIN COUNT

20 19. In SQL which built in function used to obtain the smallest value of numeric columns?
AVG MIN LOWEST COUNT

21 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

22 21. Which SQL keyword is used with group by to selects group meeting specified criteria?
AND EXIST HAVING IN

23 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

24 23. In an SQL query which SQL keyword is used to implement a sub query?
Group by Having Order by Select

25 24. When one SQL query is embedded in where clause of another SQL query, it is called?
Subset Joins Where query sub query

26 25. In an SQL query which SQL keyword is used to specified the name of table to be joined
From Having Join Select

27 26. In SQL which SQL keyword is used to specify the condition (s) for a join operation?
From Having Where Select

28 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.

29 28. Which SQL keyword is used to add one or more rows in a table?
MODIFY INSERT SELECT NONE

30 29. Which SQL keyword is used to change one or more rows in a table?
MODIFY INSERT SELECT UPDATE

31 30. Which SQL statement is used to change a column value?
INSERT SELECT SET

32 31. Which keyword is used to remove one or more rows in a table?
CHANGE DELETE SET ERASE

33 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

34 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

35 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

36 35. A sub query must be In bold In capital latter In parentheses
In italics

37 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

38 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 NON-EXISTS Subquries can be substituted for all joins

39 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

40 39. EXISTS and NON-EXISTS:
Are logical operators Only works with one or two tables Can return values None of above

41 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

42 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

43 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

44 SELECT with GROUP BY and HAVING
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

45 SELECT with GROUP by and HAVING
44. Which of the following is not an operation used on two or more tables? Subquries Joins EXISTS SELECT with GROUP by and HAVING

46 45. SQL command can be classified into three types which is not an SQL command type?
DDL DML DGL DCL

47 46. Three SQL, DDL, CREATE commands are
Schema, base and table Base, table and schema Key, base and table Schema, table and view

48 47. Which is not an advantage of view?
Simplify query commands Provide data security Enhance programming productivity Decrease system overhead

49 48. Which keyword is not included in most data retrieval statement?
Select As From Where

50 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.

51 What value will be assigned to the variable declared as below − Counter binary integer;
1 NULL None of above


Download ppt "PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1"

Similar presentations


Ads by Google