PrepAway - Latest Free Exam Questions & Answers

Which two code segment should you use?

You are creating a Windows Forms application. You want to execute a method named ProcessAmount in the background of the application. The method you want to execute requires that an integer value of 13 is passed. You need to pass an integer value of 13 to a starting background thread. Which two code segment should you use? (Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
ThreadStart ts = new ThreadStart(ProcessAmount);
Thread t = new Thread(ts, 13);

B.
ParameterizedThreadStart ts = new ParameterizedThreadStart(ProcessAmount);
Thread t = new Thread(ts);

C.
t.Start();

D.
t.Start(13);


Leave a Reply