250+ TOP MCQs on Querying database and Answers Pdf

Database Interview Questions and Answers for freshers on ” Querying database″.

1. _______________ joins are SQL server default
a) Outer
b) Inner
c) Equi
d) None of the Mentioned

Answer: b
Clarification: Inner query joins only the rows that are matching.

2. The ________________ is essentially used to search for patterns in target string.
a) Like Predicate
b) Null Predicate
c) In Predicate
d) Out Predicate

Answer: a
Clarification: Like matches the pattern with the query.

3. Which of the following is/are the Database server functions?
i) Data management
ii) Transaction management
iii) Compile queries
iv) Query optimization
a) i, ii, and iv only
b) i, ii and iii only
c) ii, iii and iv only
d) All i, ii, iii, and iv

Answer: a
Clarification: All these are functions of the database.

4. To delete a database ___________ command is used
a) Delete database database_name
b) Delete database_name
c) drop database database_name
d) drop database_name

Answer: c
Clarification: This will delete the database with its structure.

5. ____________ is a combination of two of more attributes used as a primary key
a) Composite Key
b) Alternate Key
c) Candidate Key
d) Foreign Key

Answer: a
Clarification: Primary keys together form the composite key.

6. Which of the following is not the function of client?
a) Compile queries
b) Query optimization
c) Receive queries
d) Result formatting and presentation

Answer: b
Clarification: Query optimization is used to improve quality.

7. ____________ is a special type of stored procedure that is automatically invoked whenever the data in the table is modified.
a) Procedure
b) Trigger
c) Curser
d) None of the Mentioned

Answer: b
Clarification: Triggers are used to initiate an action to take place.

8. ______________ requires that data should be made available to only authorized users.
a) Data integrity
b) Privacy
c) Security
d) None of the Mentioned

Answer: c
Clarification: Some algorithms may be used for the security.

9. Some of the utilities of DBMS are _____________
i) Loading ii) Backup iii) File organization iv) Process Organization
a) i, ii, and iv only
b) i, ii and iii only
c) ii, iii and iv only
d) All i, ii, iii, and iv

Answer: b
Clarification: Processing is not the a utility in dbms.

10. ____________ allows individual row operation to be performed on a given result set or on the generated by a selected by a selected statement.
a) Procedure
b) Trigger
c) Curser
d) None of the Mentioned

Answer: c
Clarification: Triggers are used to initiate an action to take place.

Leave a Reply

Your email address will not be published. Required fields are marked *