DOT NET Questions
==================
Beginners
==================
Q. Difference between Shallow/Deep copy?Shallow Copy:
Shallow repetition is quicker. However, it’s “lazy” it handles pointers and references. Rather than creating a contemporary copy of the particular knowledge the pointer points to, it simply copies over the pointer price. So, each the first and therefore the copy can have pointers that reference constant underlying knowledge.
Deep Copy:
Deep repetition truly clones the underlying data. It is not shared between the first and therefore the copy.
| Shallow Copy | Deep Copy |
|---|---|
| Shallow Copy stores the references of objects to the original memory address. | Deep copy stores copies of the object’s value. |
| Shallow Copy reflects changes made to the new/copied object in the original object. | Deep copy doesn’t reflect changes made to the new/copied object in the original object. |
| Shallow Copy stores the copy of the original object and points the references to the objects. | Deep copy stores the copy of the original object and recursively copies the objects as well. |
| Shallow copy is faster. | Deep copy is comparatively slower. |
Q.Difference between Assembly and Module?
Q.Difference between Metadata and Manifest?
Q.What is managed and unmanaged code, in .NET, with realtime examples?
Q.What is coupling and cohesion?
Q.Difference between boxing and casting?
Q.What is polymorphism? Types?
Q.What is casting? types?
Q.Difference between Generics and Arrays?
Q.Difference between String and StringBuffer classes in .NET?
Q.Difference between readonly and const keywords in .NET?
Q.Difference between struct and class in .NET?
Q. You are developing an application that includes a class named Order. The application will store a collection of Order objects.
The collection must meet the following requirements:
✑ Use strongly typed members.
✑ Process Order objects in first-in-first-out order.
✑ Store values for each Order object.
✑ Use zero-based indices.
You need to use a collection type that meets the requirements.
Which collection type should you use?
A. Queue<T> => CORRECT
B. SortedList
C. LinkedList<T>
D. HashTable
E. Array<T>
==================
Intermediate
==================
==================
Experts
==================
Comments
Post a Comment