Q. CREATE DATABASE has how many mandatory parameters?

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1

Q. For every unique constraint on a column, SQL server will create

  • (A) Does not create any index
  • (B) clustered index for that column
  • (C) index for that column
  • (D) non-clustered index for that column
πŸ’¬ Discuss
βœ… Correct Answer: (D) non-clustered index for that column

Q. Which operation, when performed on a database can throw an error

  • (A) “The database could not be exclusively locked to perform the operation”
  • (B) DELETE database
  • (C) DROP database
  • (D) Rename database
πŸ’¬ Discuss
βœ… Correct Answer: (D) Rename database

Q. What is the syntax for creating new login on the SQL sevrer?

  • (A) USE LOGIN login_id WITH PASSWORD password
  • (B) CREATE LOGIN login_id WITH USE password
  • (C) CREATE LOGIN login_id USE password
  • (D) CREATE LOGIN login_id WITH PASSWORD password
πŸ’¬ Discuss
βœ… Correct Answer: (D) CREATE LOGIN login_id WITH PASSWORD password

Q. An index can be defined for a single column

  • (A) True
  • (B) False
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Q. Why type of user is the default in sql server?

  • (A) SINGLE_USER
  • (B) MULTI_USER
  • (C) RESTRICTED_USER
  • (D) ROOT_USER
πŸ’¬ Discuss
βœ… Correct Answer: (B) MULTI_USER

Q. When SQL server is installed, which of the following databases are created by default?

  • (A) Master
  • (B) Model
  • (C) Both a and b
  • (D) Root
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both a and b

Q. Stored procedures are safe from SQL injection attacks

  • (A) True
  • (B) False
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (A) True

Q. Which of the following below are valid database states?

  • (A) OFFLINE
  • (B) SUSPECT
  • (C) EMERGENCY
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Q. Can we temporarily disable a login name?

  • (A) Yes
  • (B) No
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes