SlideShare a Scribd company logo
Which of the following statements is true about implicit cursors?
A. Implicit cursors are used for SQL statements that are not named.
B. Developers should use implicit cursors with great care.
C. Implicit cursors are used in cursor for loops to handle data processing.
D. Implicit cursors are no longer a feature in Oracle.
Ans: A
2. Which of the following is not a feature of a cursor FOR loop?
A. Record type declaration.
B. Opening and parsing of SQL statements.
C. Fetches records from cursor.
D. Requires exit condition to be defined.
Ans:B
3. A developer would like to use referential datatype declaration on a variable. The variable name is
EMPLOYEE_LASTNAME, and the corresponding table and column is EMPLOYEE, and LNAME, respectively.
How would the developer define this variable using referential datatypes?
A. Use employee.lname%type.
B. Use employee.lname%rowtype.
C. Look up datatype for EMPLOYEE column on LASTNAME table and use that.
D. Declare it to be type LONG.
Ans: A
4. Which three of the following are implicit cursor attributes?
A. %found
B. %too_many_rows
C. %notfound
D. %rowcount
E. %rowtype
Ans:C
5. If left out, which of the following would cause an infinite loop to occur in a simple loop?
A. LOOP
B. END LOOP
C. IF-THEN
D. EXIT
Ans:B
6. Which line in the following statement will produce an error?
A. cursor action_cursor is
B. select name, rate, action
C. into action_record
D. from action_table;
E. There are no errors in this statement.
Ans:C
7. The command used to open a CURSOR FOR loop is
A. open
B. fetch
C. parse
D. None, cursor for loops handle cursor opening implicitly.
Ans:D
8. What happens when rows are found using a FETCH statement
A. It causes the cursor to close
B. It causes the cursor to open
C. It loads the current row values into variables
D. It creates the variables to hold the current row values
Ans: B
9. What is the maximum number of handlers processed before the PL/SQL block is exited when an
exception occurs?
A. Only one
B. All that apply
C. All referenced
D. None
Ans: A
10. For which trigger timing can you reference the NEW and OLD qualifiers?
A. Statement and Row
B. Statement only
C. Row only
D. Oracle Forms trigger
Ans: D
11. Which identifier is valid?
A. customer_12
B. loop
C. customer@orgA
D. 12customer
Ans: A
12. What is the value of customer_id within the nested block in the example below?
/* Start main block */
DECLARE
customer_id NUMBER(9) := 678;
credit_limit NUMBER(10,2) := 10000;
BEGIN
/* Start nested block */
DECLARE
customer_id VARCHAR2(9) := 'AP56';
current_balance NUMBER(10,2) := 467.87;
BEGIN
-- what is the value of customer_id at this point?
NULL;
END;
END;
Please select the best answer.
A. 678
B. 10000
C. 'AP56'
D. 467.87
Ans: B.
13. For which task is it best to use a character string enclosed by double quotes?
Please select the best answer.
A. Referring to a column in the database
B. Using a reserved word to declare an identifier
C. Using a hyphen to concatenate two columns
D. Referring to a number variable by using a logical operator
Ans: B.
14. What is the maximum number of exception handlers processed before the PL/SQL block is exited,
provided an exception occurs?
Please select the best answer.
A. None
B. All exceptions that are referenced in the block
C. One
D. All exceptions that apply
Ans: C.
15. Which functions can be used with any datatype?
Please select all the correct answers.
A. SUM
B. MIN
C. MAX
D. AVG
The correct answers are B and C.
16. Select incorrect variable declarations
A. foo_number varchar2(10);
B. foo_text number(10);
C. foo_char char(1) := 'Y';
D. foo_time date;
E. foo_text varchar2(10) := 'hello world';
Ans: E
17. Select invalid variable types
A. CHAR
B. VARCHAR1
C. VARCHAR2
D. INTEGER
E. NUMBER
ANS: B
18. List the correct sequence of commands to process a set of records when using explicit cursors
A. INITIALIZE, GET, CLOSE
B. CURSOR, GET, FETCH, CLOSE
C. OPEN,
K, HIDE
ANS: C
19. Select incorrect variable declarations
A. foo_number varchar2(10);
B. foo_text number(10);
C. foo_char char(1) := 'Y';
D. foo_time date;
E. foo_text varchar2(10) := 'hello world';
Ans: E
20. Select invalid variable types
A. CHAR
B. VARCHAR1
C. VARCHAR2
D. INTEGER
E. NUMBER
ANS: B
21. List the correct sequence of commands to process a set of records when using explicit cursors
A. INITIALIZE, GET, CLOSE
B. CURSOR, GET, FETCH, CLOSE
C. OPEN, FETCH, CLOSE
D. CURSOR, FETCH, CLOSE
E. GET, SEEK, HIDE
ANS: C
22. Where do you declare an explicit cursor in the PL/SQL language?
A. In the PL/SQL working storage section
B. In the PL/SQL declaration section
C. In the PL/SQL body section
D. In the PL/SQL exception section
E. None of the above
ANS: B
23. Assuming the date and time is 09/09/2009 09:09:09, what value will the following statement return
SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH24:MI:SS')
FROM dual;
A. 09/09/2009 09:09:09
B. 09/09/2009 09:09:09AM
C. 09/09/2009
D. 09/09/2009 00:00:00
E. None of the above
ANS: D
24. The || is is an example of what function
SELECT last_name || ', ' || first_name || ' ' || middle_name
FROM employees;
A. Incantination
B. Integration
C. Continuation
D. Concatenation
E. None of the above
ANS: D
25. Which of the following is not an Oracle DML function?
A. DECODE
B. TRUNCATE
C. TO_CHAR
D. NVL
E. Trick question, all of these are Oracle DML functio
ANS: B
26. Select the invalid PL/SQL looping construct.
A. WHILE LOOP
...
END LOOP;
B. FOR rec IN some_cursor LOOP
...
END LOOP;
C. LOOP
UNTIL ;
END LOOP;
D. LOOP
...
EXIT WHEN ;
END LOOP;
E. None of the above. All are valid.
ANS: C.D
27. Select the best answer. Which listed attribute is an invalid attribute of an Explicit cursor.
A. %NOTFOUND
B. %FOUND
C. %ROWCOUNT
D. %ISOPEN
E. None of the above. All of these are valid.
ANS: E
28. Which of the following is not a grouping function.
A. COUNT
B. SUM
C. DISTINCT
D. MIN
E. All of the above.
ANS: C
29. Which of the following is not a valid Oracle PL/SQL exception.
A. NO_DATA_FOUND ORA-01403
B. TWO_MANY_ROWS ORA-01422
C. DUP_VAL_ON_INDEX ORA-00001
D. OTHERS
E. None of the above. These are all valid.
ANS: B
30. What command can you use to see the errors from a recently created view or stored procedure?
A. SHOW MISTAKES;
B. DISPLAY MISTAKES;
C. DISPLAY ERRORS;
D. SHOW ERRORS;
E. None of the above.
ANS: D
31. Select the best answer below. What are the components of a package?
A. Box, wrapping and binding
B. Header and body
C. Specification and content
D. Specification and body
E. None of the above
ANS: D
32. PL/SQL subprograms, unlike anonymous blocks, are compiled each time they are executed. True or
False?
a. True
b.False
ANS: A
33. Subprograms and anonymous blocks can be called by other applications. True or False?
a.True
b.False
ANS: A
34. A nested subprogram can be called from the main procedure or from the calling environment.
Trueor False?
a. True
b. False
ANS: B
35. When modifying procedure code, the procedure must be re-executed to validate and store it in the
database. True or False?
a. True
b. False
ANS: A
36. Which of the following can be used as an argument for a procedure parameter?
a.The name of a variable.
b.A literal value.
c.An expression.
d.All of the above.
e.None of the above
ANS: D
37. If you don't specify a mode for a parameter, what is the default mode?
a.OUT
b.IN
c.COPY
d.DEFAULT
e.R(ead)
ANS: B
38. Which kind of parameters cannot have a DEFAULT value?
a.OUT
b.IN
c.CONSTANT
d.R(ead)
e.W(rite)
ANS: A
39. What are the three parameter modes for procedures?
a.IN, OUT, IN OUT
b.R(ead), W(rite), A(ppend)
c.CON
38. Which kind of parameters cannot have a DEFAULT value?
a.OUT
b.IN
c.CONSTANT
d.R(ead)
e.W(rite)
ANS: A
39. What are the three parameter modes for procedures?
a.IN, OUT, IN OUT
b.R(ead), W(rite), A(ppend)
c.CONSTANT, VARIABLE, DEFAULT
d.COPY, NOCOPY, REF
ANS: A
40. Which one of the following statements about formal and actual parameters is true?
a.Formal and actual parameters must have the same name.
b.Formal and actual parameters must have different names.
c.A formal parameter is declared within the called procedure, while an actual parameter is declared in
thecalling environment.
d.An actual parameter is declared within the called procedure.
ANS: C
41. What is the correct syntax to create procedure MYPROC that accepts two number parameters X and
Y?
a.CREATE PROCEDURE myproc (x NUMBER, y NUMBER) IS ...
b.CREATE PROCEDURE (x NUMBER, y NUMBER) myproc IS ...
c.CREATE PROCEDURE myproc IS (x NUMBER, y NUMBER) ...
d.CREATE PROCEDURE IS myproc (x NUMBER, y NUMBER) ...
ANS: A
42. In the context of MS SQL SERVER, with the exception of ............ column(s), any column can
participate in the GROUP BY clause.
A) bit
B) text
C) ntext
D) image
E) All of above
ANS: E
43. The sequence of the columns in a GROUP BY clause has no effect in the ordering of the output.
A) True
B) False
ANS: B
44. You want all dates when any employee was hired. Multiple employees were hired on the same date
and you want to see the date only once.
Query - 1
Select distinct hiredate
From hr.employee
Order by hiredate;
Query - 2
Select hiredate
From hr.employees
Group by hiredate
Order by hiredate;
Which of the above query is valid?
A) Query - 1
B) Query - 2
C) Both
ANS: C
45. GROUP BY ALL generates all possible groups - even those that do not meet the query's search criteria.
A) True
B) False
ANS: A
46. All aggregate functions ignore NULLs except for ............
A) Distinct
B) Count (*)
C) Average()
D) None of above
ANS: B
47. Using GROUP BY ............ has the effect of removing duplicates from the data.
A) with aggregates
B) with order by
C) without order by
D) without aggregates
ANS: D
48. Below query is run in SQL Server 2012, is this query valid or invalid:
Select count(*) as X
from Table_Name
Group by ()
A) Valid
B) Invalid
ANS: A
49. For the purposes of ............, null values are considered equal to other nulls and are grouped
together into a single result row.
A) Having
B) Group By
C) Both of above
D) None of above
ANS: B
50. If you SELECT attributes and use an aggregate function, you must GROUP BY the non-aggregate
attributes.
A) True
B) False
ANS: A

