Friday, 20 June 2014

TECHNICAL INTERVIEW QUESTIONS ON SQL / PLSQL-- SET 4






INTERVIEW QUESTIONS ON SQL / PLSQL-- SET 4




1. The sql statement

 SELECT LENGTH (' ') FROM DUAL ;  -- ''  is two single quotes

prints

(A)0
(B)a gargabe value
(C)NULL
(D) 1




2.The sql statement

 SELECT INSTR ( 'abcdecfg' , 'c')  FROM DUAL ;

prints

(A)2
(B)3
(C)5
(D) 6




3.The sql statement

 SELECT LPAD ('abcd' ,10,'*') FROM DUAL ;

prints

(A)abcd******
(B)*****abcd
(C)***abcd***
(D) *********




4.The sql statement

SELECT (NVL (NVL (NULL, 3), 4)) FROM DUAL;

 prints

(A)3
(B)4
(C)NULL
(D) NONE OF THESE



5.The sql statement

SELECT "Hi' FROM DUAL WHERE 1 != NULL;

prints

(A) Hi
(B)FALSE
(C)TRUE
(D) NOTHING




NEXT SET 5 || PREVIOUS SET 3

No comments:

Post a Comment