Question:Certkiller .com has a server named Certkiller -SR05 that has numerous processors installed.
You have been given the task of developing an application that displays certain clock speed
statistics
on all processors installed on Certkiller -SR05.
You need to ensure that this requirement is fully satisfied.
What should you do? - (VB.Net)
A Use the following code:
Dim processorSearcher As New ManagementObjectSearcher()
For Each obj As ManagementObject In processorSearcher.[Get]("SELECT * FROM
Win32_Processor")
Console.WriteLine("{0}", obj("Name"))
Console.WriteLine("{0} / {1}", obj("CurrentClockSpeed"), Obj("MaxClockSpeed"))
Next
B Use the following code:
Dim processorSearcher As New ManagementObjectSearcher("SELECT * FROM
Win32_Processor")
For Each obj As ManagementObject In processorSearcher.[Get]()
Console.WriteLine("{0}", obj("Name"))
Console.WriteLine("{0} / {1}", obj("CurrentClockSpeed"), obj("MaxClockSpeed"))
Next
C Use the following code:
Dim processorQuery As New ManagementObjectQuery()
For Each obj As ManagementObject In processorQuery.[Get]("SELECT * FROM
Win32_Processor")
Console.WriteLine("{0}", obj("Name"))
Console.WriteLine("{0} / {1}", obj("CurrentClockSpeed"), obj("MaxClockSpeed"))
Next
D Use the following code:
Dim processorQuery As New ManagementObjectQuery("SELECT * FROM Win32_Processor")
For Each obj As ManagementObject In processorQuery.[Get]()
Console.WriteLine("{0}", obj("Name"))
Console.WriteLine("{0} / {1}", obj("CurrentClockSpeed"), obj("MaxClockSpeed"))
Next