What is a view in a database? MCQ with Answer and Explanation

What is a view in a database?
A. A physical table stored on disk
B. A virtual table based on the result of a SELECT query
C. A backup of a table
D. An index on a table
Answer: Option B
Solution (By JKSSB Mock Tests)
A view is a logical representation of data, derived from one or more tables, but does not store data physically.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL command deletes all rows from a table without deleting the structural schema, cannot be rolled back easily in some systems, and does not fire delete triggers?
A. REMOVE
B. DROP
C. DELETE
D. TRUNCATE

Correct Answer: Option D


Explanation:
TRUNCATE is a DDL command that quickly removes all records from a table by deallocating the data pages, bypassing row-level logging and triggers while leaving the table structure intact.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which type of JOIN returns all matching rows from both tables, plus all unmatched rows from the left table with NULL values filled in for the right table columns?
A. Inner Join
B. Left Outer Join
C. Full Outer Join
D. Right Outer Join

Correct Answer: Option B


Explanation:
A Left Outer Join preserves all records from the left table, matching them with right table records when possible, or inserting NULL values if no match is found.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a subquery in database terminology?
A. A query that executes after the main query terminates.
B. An error log file.
C. A nested SQL query placed completely inside another outer query statement.
D. A query that runs on a backup server.

Correct Answer: Option C


Explanation:
A subquery (or nested query) is an inner SQL SELECT statement embedded within an outer statement (such as a WHERE, FROM, or SELECT clause).

This question belongs to: Computer Database Management System (DBMS)