70-536  Exam

Exam # of questions Description  Update
70-536 203 70-536... 02/15/2011
[Practice Test]    [Download Study Guide(PDF)]   [Update Exam]

70-536 - Exam Information
  • Description: Microsoft .NET Framework 2.0-Application Development Foundation
  • Passing Score: 75%
  • Practice Test - Number of questions: 203 questions
  • Simulation Test - Number of questions: 203 questions
  • Simulation Test Duration: 90 minutes
  • Has explanations: No

Question of the day

You are creating an application that lists processes on remote computers. The application requires a method that performs the following tasks: Accept the remote computer name as a string parameter named strComputer.Return an ArrayList object that contains the names of all processes that are running on that computer. You need to write a code segment that retrieves the name of each process that is running on the remote computer and adds the name to the ArrayList object. Which code segment should you use?

Answer(s)

  1. ArrayList al = new ArrayList();Process[] procs =Process.GetProcessesByName(strComputer);foreach (Process proc in procs) {al.Add(proc);}
  2. ArrayList al = new ArrayList();Process[] procs = Process.GetProcesses(strComputer);foreach(Process proc in procs) {al.Add(proc);}
  3. ArrayList al = new ArrayList();Process[] procs =Process.GetProcessesByName(strComputer);foreach (Process proc in procs) {al.Add(proc.ProcessName);}
  4. ArrayList al = new ArrayList();Process[] procs = Process.GetProcesses(strComputer);foreach(Process proc in procs) {al.Add(proc.ProcessName);}
Correct Answer

ArrayList al = new ArrayList();Process[] procs = Process.GetProcesses(strComputer);foreach(Process proc in procs) {al.Add(proc.ProcessName);}