More Related Content

What's hot

SQL MCQ
SQL MCQSQL MCQ
CP Handout#4
CP Handout#4CP Handout#4
CP Handout#4
trupti1976
 
Qno 1 (c)
Qno 1 (c)Qno 1 (c)
Programming Fundamentals lecture 7
Programming Fundamentals lecture 7Programming Fundamentals lecture 7
Programming Fundamentals lecture 7
REHAN IJAZ
 
Programming with c language practical manual
Programming with c language practical manualProgramming with c language practical manual
Programming with c language practical manual
Anil Bishnoi
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
srinath v
 
CP Handout#8
CP Handout#8CP Handout#8
CP Handout#8
trupti1976
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
HINAPARVEENAlXC
 
Aptitute question papers in c
Aptitute question papers in cAptitute question papers in c
Aptitute question papers in c
Pantech ProEd Pvt Ltd
 
CP Handout#3
CP Handout#3CP Handout#3
CP Handout#3
trupti1976
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
Vivek Singh
 
CP Handout#5
CP Handout#5CP Handout#5
CP Handout#5
trupti1976
 
C Programming
C ProgrammingC Programming
C Programming
Raj vardhan
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for
Abhay Korat
 
Basics of c
Basics of cBasics of c
Basics of c
DebanjanSarkar11
 
