Which of the following is a valid SQL data type for storing decimal numbers with exact precision? MCQ with Answer and Explanation

Which of the following is a valid SQL data type for storing decimal numbers with exact precision?
A. REAL
B. DOUBLE
C. DECIMAL
D. FLOAT
Answer: Option C
Solution (By JKSSB Mock Tests)
DECIMAL (or NUMERIC) is used for exact numeric values with fixed precision and scale. FLOAT, DOUBLE, REAL are approximate.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What is the concept of referential integrity?
A. Ensuring that all primary keys are unique
B. Ensuring that foreign key values match primary key values in the referenced table
C. Ensuring that no null values exist
D. Ensuring data is normalized

Correct Answer: Option B


Explanation:
Referential integrity ensures that relationships between tables remain consistent, meaning foreign key values must have corresponding primary key values.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which type of database storage anomaly occurs when adding new data to a table is blocked because other unrelated data is missing?
A. Insertion Anomaly
B. Update Anomaly
C. Modification Anomaly
D. Deletion Anomaly

Correct Answer: Option A


Explanation:
An Insertion Anomaly occurs when certain facts cannot be recorded in a database table without falsely manufacturing or requiring the presence of other unrelated facts.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which SQL keyword is used to remove a table from the database?
A. TRUNCATE
B. DROP
C. REMOVE
D. DELETE

Correct Answer: Option B


Explanation:
DROP TABLE is a DDL command that deletes the table and its structure from the database.

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