Microsoft .NET 面试题与答案
Test your skills through the online practice test: Microsoft .NET Quiz Online Practice Test
问题 51. Write some code to box and unbox a value type.
// Boxing
int i = 4;
object o = i;
// Unboxing
i = (int) o;
这有帮助吗?
添加评论
查看评论
问题 52. What is a heap and a stack?
There are 2 kinds of heap – 1: a chunk of memory where data is stored and 2: a tree
based data structure. When we talk about the heap and the stack we mean the first kind
of heap. The stack is a LIFO data structure that stores variables and flow control
information. Typically each thread will have its own stack.
这有帮助吗?
添加评论
查看评论
问题 53. What is a pointer?
A pointer is a reference to a memory address.
这有帮助吗?
添加评论
查看评论
问题 54. What does new do in terms of objects?
Initializes an object.
这有帮助吗?
添加评论
查看评论
问题 55. How do you dereference an object?
Set it equal to null.
这有帮助吗?
添加评论
查看评论
用户评价最有帮助的内容:
- Name 10 C# keywords.
- What is public accessibility?
- .NET Stands for?
- What is private accessibility?
- What is protected accessibility?