Assignment6
Assignment6Assignment6
Assignment6
Sunita Milind Dol
 
Multiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handlingMultiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handling
Abishek Purushothaman
 
Quiz test JDBC
Quiz test JDBCQuiz test JDBC
Quiz test JDBC
vacbalolenvadi90
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
sangeethajames07
 
Multiple choice questions for Java io,files and inheritance
Multiple choice questions for Java io,files and inheritanceMultiple choice questions for Java io,files and inheritance
Multiple choice questions for Java io,files and inheritance
Abishek Purushothaman
 

What's hot (20)

SQL MCQ
SQL MCQSQL MCQ
SQL MCQ
 
CP Handout#4
CP Handout#4CP Handout#4
CP Handout#4
 
Qno 1 (c)
Qno 1 (c)Qno 1 (c)
Qno 1 (c)
 
Programming Fundamentals lecture 7
Programming Fundamentals lecture 7Programming Fundamentals lecture 7
Programming Fundamentals lecture 7
 
Programming with c language practical manual
Programming with c language practical manualProgramming with c language practical manual
Programming with c language practical manual
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
CP Handout#8
CP Handout#8CP Handout#8
CP Handout#8
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
 
Aptitute question papers in c
Aptitute question papers in cAptitute question papers in c
Aptitute question papers in c
 
