Views & Programmability interview questions

18 Views & Programmability questions from the SQL bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is view?

Junior
  1. A.a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
  2. B.a routine the database fires automatically before or after an insert, update, or delete event on a table
  3. C.a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  4. D.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions

Answer + AI explanation with Pro

2. Which term means: "a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself"?

Junior
  1. A.stored procedure
  2. B.user-defined function
  3. C.view
  4. D.materialized view

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.view — a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  2. B.view — a routine the database fires automatically before or after an insert, update, or delete event on a table
  3. C.view — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  4. D.view — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions

Answer + AI explanation with Pro

4. What is materialized view?

Mid
  1. A.a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  2. B.a routine the database fires automatically before or after an insert, update, or delete event on a table
  3. C.a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  4. D.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions

Answer + AI explanation with Pro

5. Which term means: "a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes"?

Mid
  1. A.user-defined function
  2. B.materialized view
  3. C.trigger
  4. D.view

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.materialized view — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  2. B.materialized view — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
  3. C.materialized view — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  4. D.materialized view — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value

Answer + AI explanation with Pro

7. What is stored procedure?

Mid
  1. A.a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  2. B.a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
  3. C.a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  4. D.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions

Answer + AI explanation with Pro

8. Which term means: "a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value"?

Mid
  1. A.user-defined function
  2. B.trigger
  3. C.stored procedure
  4. D.view

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.stored procedure — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  2. B.stored procedure — a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  3. C.stored procedure — a routine the database fires automatically before or after an insert, update, or delete event on a table
  4. D.stored procedure — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration

Answer + AI explanation with Pro

10. What is trigger?

Mid
  1. A.a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  2. B.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  3. C.a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  4. D.a routine the database fires automatically before or after an insert, update, or delete event on a table

Answer + AI explanation with Pro

11. Which term means: "a routine the database fires automatically before or after an insert, update, or delete event on a table"?

Mid
  1. A.stored procedure
  2. B.cursor
  3. C.trigger
  4. D.materialized view

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.trigger — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  2. B.trigger — a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  3. C.trigger — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  4. D.trigger — a routine the database fires automatically before or after an insert, update, or delete event on a table

Answer + AI explanation with Pro

13. What is user-defined function?

Mid
  1. A.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  2. B.a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
  3. C.a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  4. D.a routine the database fires automatically before or after an insert, update, or delete event on a table

Answer + AI explanation with Pro

14. Which term means: "a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions"?

Mid
  1. A.trigger
  2. B.materialized view
  3. C.user-defined function
  4. D.cursor

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.user-defined function — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  2. B.user-defined function — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  3. C.user-defined function — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
  4. D.user-defined function — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes

Answer + AI explanation with Pro

16. What is cursor?

Senior
  1. A.a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  2. B.a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
  3. C.a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  4. D.a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration

Answer + AI explanation with Pro

17. Which term means: "a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration"?

Senior
  1. A.trigger
  2. B.cursor
  3. C.materialized view
  4. D.user-defined function

Answer + AI explanation with Pro

18. Which statement is correct?

Senior
  1. A.cursor — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
  2. B.cursor — a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
  3. C.cursor — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
  4. D.cursor — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Views & Programmability question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers