GSSP-NET · Question #283
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework…
The correct answer is A. thd.Start(101); B. ParameterizedThreadStart tStart; tStart = new ParameterizedThreadStart(ProcAmount). See the full explanation below for the reasoning.
Question
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You need to execute a method named ProcAmount in the background of the application. The method requires that an integer value 101 is passed to it. You are required to pass an integer value 101 to start a background thread. Which of the following code segments should you use? Each correct answer represents a part of the solution. Choose two.
Options
- Athd.Start(101);
- BParameterizedThreadStart tStart; tStart = new ParameterizedThreadStart(ProcAmount);
- Cthd.Start();
- DThreadStart tStart = new ThreadStart(ProcAmount);
How the community answered
(23 responses)- A74% (17)
- C9% (2)
- D17% (4)
Community Discussion
No community discussion yet for this question.