CP Handout#3
CP Handout#3CP Handout#3
CP Handout#3
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
 
CP Handout#5
CP Handout#5CP Handout#5
CP Handout#5
 
C Programming
C ProgrammingC Programming
C Programming
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for
 
Basics of c
Basics of cBasics of c
Basics of c
 
Assignment6
Assignment6Assignment6
Assignment6
 
Multiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handlingMultiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handling
 
Quiz test JDBC
Quiz test JDBCQuiz test JDBC
Quiz test JDBC
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
 
Multiple choice questions for Java io,files and inheritance
Multiple choice questions for Java io,files and inheritanceMultiple choice questions for Java io,files and inheritance
Multiple choice questions for Java io,files and inheritance
 

Viewers also liked

Hadoop and Cloudian HyperStore
Hadoop and Cloudian HyperStoreHadoop and Cloudian HyperStore
Hadoop and Cloudian HyperStore
Cloudian
 
EMC Part Numbers
EMC Part NumbersEMC Part Numbers
EMC Part Numbers
webmaster-ibremarketing
 
Building a Hybrid Cloud Solution
Building a Hybrid Cloud Solution Building a Hybrid Cloud Solution
Building a Hybrid Cloud Solution
Cloudian
 
SAN storage arrays
SAN storage arraysSAN storage arrays
SAN storage arrays
mosinyi
 
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace itWebinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
Storage Switzerland
 
Storage Consumption and Chargeback
Storage Consumption and ChargebackStorage Consumption and Chargeback
Storage Consumption and Chargeback
brettallison
 
Introduction to san ( storage area networks )
Introduction to san ( storage area networks )Introduction to san ( storage area networks )
Introduction to san ( storage area networks )
sagaroceanic11
 
Storage Area Network
Storage Area NetworkStorage Area Network
Storage Area Network
Raphael Ejike
 
Storage
StorageStorage
Storage
Fahad Noaman
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
Spiceworks
 
Storage area network
Storage area networkStorage area network
Storage area network
Neha Agarwal
 
Brocade Administration & troubleshooting
Brocade Administration & troubleshootingBrocade Administration & troubleshooting
Brocade Administration & troubleshooting
prakashjjaya
 
