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. FLOAT
C. DECIMAL
D. DOUBLE
Answer: Option C
Solution (By JKExamLibrary)
DECIMAL (or NUMERIC) is used for exact numeric values with fixed precision and scale. FLOAT, DOUBLE, REAL are approximate.

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which of the following is NOT an advantage of DBMS over traditional file systems?
A. Data independence
B. Data redundancy control
C. Higher data security
D. Simpler implementation and lower cost

Correct Answer: Option D


Explanation:
DBMS generally involves higher initial costs and complexity compared to simple file systems, though it offers better control over redundancy, independence, and security.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which of the following is a true statement about indexes?
A. Indexes are only used for primary keys
B. Indexes improve the speed of SELECT queries but can slow down INSERT, UPDATE, and DELETE operations
C. Indexes cannot be created on views
D. Indexes always improve performance

Correct Answer: Option B


Explanation:
Indexes speed up data retrieval but require additional maintenance during data modifications, which can slow down DML operations.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
What is the purpose of the SQL 'CONSTRAINT' keyword?
A. To create views
B. To join tables
C. To define rules for data integrity
D. To create indexes

Correct Answer: Option C


Explanation:
Constraints are used to enforce rules on data, such as NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, and CHECK.

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