OOPs Interview Question and Answers
6. |
Define thread? |
|
- A thread is a dispatch unit of work. It is also known as Lightweight process.
|
|
|
7. |
What is the use of scope? |
|
- A scope determines what objects are visible to other parts of the program.
- It depends on the type of the variable and place of its declaration.
|
|
|
8. |
What are the four possible types of parameters available? |
|
In C#, there are four possible types of parameters available.- Value Parameter
- Reference Parameter
- Output Parameter
- Parameter Array
|
|
|
9. |
Define Structure |
|
- Structures often refined to as structs are similar to classes in C#.
- It provides a unique way of packing together data of different types.
- It is a convenient tool for handling a group of logically related data items.
|
|
|
10. |
What is called nested structure? |
|
- In C#, the creation of a structure with in another structure is allowed.
- It is called as nested structures.
|
|
|
123456789101112
Page 2 of 12