MCQs on C# Threads
Q1. How many threads can exists for each of the processes that occurs in the program?
a) at most 1
b) atleast 1
c) both at most 1 & atleast 1
Q2. Which of these classes is used to make a thread?
Q3. Which of these method of Thread class is used to Suspend a thread for sometime?
a) sleep( )
b) terminate( )
c) suspend( )
Q4. On calling which type of method the newly created thread will not start executing?
a) Begin( )
b) Start( )
c) New( )
Q5. . Which is the first thread created inside a process ?
a) Beginning Thread
b) Main Thread
c) Both (a) and (b)
Q6. The _______ method is used to terminate the thread.
Q7. Which state is also known as ‘Ready To Run’ state?
a) Running State
b) Runnable State
c) Unstarted State
- Sebesta,”Concept of programming Language”, Pearson Edu
- Louden, “Programming Languages: Principles & Practices” , Cengage Learning
- Tucker, “Programming Languages: Principles and paradigms “, Tata McGraw –Hill.
- E Horowitz, “Programming Languages”, 2nd Edition, Addison Wesley