Oracle, SQL & PL/SQL: What Is The Full Form of SQL?
Oracle, SQL & PL/SQL: What Is The Full Form of SQL?
Oracle, SQL & PL/SQL: What Is The Full Form of SQL?
D. None of these
Answer: Option A
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
PL/SQL is a completely portable, high-performance transaction processing language because of the following
advantages:-
2) PL/SQL stored procedures move application code from the server to the client.
a. True
b. False
Answer Explanation
ANSWER: False
Explanation:
A stored procedure has its own limitations. All the applications are stored on the server and they can be accessed by th
clients. If it is stored on clients it becomes difficult to access.
a. Delimiters
b. Identifiers
c. Literals
d. Comments
Answer Explanation
ANSWER: Delimiters
Explanation:
A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regio
in plain text or other data streams.
a. 6
b. 2
c. 5
d. 4
Answer Explanation
ANSWER: 5
Explanation:
PL/SQL supports the following kinds of literals:
- Numeric Literals
- Character Literals
- String Literals
- BOOLEAN Literals
- Date and Time Literals
a. IN Operator
b. BETWEEN Operator
c. LIKE Operator
d. IS NULL Operator
Answer Explanation
ANSWER: IN Operator
Explanation:
The IN condition helps to reduce the need to use multiple OR conditions.
6) Which of the following has internal components that can be manipulated individually, such as th
elements of an array, record, or table?
a. A Composite
b. A LOB
c. A Reference
d. A Scalar
Answer Explanation
ANSWER: A Composite
Explanation:
A composite has internal components that can be accessed from anywhere.
7) Which subtypes are used to declare fixed-point numbers with a maximum precision of 38 decim
digits?
a. INTEGER,INT,SMALLINT
b. DOUBLE PRECISION,FLOAT
c. DEC,DECIMAL,NUMERIC
d. None of the above
Answer Explanation
ANSWER: DEC,DECIMAL,NUMERIC
Explanation:
No explanation is available for this question!
9) What is the maximum number of ELSE clauses that can be included in an IF clause that is not
nested?
a. 1
b. 0
c. 15
d. Any number
Answer Explanation
ANSWER: 1
Explanation:
We can have else clause for every IF clause. But if the IF clause is not nested there is only one else.
10) Which structure executes a sequence of statements repeatedly as long as a condition holds tru
a. Selection structure
b. Iteration structure
c. Sequence structure
d. None of the above
Answer Explanation
11) “NO_DATA_FOUND” and “TOO_MANY_ROWS” are the two most common errors found when
executing a SELECT statement.
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
The “NO_DATA_FOUND” error is where the program is not able to find any data. This type of error can be trapped
the exception block.
The “TOO_MANY_ROWS” error is where one row data is conflicting with another row data so it is unable to fetch a
particular data. This error too can be trapped by the exception block.
14) When building up a single SQL statement in a string, do not include any semicolon at the end.
a. Yes
b. No
Answer Explanation
ANSWER: Yes
Explanation:
When we are building a single statement we need not add a semicolon at the end but if we are creating an PL/SQL blo
then we should add a semicolon at the end of each statement.
15) Dynamic SQL enables you to build SQL statements dynamically at runtime.
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
Dynamic SQL helps to write programs that refer SQL statements whose full text is not known until the runtime.
16) Which of the following returns the current value in a specified sequence.
a. CURRVAL
b. NEXTVAL
c. Both A & B
d. None of the above
Answer Explanation
ANSWER: CURRVAL
Explanation:
The CURRVAL returns the current value of the sequence.
17) Which operators combine the results of two queries into one result?
a. Set operator
b. Row Operator
c. Both A & B
d. None of the above
Answer Explanation
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
Every recursive call creates a new instance of the items declared in the subprogram including parameters, variables,
cursors and exceptions.
19) Which of the following provides a way for your program to select multiple rows of data from th
database and then process each row individually.
a. PL/SQL Cursors
b. PL/SQL Trigger
c. PL/SQL Select
d. PL/SQL Process
Answer Explanation
a. Type of Exception
b. An Error Code
c. A message
d. All mentioned above
Answer Explanation
23) The keyword All is a shorthand way to refer to all warning messages.
a. Yes
b. No
Answer Explanation
ANSWER: Yes
Explanation:
The all keyword will handle all the errors. We need not name any of the error in specific.
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
The NOCOPY is a hint and not a directive means that the compiler can ignore and pass the parameters by value witho
producing the errors. The above statement is a situation where the NOCOPY hint will be ignored.
25) The values of any IN OUT parameters are copied before the subprogram is executed.
a. Yes
b. No
Answer Explanation
ANSWER: Yes
Explanation:
The IN OUT parameters are passed by values by default. During the subprogram execution the temporary variables ho
the output parameter values. If the program is normal the values are copied to the actual parameters. If the program ex
with an unhandled exception the original parameters remain unchanged.
2.
C. Both of above
D. None
Answer: Option A
3.
A. BETWEEN operator
B. LIKE operator
C. EXISTS operator
D. None of these
Answer: Option B
4.
A. EXISTS operator
B. NOT operator
C. IS NULL operator
D. None of these
Answer: Option C
5.
A. ALTER TABLE
B. MODIFY TABLE
C. CHANGE TABLE
Answer: Option A
A. RENAME
B. REVOKE
C. GRANT
D. UPDATE
Answer: Option D
7.
A. SELECT DISTINCT
B. SELECT UNIQUE
C. SELECT DIFFERENT
Answer: Option A
8.
A. Insert
B. Modify
C. Look-up
Answer: Option B
9.
D. None of these
Answer: Option B
10.
D. None of these
Answer: Option A
1.Which of the following SQL statements deletes all rows in table called SalesData?
A) >=
B) =>
3.Which of the following SQL statements does count the rows in the ‘Sales’ table?
A) a list of values.
B) a range to test in the SQL query search condition.
C) a column list.
A) DELETE clause.
B) INSERT clause
C) SELECT clause
D) JOIN clause.
12.Which of the following SQL statements will select all records with all their columns from a table called
Sales.
A) Fields
B) Attributes
C) Records
16.Which of the following is true?
A) TRUNCATE TABLE deletes table from a database
B) TRUNCATE TABLE has to be used along with a WHERE clause
C) TRUNCATE TABLE is identical to DELETE statement without WHERE clause and both remove all
rows in a table.
A) DIFFERENT
B) DISTINCT
C) UNIQUE
D) DISTINCTIVE
25.Which of the following SQL statements deletes all rows in table called SalesData?