Storage Area Network(SAN)
Storage Area Network(SAN)Storage Area Network(SAN)
Storage Area Network(SAN)
Krishna Kahar
 
Storage Area Network (San)
Storage Area Network (San)Storage Area Network (San)
Storage Area Network (San)
sankcomp
 
How to Choose Your SAN Storage Hardware for Beginners
How to Choose Your SAN Storage Hardware for BeginnersHow to Choose Your SAN Storage Hardware for Beginners
How to Choose Your SAN Storage Hardware for Beginners
Aruj Thirawat
 

Viewers also liked (15)

Hadoop and Cloudian HyperStore
Hadoop and Cloudian HyperStoreHadoop and Cloudian HyperStore
Hadoop and Cloudian HyperStore
 
EMC Part Numbers
EMC Part NumbersEMC Part Numbers
EMC Part Numbers
 
Building a Hybrid Cloud Solution
Building a Hybrid Cloud Solution Building a Hybrid Cloud Solution
Building a Hybrid Cloud Solution
 
SAN storage arrays
SAN storage arraysSAN storage arrays
SAN storage arrays
 
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace itWebinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
Webinar: How To Use Software Defined Storage to Extend Your SAN, Not Replace it
 
Storage Consumption and Chargeback
Storage Consumption and ChargebackStorage Consumption and Chargeback
Storage Consumption and Chargeback
 
Introduction to san ( storage area networks )
Introduction to san ( storage area networks )Introduction to san ( storage area networks )
Introduction to san ( storage area networks )
 
Storage Area Network
Storage Area NetworkStorage Area Network
Storage Area Network
 
Storage
StorageStorage
Storage
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
 
Storage area network
Storage area networkStorage area network
Storage area network
 
Brocade Administration & troubleshooting
Brocade Administration & troubleshootingBrocade Administration & troubleshooting
Brocade Administration & troubleshooting
 
Storage Area Network(SAN)
Storage Area Network(SAN)Storage Area Network(SAN)
Storage Area Network(SAN)
 
Storage Area Network (San)
Storage Area Network (San)Storage Area Network (San)
Storage Area Network (San)
 
How to Choose Your SAN Storage Hardware for Beginners
How to Choose Your SAN Storage Hardware for BeginnersHow to Choose Your SAN Storage Hardware for Beginners
How to Choose Your SAN Storage Hardware for Beginners
 

Similar to Plsql pdf

Plsql
PlsqlPlsql
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
Saurabh K. Gupta
 
Db2考试测试题
Db2考试测试题Db2考试测试题
Db2考试测试题
fm2008
 
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
NarReg
 
C MCQ
C MCQC MCQ
Sap abap Q&A
Sap abap Q&A Sap abap Q&A
Sap abap Q&A
Kaustav Pyne
 
284566820 1 z0-061(1)
284566820 1 z0-061(1)284566820 1 z0-061(1)
284566820 1 z0-061(1)
panagara
 
1 z0 001
1 z0 0011 z0 001
1 z0 001
Sam Pannu
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqs
saadkhan672
 
Technical questions
Technical questionsTechnical questions
Technical questions
Kirthan S Holla
 
one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...
pinck3125
 
Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...
josbuttlewr116
 
1Z0-061 Oracle Database 12c: SQL Fundamentals
1Z0-061 Oracle Database 12c: SQL Fundamentals1Z0-061 Oracle Database 12c: SQL Fundamentals
1Z0-061 Oracle Database 12c: SQL Fundamentals
Lydi00147
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
Knowledge Center Computer
 
Dump Answers
Dump AnswersDump Answers
Dump Answers
sailesh kushwaha
 
Oracle OCP 1Z0-007题库
Oracle OCP 1Z0-007题库Oracle OCP 1Z0-007题库
Oracle OCP 1Z0-007题库
renguzi
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
Syahriha Ruslan
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
Ankit Dubey
 
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
RSathyaPriyaCSEKIOT
 
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxSuppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
picklesvalery
 

Similar to Plsql pdf (20)

Plsql
PlsqlPlsql
Plsql
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
 
Db2考试测试题
Db2考试测试题Db2考试测试题
Db2考试测试题
 
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
 
C MCQ
C MCQC MCQ
C MCQ
 
Sap abap Q&A
Sap abap Q&A Sap abap Q&A
Sap abap Q&A
 
284566820 1 z0-061(1)
284566820 1 z0-061(1)284566820 1 z0-061(1)
284566820 1 z0-061(1)
 
1 z0 001
1 z0 0011 z0 001
1 z0 001
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqs
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...
 
Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...
 
1Z0-061 Oracle Database 12c: SQL Fundamentals
1Z0-061 Oracle Database 12c: SQL Fundamentals1Z0-061 Oracle Database 12c: SQL Fundamentals
1Z0-061 Oracle Database 12c: SQL Fundamentals
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
Dump Answers
Dump AnswersDump Answers
Dump Answers
 
Oracle OCP 1Z0-007题库
Oracle OCP 1Z0-007题库Oracle OCP 1Z0-007题库
Oracle OCP 1Z0-007题库
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
 
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxSuppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
 

Recently uploaded

Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
Madan Karki
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
IJECEIAES
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
riddhimaagrawal986
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
integral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdfintegral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdf
gaafergoudaay7aga
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 

Recently uploaded (20)

Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
integral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdfintegral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdf
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 

