Computer Science - SQL, PLUS SQL, PL/SQL , Forms and Reports
Quiz-summary
0 of 240 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 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
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
Information
This is MCQs of Computer Science Subject.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 240 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 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
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- Answered
- Review
-
Question 1 of 240
1. Question
Which of the following activities are you allowed to do after executing the DISCONNECT command?
Correct
Incorrect
-
Question 2 of 240
2. Question
What does the / command do?
Correct
Incorrect
-
Question 3 of 240
3. Question
What command should you try if DBMS_OUTPUT.PUT_LINE is not doing what it is supposed to do?
Correct
Incorrect
-
Question 4 of 240
4. Question
SQL*Plus will know you are typing a PL/SQL block when it encounters the keyword
Correct
Incorrect
-
Question 5 of 240
5. Question
Which of the following is buffered by SQL*Plus?
Correct
Incorrect
-
Question 6 of 240
6. Question
A script file that is executed by SQL*Plus cannot contain
Correct
Incorrect
-
Question 7 of 240
7. Question
Script files can be executed by the
Correct
Incorrect
-
Question 8 of 240
8. Question
To change the format of of the date returned by SYSDATE., use the command
Correct
Incorrect
-
Question 9 of 240
9. Question
Which of the following methods cannot be used to specify a comment in SQL*Plus scripts?
Correct
Incorrect
-
Question 10 of 240
10. Question
The DUAL table has
Correct
Incorrect
-
Question 11 of 240
11. Question
The DESCRIBE command if used on a table, will not display information about
Correct
Incorrect
-
Question 12 of 240
12. Question
The ALL Data Dictionary view lets you access any object
Correct
Incorrect
-
Question 13 of 240
13. Question
A PL/SQL block can return data to SQL*Plus through
Correct
Incorrect
-
Question 14 of 240
14. Question
Which of the following is not a type of data dictionary view?
Correct
Incorrect
-
Question 15 of 240
15. Question
Which of the following information will be displayed when you use the DESCRIBE command on functions?
Correct
Incorrect
-
Question 16 of 240
16. Question
The owner of the DUAL table is
Correct
Incorrect
-
Question 17 of 240
17. Question
Which of the following data dictionary view is used by the DESCRIBE command to extract information about the column?
Correct
Incorrect
-
Question 18 of 240
18. Question
SGA stands for
Correct
Incorrect
-
Question 19 of 240
19. Question
You are executing a SELECT statements. In the display, each row that is displayed spans more than a line and you see a line after a set of 5 records. You can fix this problem by using the
Correct
Incorrect
-
Question 20 of 240
20. Question
Which command is used to get input from the user?
Correct
Incorrect
-
Question 21 of 240
21. Question
Which of the following remarks about SQL*Plus are correct ?
Correct
Incorrect
-
Question 22 of 240
22. Question
To interactively assign a value to a variable, precede the variable name with
Correct
Incorrect
-
Question 23 of 240
23. Question
Which of the following SQL*Plus commands can be used to see the compilation errors in a PL/SQL code?
Correct
Incorrect
-
Question 24 of 240
24. Question
NOT BETWEEN 10 AND 20
Correct
Incorrect
-
Question 25 of 240
25. Question
The SQL statement
SELECT SUBVSTR(‘123456789’,INSTR(‘abcabcabc’), 4) FROM DUAL ;
printsCorrect
Incorrect
-
Question 26 of 240
26. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL WHERE 1 = NULL;
outputsCorrect
Incorrect
-
Question 27 of 240
27. Question
Which of the following group functions ignore NULL values?
Correct
Incorrect
-
Question 28 of 240
28. Question
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE The SQL statement
SELECT COUNT(*) FROM EMPLOYEE WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
printsCorrect
Incorrect
-
Question 29 of 240
29. Question
The SQL statement
SELECT SUBSTR(‘abcdefghij’. INSTR(“123321234′,’2′,3,2), 2) FROM DUAL:
printsCorrect
Incorrect
-
Question 30 of 240
30. Question
From the following combinations of wildcard characters, choose those that are equivalent
Correct
Incorrect
-
Question 31 of 240
31. Question
THE SQL statement
SELECT ROUND (45.926.-1) FROM DUAL;Correct
Incorrect
-
Question 32 of 240
32. Question
Which of the following must be enclosed in double quotes ?
Correct
Incorrect
-
Question 33 of 240
33. Question
If the SQL statement
SELECT NEXT_DAY(’01-SEP-95′,’FRIDAY’) FROM DUAL;
prints
08-SEP-95
what will the SQL statements
SELECT NEXT_DAY(’01-SEP-95′,’SATURDAY’) FROM DUAL ;
print?Correct
Incorrect
-
Question 34 of 240
34. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL WHERE 1 !=NULL;
outputsCorrect
Incorrect
-
Question 35 of 240
35. Question
In SQL, 10/NULL will evaluate to
Correct
Incorrect
-
Question 36 of 240
36. Question
Almost all the DATE functions return a value of data type DATE, except
Correct
Incorrect
-
Question 37 of 240
37. Question
The SELECT statement
SELECT LOWER(‘ABCd’), UPPER (‘ABCd’), INITCAP(‘ABCd eFgh’) FROM DUAL ;
will printCorrect
Incorrect
-
Question 38 of 240
38. Question
The SQL statement
SELECT TRUNC(45.926, -1) FROM DUAL;Correct
Incorrect
-
Question 39 of 240
39. Question
The SQL statement
SELECT SUBSTR(‘123456789′,INSTR(abcabcabc’, ‘b’,4)) FROM DUAL;
printsCorrect
Incorrect
-
Question 40 of 240
40. Question
The SQL statement
SELECT SYSDATE FROM DUAL ;
prints
06-FEB-05
Consider the three SQL statements
SELECT TO_DATE( )LTRIM (RTRIM(‘NOV 23,2005′))),’Mon DD, YY’) FROM DUAL; – Statement 1
SELECT TO_DATE( )RTRIM (LTRIM(‘NOV 23,2005′))),’Mon DD, YY’) FROM DUAL; – Statement 2
SELECT TO_DATE( ‘NOV 23,2005′))),’Mon DD, YY’) FROM DUAL; – Statement 3
Which of these statements gives the same output?Correct
Incorrect
-
Question 41 of 240
41. Question
Which of the following could be the primary key of the OrderInfo table?
Correct
Incorrect
-
Question 42 of 240
42. Question
Which of the following could be the secondary key of the OrderInfo table?
Correct
Incorrect
-
Question 43 of 240
43. Question
If someone talks of order header information, probably he/she is referring to the table,
Correct
Incorrect
-
Question 44 of 240
44. Question
The SQL statement
SELECT SUM(B.Quantity * C.UnitPrice)
FROM CustInfo A, OrderInfo B, ItemInfo C
WHERE A.custNum = 1009
AND A.OrderNum = B.OrderNum
AND B.OrderedItem = C.ItemName;
prints,Correct
Incorrect
-
Question 45 of 240
45. Question
To answer the question – Whose bill is the highest, we need to write a SQL query that joins the tables
Correct
Incorrect
-
Question 46 of 240
46. Question
How many rows does the following SQL query print?
SELECT DISTINCT A.OrderNum, B.OrderNum
FROM CustInfo A, OrderInfo B
GROUP BY (A.OrderNum, B.OrderNum);Correct
Incorrect
-
Question 47 of 240
47. Question
Fill the blanks in the following query that finds the number of orders that ordered for either pen or pencil.
SELECT _________ (DICTINCT __________)
FROM OrderInfo B
WHERE B. OrderItem =’Pen’ ____ B. OrderedItem = _________ ;Correct
Incorrect
-
Question 48 of 240
48. Question
Fill the blanks in the following query that finds the number of customers who ordered for either pen or pencil.
SELECT COUNT(_______ A. CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
_______ B. OrderedItem _____ (‘Pen’,’Pencil’);Correct
Incorrect
-
Question 49 of 240
49. Question
Which of the following CustNum will not be displayed by the following SQL query?
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pen’
UNION
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pencil’;Correct
Incorrect
-
Question 50 of 240
50. Question
How many rows will be displayed by the following SQL query?
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pen’
UNION ALL
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pencil’;Correct
Incorrect
-
Question 51 of 240
51. Question
Which CustNum will not be displayed by the following SQL query?
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pen’
INTERSECT
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = ‘pencil’;Correct
Incorrect
-
Question 52 of 240
52. Question
How many CustNum will be displayed by the following SQL query?
SELECT DISTINCT A.CUStNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem NOT IN (SELECT A.OrderedItem
FROM OrderInfo A
WHERE A.OrderNum IN (2001, 2002));Correct
Incorrect
-
Question 53 of 240
53. Question
How many CustNum will be displayed by the following SQL query?
SELECT A.CUSTNUM
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem IN (‘pen’, ‘Pencil’)
INSTERSECT
SELECT A.CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem NOT IN (‘Pen’, ‘Pencil’);Correct
Incorrect
-
Question 54 of 240
54. Question
How many CustNum will be displayed by the following SQL query?
SELECT A.DISTINCT CustNum
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND A.CIty IN (‘Kanpur’, ‘Guntur’)
AND B.OrderedItem IN (‘Table’, ‘Chair’);Correct
Incorrect
-
Question 55 of 240
55. Question
How many CustNum will be displayed by the following SQL Query ?
SELECT DISTINCT (A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem IN (‘Table’, ‘chair’, ‘Pen’, ‘Pencil’) ;
MINUS
SELECT DISTINCT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND A.City In (‘Kanpur’, ‘Vizag’, ‘Guntutr’, ‘Agra’, ‘Pune’, ‘Dehli’, ‘Imphal’) ;Correct
Incorrect
-
Question 56 of 240
56. Question
Which of the following remarks about the following query are true?
SELECT DISTINCT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = SELECT C.ItemName
FROM ItemInfo C
WHERE C.UnitPrice = (SELECT Max (C.UnitPrice)
FROM ItemInfo C));Correct
Incorrect
-
Question 57 of 240
57. Question
Which of the listed options can fill the blank if the following query displayed exactly 6 rows?
SELECT DISNICT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderedItem = (SELECT C.ItemName
FROM ItemInfo C
WHERE C.UnitPrice> ____);Correct
Incorrect
-
Question 58 of 240
58. Question
What is the CustNum will be displayed by the following SQL query?
SELECT DISTINCT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderDate = SELECT MAX (C.OrderDate)
FROM OrderInfo C);Correct
Incorrect
-
Question 59 of 240
59. Question
How many rows are returned by the following query ?
SELECT DISTINCT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND B.OrderDate = BETWEEN ’11-JUN-04′ AND ’02-FEB-05′;Correct
Incorrect
-
Question 60 of 240
60. Question
The query
SELECT SYSDATE FROM DUAL;
displays
02-FEB-05
How many rows will be displayed by the following query?
SELECT DISTINCT(A.CustNum)
FROM CustInfo A, OrderInfo B
WHERE A.OrderNum = B.OrderNum
AND SUBSTR(TO-CHAR”(B.OrderDate), 8) = (SELECT SUBSTR(To_CHAR(SYSDATE), 8) FROM DUAL);Correct
Incorrect
-
Question 61 of 240
61. Question
Which of the following combinations of wildcard characters has the same meaning as the wildcard character % ?
Correct
Incorrect
-
Question 62 of 240
62. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL WHERE NULL = NULL;
outputsCorrect
Incorrect
-
Question 63 of 240
63. Question
Which of the following is illegal ?
Correct
Incorrect
-
Question 64 of 240
64. Question
When a SELECT statement displays data
Correct
Incorrect
-
Question 65 of 240
65. Question
If a query involves NOT, AND OR with no parenthesis
Correct
Incorrect
-
Question 66 of 240
66. Question
Choose the correct statements.
Correct
Incorrect
-
Question 67 of 240
67. Question
The SQL statement
SELECT LENGTH (”)FROM DUAL ; –” us two single quotes
prints,Correct
Incorrect
-
Question 68 of 240
68. Question
The SQL statement
SELECT INSTR (‘abcdecfg’,’e’) FROM DUAL ;
prints,Correct
Incorrect
-
Question 69 of 240
69. Question
The SQL statement
SELECT LPAD (‘abcd’.10.’10,’*’)FROM DUAL ;
prints,Correct
Incorrect
-
Question 70 of 240
70. Question
Table EMPLOYEE has 5 rows. Consider the following sequence of SQL statements.
SQL> CREATE TABLE myTable AS (SELECT * FROM EMPLOYEE);
SQL> INSERT INTO myTable SELECT * FROM myTable;
SQL> INSERT INTO myTable SELECT * FROM myTable;
SQL> INSERT INTO myTable SELECT * FROM myTable;
SQL> INSERT INTO myTable SELECT * FROM myTable;
If the SQL statement
SELECT COUNT (*) FROM MYEMP;
is executed after executing all the statements listed above, what will be printed isCorrect
Incorrect
-
Question 71 of 240
71. Question
Let the statement
SELECT column1 FROM myTable;
return 10 rows. The statement
SELECT ALL column1 FROM myTable;
will returnCorrect
Incorrect
-
Question 72 of 240
72. Question
The SQL statement
SELECT (NVL(NVL(NULL, 3), 4)) FROM DUAL;Correct
Incorrect
-
Question 73 of 240
73. Question
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE The SQL statement
SELECT COUNT(*) FROM EMPLOYEE WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
printsCorrect
Incorrect
-
Question 74 of 240
74. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL WHERE 1 !=NULL;
outputsCorrect
Incorrect
-
Question 75 of 240
75. Question
Which of the following SQL commands can be used to add data to a database table?
Correct
Incorrect
-
Question 76 of 240
76. Question
THE SQL statement
SELECT DECODE(2, 2, DECODE (3, 3, 2)) FROM DUAL;Correct
Incorrect
-
Question 77 of 240
77. Question
Which of the following joins is also called as an ‘inner join’?
Correct
Incorrect
-
Question 78 of 240
78. Question
The SQL statement
SQL>SELECT COUNT(*) FROM train_info
WHERE through 1 LIKE ‘%ad%’:
will printsCorrect
Incorrect
-
Question 79 of 240
79. Question
How many record(s) will be printed by the following SQL query?
SQL>SELECT A.From. B.To FROM train_info A, train_info B
WHERE A.TO = B.From”Correct
Incorrect
-
Question 80 of 240
80. Question
The SQL statement
SQL> SELECT COUNT(*) FROM train-info A,train_info B
WHERE A.start_city = B.start_city AND A.destination_city = B.destination-city;
will prints,Correct
Incorrect
-
Question 81 of 240
81. Question
The SQL statement
SQL> SELECT COUNT(*) FROM train-info A,train_info B
WHERE A.start_city = B.start_city AND A.destination_city = B.destination_city
AND A.trainNum <> B.trainNum;
will print,Correct
Incorrect
-
Question 82 of 240
82. Question
The SQL statement
SQL> SELECT COUNT(*) FROM train-info A,train_info B, train_info C;
will print,Correct
Incorrect
-
Question 83 of 240
83. Question
The SQL statement
SQL> SELECT * FROM train_info
MINUS
SELECT * FROM train_info WHERE MOD(trainNum.2) = 0.
will print,Correct
Incorrect
-
Question 84 of 240
84. Question
The SQL statement
SQL> SELECT * FROM train-info A,train_info B WHERE A.trainNum < 3 UNION SELECT * FROM train_info B WHERE A.trainNum >= 3:
will print,Correct
Incorrect
-
Question 85 of 240
85. Question
The SQL statement
SQL> SELECT * FROM train-info A,train_info B
WHERE A.from = Chennai’ OR B.To = ‘New Delhi’;
will prints,Correct
Incorrect
-
Question 86 of 240
86. Question
The SQL statement
SQL> SELECT * FROM train-info A,train_info B
= WHERE A.From = ‘chennai’ OR A.From = ‘Hyderabad’
MINUS
SELECT* FROM train-info A,train_info B WHERE B.To = ‘Kanpur’;
will print,Correct
Incorrect
-
Question 87 of 240
87. Question
The SQL statement
SQL> SELECT * FROM train-info A,train_info B
= WHERE A.From = ‘chennai’ and B.From = ‘Chennai’
will print,Correct
Incorrect
-
Question 88 of 240
88. Question
The SQL statement
SQL> SELECT * FROM train-info WHERE MOD(trainNUM, 2) = 1
MINUS
SQL> SELECT * FROM train-info WHERE MOD(trainNUM, 3) = 0;
will print,Correct
Incorrect
-
Question 89 of 240
89. Question
The SQL statement
SQL> SELECT * A.FROM, B.From
FROM train_info A, train_info B
GROUP BY (A.From, B.From);
will print,Correct
Incorrect
-
Question 90 of 240
90. Question
The SQL statement
SQL> SELECT * A.FROM. B.From FROM train-info A, train_info B
GROUP BY (A, From. B. From)
HAVING A.From = ‘Vijayawada’:
will print,Correct
Incorrect
-
Question 91 of 240
91. Question
Choose the correct statements.
Correct
Incorrect
-
Question 92 of 240
92. Question
The WHERE clause – WHERE city LIKE ‘%a\_%b’
cannot displayCorrect
Incorrect
-
Question 93 of 240
93. Question
Choose the correct statements.
Correct
Incorrect
-
Question 94 of 240
94. Question
Choose the correct statement that is based on a SQL query that has its ORDER BY clause defined as ORDER BY name, game DESC
Correct
Incorrect
-
Question 95 of 240
95. Question
Which of the following SELECT statements print the string 56?
Correct
Incorrect
-
Question 96 of 240
96. Question
The SQL statement
SELECT LPAD(‘abcd’,10,’wert’) FROM DUAL;
printsCorrect
Incorrect
-
Question 97 of 240
97. Question
The SQL statement
SELECT ROUND (45.926, -2) FROM DUAL ;Correct
Incorrect
-
Question 98 of 240
98. Question
Choose the correct statements.
The SQL statement
SELECT SYSDATE FROM DUAL;
prints
19-FEB-05Correct
Incorrect
-
Question 99 of 240
99. Question
The SQL statement
SELECT NVL(NVL(NULL, NVL(NULL, 3)), 4) FROM DUAL;Correct
Incorrect
-
Question 100 of 240
100. Question
The SQL statement
SELECT DECODE(2, 2, DECODE(3, 7, 2, 4, 5, 6)) FROM DUAL
prints,Correct
Incorrect
-
Question 101 of 240
101. Question
Let email has the value of an email ID. Fill in the blanks in the following SQL statement that prints the domain name. (The domain name of myname@abcd.com is abcd.com)
SELECT SUBSTR(email,INSTR(email,_____) FROM DUAL;Correct
Incorrect
-
Question 102 of 240
102. Question
Consider the flowchart in Fig. 16.1.
Chart ?
Which of the following codes correctly implements this flowchart?Correct
Incorrect
-
Question 103 of 240
103. Question
Table Employee has 10 records.It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN (NULL);
prints,Correct
Incorrect
-
Question 104 of 240
104. Question
The FROM clause – EMPLOYEE LEFT OUTER JOIN DEPARTMENT
Correct
Incorrect
-
Question 105 of 240
105. Question
Which of the following SQL commands can be used to modify existing data in a database table?
Correct
Incorrect
-
Question 106 of 240
106. Question
Let the statement
SELECT * FROM nameList;
return 10 rows. The statement
SELECT * FROM nameList WHERE ROWNUM > 5;
will returnCorrect
Incorrect
-
Question 107 of 240
107. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL WHERE NULL IN (NULL);
outputs,Correct
Incorrect
-
Question 108 of 240
108. Question
The SQL statement
SELECT TRUNC (45.926, -2) FROM DUAL ;Correct
Incorrect
-
Question 109 of 240
109. Question
The SELECT statement
SELECT ‘Hi’ FROM DUAL
WHERE NULL is NULL:
outputs,Correct
Incorrect
-
Question 110 of 240
110. Question
Which of the following is considered to be a fourth generation language?
Correct
Incorrect
-
Question 111 of 240
111. Question
Choose the correct PL/SQL statement.
Correct
Incorrect
-
Question 112 of 240
112. Question
The basic programming unit of a PL/SQL code is a
Correct
Incorrect
-
Question 113 of 240
113. Question
Which of the following can be used to print the current user in a PL/SQL program?
Correct
Incorrect
-
Question 114 of 240
114. Question
Choose the correct statements.
Correct
Incorrect
-
Question 115 of 240
115. Question
PL/SQL does not support arrays.However it has an equivalent construct which is
Correct
Incorrect
-
Question 116 of 240
116. Question
Which of the following packages can be used to build dynamic SQL?
Correct
Incorrect
-
Question 117 of 240
117. Question
Which of the following sections of a PL/SQL program are optional?
Correct
Incorrect
-
Question 118 of 240
118. Question
Which of the following is the widely used tool for developing PL/SQL code?
Correct
Incorrect
-
Question 119 of 240
119. Question
If the mode of a formal parameter is not specified in the declaration of a PL/SQL function (or procedure),
Correct
Incorrect
-
Question 120 of 240
120. Question
Which of the following keywords is not used in a PL/SQL procedure creation?
Correct
Incorrect
-
Question 121 of 240
121. Question
Which of the following comments about the RETURN statement (in a PL/SQL function) are not correct?
Correct
Incorrect
-
Question 122 of 240
122. Question
The above procedure my_proc will compile successfully if
Correct
Incorrect
-
Question 123 of 240
123. Question
After removing the statement(s) that is/are illegal, when the procedure is called, statement 2 will print
Correct
Incorrect
-
Question 124 of 240
124. Question
After removing the statement(s) that is/are illegal, when the procedure is called, statement 3 will print
Correct
Incorrect
-
Question 125 of 240
125. Question
Statement 7 cannot be replaced by the statement
Correct
Incorrect
-
Question 126 of 240
126. Question
Statement 7 cannot be replaced by the statement
Correct
Incorrect
-
Question 127 of 240
127. Question
Suppose a procedure my_proc is created with no formal parameter. Which of the following calls is correct?
Correct
Incorrect
-
Question 128 of 240
128. Question
Which of the following cannot be anonymous ?
Correct
Incorrect
-
Question 129 of 240
129. Question
The design of PL/SQL language has a a lot of similarities with the design of
Correct
Incorrect
-
Question 130 of 240
130. Question
Which of the following formal parameter declarations (inside the definition of a PL/SQL procedure or function) are not acceptable ?
Correct
Incorrect
-
Question 131 of 240
131. Question
Which of the following can be used to print the description about an error in a PL/SQL program?
Correct
Incorrect
-
Question 132 of 240
132. Question
If a function does not modify the database state, its purity level is
Correct
Incorrect
-
Question 133 of 240
133. Question
Which of the following types of triggers can be fired on DDL operations?
Correct
Incorrect
-
Question 134 of 240
134. Question
If a trigger is fired by an INSERT statement, the values of :old and “new are respectively
Correct
Incorrect
-
Question 135 of 240
135. Question
To have a variable in global scope, declare it inside a
Correct
Incorrect
-
Question 136 of 240
136. Question
In a PL/SQL code, uninitialized variables of type VARCHAR2 will have
Correct
Incorrect
-
Question 137 of 240
137. Question
Choose the correct statements.
Correct
Incorrect
-
Question 138 of 240
138. Question
Consider the declaration
abc tableName%ROWTYPE;
The field name of abcCorrect
Incorrect
-
Question 139 of 240
139. Question
Which of these are true of Collection types ?
Correct
Incorrect
-
Question 140 of 240
140. Question
Which of the following keywords is used in the declaration of a PL/SQL function but not a procedure?
Correct
Incorrect
-
Question 141 of 240
141. Question
Which of the following are operations?
Correct
Incorrect
-
Question 142 of 240
142. Question
Choose the correct statements.
Correct
Incorrect
-
Question 143 of 240
143. Question
In PL/SQL
Correct
Incorrect
-
Question 144 of 240
144. Question
Which of the following are pre-defined error conditions?
Correct
Incorrect
-
Question 145 of 240
145. Question
Choose the correct statements.
In a PL/SQL codeCorrect
Incorrect
-
Question 146 of 240
146. Question
Program units in a package can be overloaded based on the
Correct
Incorrect
-
Question 147 of 240
147. Question
Which of the following is not a cursor attribute?
Correct
Incorrect
-
Question 148 of 240
148. Question
Choose the correct statements.
When a run-time error happens when a PL/SQL procedure is executedCorrect
Incorrect
-
Question 149 of 240
149. Question
Consider the formal parameter declaration
input1 IN OUT NOCOPY VARCHAR2
Choose the correct statementsCorrect
Incorrect
-
Question 150 of 240
150. Question
To find the number of rows updated by a SQL statement use
Correct
Incorrect
-
Question 151 of 240
151. Question
consider the flowchart in Fig. 16.2
pic ???
Which of the following codes correctly implement this flowchart?Correct
Incorrect
-
Question 152 of 240
152. Question
Which of the following is not collection type in PL/SQL?
Correct
Incorrect
-
Question 153 of 240
153. Question
Which of the following is not a valid parameter mode?
Correct
Incorrect
-
Question 154 of 240
154. Question
A compiled form module has the extension
Correct
Incorrect
-
Question 155 of 240
155. Question
The attributes of a Form object can be found in the
Correct
Incorrect
-
Question 156 of 240
156. Question
If the values of the properties of RELATION in a master-detail Form violates the constraints set forth in the database tables then
Correct
Incorrect
-
Question 157 of 240
157. Question
Which of the following triggers can be used to disable the function keys?
Correct
Incorrect
-
Question 158 of 240
158. Question
A canvas is displayed in
Correct
Incorrect
-
Question 159 of 240
159. Question
When w WHEN-VALIDATE-ITEM trigger fail, it
Correct
Incorrect
-
Question 160 of 240
160. Question
A Data Block in a Form can be based on a
Correct
Incorrect
-
Question 161 of 240
161. Question
An LOV can be populated by
Correct
Incorrect
-
Question 162 of 240
162. Question
During execution, the mode of Data Block in a Form has to be
Correct
Incorrect
-
Question 163 of 240
163. Question
Trigger code is written in