Viva Questions and Answers Fixed
Viva Questions and Answers Fixed
PL/SQL Questions
Answer: PL/SQL stands for Procedural Language/Structured Query Language. It extends SQL by
adding procedural constructs such as loops, conditions, and exceptions. It is used for writing
complex business logic, creating stored procedures, functions, and triggers, and improving database
Answer:
- Implicit Cursor: Automatically created by Oracle for SQL queries (e.g., SELECT INTO).
- Explicit Cursor: Declared and controlled by the programmer to handle multiple rows.
Answer:
- User-Defined Exceptions: Declared explicitly by the programmer using the EXCEPTION block.
Answer:
DECLARE
num NUMBER := 5;
factorial NUMBER := 1;
BEGIN
factorial := factorial * i;
END LOOP;
END;
Answer: Oracle Application Express (Apex) is a low-code development platform for building web
applications. It allows developers to design, develop, and deploy applications rapidly using a
browser interface.
2. What is an interactive report in Apex? How does it differ from an interactive grid?
Answer:
- An interactive report is used for data analysis and reporting with tools like filters and highlights.
Answer:
- Database Authentication
- LDAP/SSO Authentication
- Custom Authentication
Answer: Apex integrates with RESTful web services to exchange data with other systems. It
supports both consuming REST APIs and building REST-enabled applications using its REST
workshop.
SQL/Database Questions
Answer:
- TRUNCATE: Removes all rows, faster than DELETE, but cannot be rolled back.
Answer: A sequence generates unique numerical values, often for primary keys.
Example:
Answer:
DECLARE
num2 NUMBER := 0;
result NUMBER;
BEGIN
BEGIN
EXCEPTION
END;
END;
Answer:
BEGIN
INSERT INTO logs (log_message) VALUES ('New employee added: ' || :NEW.name);
END;