Q. Code for creating an HTML report that lists the name of each service along with its status is __________

  • (A) Get-Ser | ConvertTo-HTML -Property Name, Status > C:\services.htm
  • (B) Get-Service | Property Name, Status > C:\services.htm
  • (C) Get-Service | ConvertTo-HTML -Property Name, Status > C:\services.htm
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) Get-Service | ConvertTo-HTML -Property Name, Status > C:\services.htm

Q. Which of the following code list all the log files in Window?

  • (A) snippet Clear-Host $Directory = "C:\Windows\"` -ErrorAction SilentlyContinue
  • (B) snippet Clear-Host $Files = Get-Childitem $Directory -recurse -Include *.log ` -ErrorAction SilentlyContinue
  • (C) snippet Clear-Host $Directory = "C:\Windows\" $Files = Get-Childitem $Directory -recurse -Include *.log ` -ErrorAction SilentlyContinue
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) snippet Clear-Host $Directory = "C:\Windows\" $Files = Get-Childitem $Directory -recurse -Include *.log ` -ErrorAction SilentlyContinue

Q. Syntax for creating views is __________

  • (A) CREATE VIEW AS UPDATE
  • (B) DROP VIEW AS SELECT
  • (C) CREATE VIEW AS UPDATE
  • (D) CREATE VIEW AS SELECT
πŸ’¬ Discuss
βœ… Correct Answer: (D) CREATE VIEW AS SELECT

Q. You can delete a view with ___________ command.

  • (A) TRUNCATE VIEW
  • (B) REMOVE VIEW
  • (C) DELETE VIEW
  • (D) DROP VIEW
πŸ’¬ Discuss
βœ… Correct Answer: (D) DROP VIEW

Q. What is SCHEMABINDING a VIEW?

  • (A) These are used to show database self describing information
  • (B) These types of view are defined by users on a specified schema
  • (C) These are stored only in the Master database
  • (D) Schema binding binds your views to the dependent physical columns of the accessed tables specified in the contents of the view
πŸ’¬ Discuss
βœ… Correct Answer: (C) These are stored only in the Master database

Q. ___________ is stored only in the Master database.

  • (A) Database-scoped Dynamic Management View
  • (B) Complex View
  • (C) Catalog View
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of the mentioned

Q. If we do want to eliminate duplicates, we use the keyword __________in the aggregate expression.

  • (A) Primary key
  • (B) Avg
  • (C) Count
  • (D) Distinct
πŸ’¬ Discuss
βœ… Correct Answer: (D) Distinct

Q. All aggregate functions except __________ ignore null values in their input collection.

  • (A) Sum
  • (B) Avg
  • (C) Count(*)
  • (D) Count(attribute)
πŸ’¬ Discuss
βœ… Correct Answer: (D) Count(attribute)

Q. A Boolean data type that can take values true, false, and ____________

  • (A) 0
  • (B) 1
  • (C) Null
  • (D) Unknown
πŸ’¬ Discuss
βœ… Correct Answer: (D) Unknown

Q. The phrase “greater than at least one” is represented in SQL by ___________

  • (A) > some
  • (B) > all
  • (C) < some
  • (D) < all
πŸ’¬ Discuss
βœ… Correct Answer: (A) > some