The Second Parameter (TRUE/FALSE) is for uppercase(TRUE) and lower case (FALSE).. however when the string is quoted between double quotes and is in lower case it is still displayed in lower case when the parameter is TRUE.
Rectified Option D&E
D.
SET SERVEROUTPUT ON;
BEGIN
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('this is a test message' , FALSE));
END;
E.
SET SERVEROUTPUT ON;
BEGIN
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('"this is a test message"', TRUE));
END;
set serveroutput on
declare
BEGIN
--a : ok
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('this is a test message', TRUE));
--b : error
--DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('this is a " "test" " message', TRUE));
--c: error
--DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('"this is a "test" message"', TRUE));
--d ok:
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('"this is a test message" ', TRUE));
--e : ok
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('this is a test message' , FALSE));
end;
REsult:
"THIS IS A TEST MESSAGE"
"this is a test message"
"this is a test message"
then: the correct answer is D,E
This question has some typo.. the correct options as seen on another source is given below:
D is actually: BEGIN DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('"this is a test message"',TRUE));END;
and E is: BEGIN DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME ('this is a test message',FALSE));END;
Both gives output as "this is a test message".
BEGIN
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME (‘this is a test message ’, FALSE)); END;
BEGIN
DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME (‘ “this is a test message” ’, TRUE)); END;
Propably answers has typos. Two methods that I found to print this output are:
BEGIN DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME('this is a test message', FALSE)); END;
BEGIN DBMS_OUTPUT.PUT_LINE (DBMS_ASSERT.ENQUOTE_NAME('"this is a test message"', FALSE)); END;
D, not C. The Boolean indicates whether the output should be capitalized (true) or not (false), so it looks like something else may be wrong with this question.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.1z0-148 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
chrishillinger
2 years, 9 months agoAnubhav244
4 years, 4 months agogusa
4 years, 9 months agoCosminCof
4 years, 7 months agoResmi
4 years, 11 months agoAdela_bg
4 years, 11 months agotassicek
5 years, 3 months agoyurijk
5 years, 4 months agoorakell
5 years, 6 months ago