Which SQL wildcard character is used to match exactly one single character when using the LIKE operator? MCQ with Answer and Explanation

Which SQL wildcard character is used to match exactly one single character when using the LIKE operator?
A. Percentage sign (%)
B. Question mark (?)
C. Underscore (*)
D. Asterisk (*)
Answer: Option C
Solution (By JKSSB Mock Tests)
In SQL pattern matching with the LIKE operator, the underscore (*) represents exactly one single character, while the percent sign (%) matches zero or more characters.

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 main advantage of using a DBMS?
A. Data integrity and security
B. Reduced application development time
C. Data sharing and concurrency control
D. All of the above

Correct Answer: Option D


Explanation:
DBMS provides numerous benefits including data sharing, concurrency control, integrity, security, and reduces development time.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which language category in SQL is used by database administrators to grant and revoke access privileges and security permissions?
A. TCL
B. DML
C. DCL
D. DDL

Correct Answer: Option C


Explanation:
Data Control Language (DCL) includes commands like GRANT and REVOKE, which manage privileges and security configurations for database users.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a composite key in a database?
A. A key that is a single column
B. A key that is always a foreign key
C. A key that references another table
D. A key that is made up of multiple columns

Correct Answer: Option D


Explanation:
A composite key is a primary key that consists of two or more columns to uniquely identify a row.

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