Plsql pdf

  • 1. Which of the following statements is true about implicit cursors? A. Implicit cursors are used for SQL statements that are not named. B. Developers should use implicit cursors with great care. C. Implicit cursors are used in cursor for loops to handle data processing. D. Implicit cursors are no longer a feature in Oracle. Ans: A 2. Which of the following is not a feature of a cursor FOR loop? A. Record type declaration. B. Opening and parsing of SQL statements. C. Fetches records from cursor. D. Requires exit condition to be defined. Ans:B 3. A developer would like to use referential datatype declaration on a variable. The variable name is EMPLOYEE_LASTNAME, and the corresponding table and column is EMPLOYEE, and LNAME, respectively. How would the developer define this variable using referential datatypes? A. Use employee.lname%type. B. Use employee.lname%rowtype. C. Look up datatype for EMPLOYEE column on LASTNAME table and use that. D. Declare it to be type LONG. Ans: A
  • 2. 4. Which three of the following are implicit cursor attributes? A. %found B. %too_many_rows C. %notfound D. %rowcount E. %rowtype Ans:C 5. If left out, which of the following would cause an infinite loop to occur in a simple loop? A. LOOP B. END LOOP C. IF-THEN D. EXIT Ans:B 6. Which line in the following statement will produce an error? A. cursor action_cursor is B. select name, rate, action C. into action_record D. from action_table; E. There are no errors in this statement. Ans:C
  • 3. 7. The command used to open a CURSOR FOR loop is A. open B. fetch C. parse D. None, cursor for loops handle cursor opening implicitly. Ans:D 8. What happens when rows are found using a FETCH statement A. It causes the cursor to close B. It causes the cursor to open C. It loads the current row values into variables D. It creates the variables to hold the current row values Ans: B 9. What is the maximum number of handlers processed before the PL/SQL block is exited when an exception occurs? A. Only one B. All that apply C. All referenced D. None Ans: A
  • 4. 10. For which trigger timing can you reference the NEW and OLD qualifiers? A. Statement and Row B. Statement only C. Row only D. Oracle Forms trigger Ans: D 11. Which identifier is valid? A. customer_12 B. loop C. customer@orgA D. 12customer Ans: A
  • 5. 12. What is the value of customer_id within the nested block in the example below? /* Start main block */ DECLARE customer_id NUMBER(9) := 678; credit_limit NUMBER(10,2) := 10000; BEGIN /* Start nested block */ DECLARE customer_id VARCHAR2(9) := 'AP56'; current_balance NUMBER(10,2) := 467.87; BEGIN -- what is the value of customer_id at this point? NULL; END; END; Please select the best answer. A. 678 B. 10000 C. 'AP56' D. 467.87 Ans: B.
  • 6. 13. For which task is it best to use a character string enclosed by double quotes? Please select the best answer. A. Referring to a column in the database B. Using a reserved word to declare an identifier C. Using a hyphen to concatenate two columns D. Referring to a number variable by using a logical operator Ans: B. 14. What is the maximum number of exception handlers processed before the PL/SQL block is exited, provided an exception occurs? Please select the best answer. A. None B. All exceptions that are referenced in the block C. One D. All exceptions that apply Ans: C. 15. Which functions can be used with any datatype? Please select all the correct answers. A. SUM B. MIN C. MAX D. AVG The correct answers are B and C.
  • 7. 16. Select incorrect variable declarations A. foo_number varchar2(10); B. foo_text number(10); C. foo_char char(1) := 'Y'; D. foo_time date; E. foo_text varchar2(10) := 'hello world'; Ans: E 17. Select invalid variable types A. CHAR B. VARCHAR1 C. VARCHAR2 D. INTEGER E. NUMBER ANS: B 18. List the correct sequence of commands to process a set of records when using explicit cursors A. INITIALIZE, GET, CLOSE B. CURSOR, GET, FETCH, CLOSE C. OPEN, K, HIDE ANS: C
  • 8. 19. Select incorrect variable declarations A. foo_number varchar2(10); B. foo_text number(10); C. foo_char char(1) := 'Y'; D. foo_time date; E. foo_text varchar2(10) := 'hello world'; Ans: E 20. Select invalid variable types A. CHAR B. VARCHAR1 C. VARCHAR2 D. INTEGER E. NUMBER ANS: B 21. List the correct sequence of commands to process a set of records when using explicit cursors A. INITIALIZE, GET, CLOSE B. CURSOR, GET, FETCH, CLOSE C. OPEN, FETCH, CLOSE D. CURSOR, FETCH, CLOSE E. GET, SEEK, HIDE ANS: C
  • 9. 22. Where do you declare an explicit cursor in the PL/SQL language? A. In the PL/SQL working storage section B. In the PL/SQL declaration section C. In the PL/SQL body section D. In the PL/SQL exception section E. None of the above ANS: B 23. Assuming the date and time is 09/09/2009 09:09:09, what value will the following statement return SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH24:MI:SS') FROM dual; A. 09/09/2009 09:09:09 B. 09/09/2009 09:09:09AM C. 09/09/2009 D. 09/09/2009 00:00:00 E. None of the above ANS: D 24. The || is is an example of what function SELECT last_name || ', ' || first_name || ' ' || middle_name FROM employees; A. Incantination B. Integration C. Continuation D. Concatenation E. None of the above ANS: D
  • 10. 25. Which of the following is not an Oracle DML function? A. DECODE B. TRUNCATE C. TO_CHAR D. NVL E. Trick question, all of these are Oracle DML functio ANS: B 26. Select the invalid PL/SQL looping construct. A. WHILE LOOP ... END LOOP; B. FOR rec IN some_cursor LOOP ... END LOOP; C. LOOP UNTIL ; END LOOP; D. LOOP ... EXIT WHEN ; END LOOP; E. None of the above. All are valid. ANS: C.D
  • 11. 27. Select the best answer. Which listed attribute is an invalid attribute of an Explicit cursor. A. %NOTFOUND B. %FOUND C. %ROWCOUNT D. %ISOPEN E. None of the above. All of these are valid. ANS: E 28. Which of the following is not a grouping function. A. COUNT B. SUM C. DISTINCT D. MIN E. All of the above. ANS: C 29. Which of the following is not a valid Oracle PL/SQL exception. A. NO_DATA_FOUND ORA-01403 B. TWO_MANY_ROWS ORA-01422 C. DUP_VAL_ON_INDEX ORA-00001 D. OTHERS E. None of the above. These are all valid. ANS: B
  • 12. 30. What command can you use to see the errors from a recently created view or stored procedure? A. SHOW MISTAKES; B. DISPLAY MISTAKES; C. DISPLAY ERRORS; D. SHOW ERRORS; E. None of the above. ANS: D 31. Select the best answer below. What are the components of a package? A. Box, wrapping and binding B. Header and body C. Specification and content D. Specification and body E. None of the above ANS: D 32. PL/SQL subprograms, unlike anonymous blocks, are compiled each time they are executed. True or False? a. True b.False ANS: A 33. Subprograms and anonymous blocks can be called by other applications. True or False? a.True b.False ANS: A
  • 13. 34. A nested subprogram can be called from the main procedure or from the calling environment. Trueor False? a. True b. False ANS: B 35. When modifying procedure code, the procedure must be re-executed to validate and store it in the database. True or False? a. True b. False ANS: A 36. Which of the following can be used as an argument for a procedure parameter? a.The name of a variable. b.A literal value. c.An expression. d.All of the above. e.None of the above ANS: D
  • 14. 37. If you don't specify a mode for a parameter, what is the default mode? a.OUT b.IN c.COPY d.DEFAULT e.R(ead) ANS: B 38. Which kind of parameters cannot have a DEFAULT value? a.OUT b.IN c.CONSTANT d.R(ead) e.W(rite) ANS: A 39. What are the three parameter modes for procedures? a.IN, OUT, IN OUT b.R(ead), W(rite), A(ppend) c.CON
  • 15. 38. Which kind of parameters cannot have a DEFAULT value? a.OUT b.IN c.CONSTANT d.R(ead) e.W(rite) ANS: A 39. What are the three parameter modes for procedures? a.IN, OUT, IN OUT b.R(ead), W(rite), A(ppend) c.CONSTANT, VARIABLE, DEFAULT d.COPY, NOCOPY, REF ANS: A 40. Which one of the following statements about formal and actual parameters is true? a.Formal and actual parameters must have the same name. b.Formal and actual parameters must have different names. c.A formal parameter is declared within the called procedure, while an actual parameter is declared in thecalling environment. d.An actual parameter is declared within the called procedure. ANS: C
  • 16. 41. What is the correct syntax to create procedure MYPROC that accepts two number parameters X and Y? a.CREATE PROCEDURE myproc (x NUMBER, y NUMBER) IS ... b.CREATE PROCEDURE (x NUMBER, y NUMBER) myproc IS ... c.CREATE PROCEDURE myproc IS (x NUMBER, y NUMBER) ... d.CREATE PROCEDURE IS myproc (x NUMBER, y NUMBER) ... ANS: A 42. In the context of MS SQL SERVER, with the exception of ............ column(s), any column can participate in the GROUP BY clause. A) bit B) text C) ntext D) image E) All of above ANS: E 43. The sequence of the columns in a GROUP BY clause has no effect in the ordering of the output. A) True B) False ANS: B
  • 17. 44. You want all dates when any employee was hired. Multiple employees were hired on the same date and you want to see the date only once. Query - 1 Select distinct hiredate From hr.employee Order by hiredate; Query - 2 Select hiredate From hr.employees Group by hiredate Order by hiredate; Which of the above query is valid? A) Query - 1 B) Query - 2 C) Both ANS: C 45. GROUP BY ALL generates all possible groups - even those that do not meet the query's search criteria. A) True B) False ANS: A
  • 18. 46. All aggregate functions ignore NULLs except for ............ A) Distinct B) Count (*) C) Average() D) None of above ANS: B 47. Using GROUP BY ............ has the effect of removing duplicates from the data. A) with aggregates B) with order by C) without order by D) without aggregates ANS: D 48. Below query is run in SQL Server 2012, is this query valid or invalid: Select count(*) as X from Table_Name Group by () A) Valid B) Invalid ANS: A
  • 19. 49. For the purposes of ............, null values are considered equal to other nulls and are grouped together into a single result row. A) Having B) Group By C) Both of above D) None of above ANS: B 50. If you SELECT attributes and use an aggregate function, you must GROUP BY the non-aggregate attributes. A) True B) False ANS: A