SoFunction
Updated on 2025-04-13

Interview Written Examination Questions [with answers] Page 2/3


11. In .net hosting code, we don’t have to worry about memory leaks. Is this because of it?
A: GC garbage collector.
12. What is the difference between & and &&?
Answer: & is a bit operator, representing bitwise operation; && is a logical operator, representing logical and.

13. What is the difference between coverage and overloading?
answer:
Override: Use override declaration, the parameter list must be the same.
Overload: No special declaration is required, as long as the parameter list is different (number or type is different).

14. How many ways to transfer values ​​on the page?
answer:
1. Use or.
2. Use Session, Cookies, Application.
3. Use.
4. Use PostBackUrl to pass.

15. What is packing and unboxing?
Answer: Converting from a value type to a reference type is called boxing, otherwise it is called unboxing.

16. Can interfaces inherit interfaces?
Answer: Yes.

17. Can you inherit the String class?
Answer: The String class is a final class, so it cannot be inherited.

18. Briefly describe the access rights of private, protected, public, and internal modifiers.
answer:
private: Private, internal class.
protected: protected, accessible within and in inherited classes.
public: Unlimited
Internal: Can be accessed in the same namespace

19. What does the following code output? Why?

int i=5;
int j=5;
if ((i,j))
("Equal");
else
("Not Equal");
Answer: Not equal, because the comparison is the object

20. What are the user controls in?
Answer: The key point of the user control in the middle is to distinguish it from custom controls. To put it bluntly, the user control is actually like it is in Asp
include, it is just more powerful. User controls are easy to create but poorly ease of use, and custom controls are difficult to create, but they are easy to use.

21. What is a strong type system?
Answer: RTTI: Type Identification System

22. Write a Sql statement: Take out the records 31 to 40 of Table A (SQLServer, with the automatically growing ID as the primary key. Note: The ID may not be continuous.
Answer: select top 10 * from [A] where ID not in (select top 30 from A)

23. Talk about the difference between final and finally.
answer:
final: cannot be inherited as a parent class. A class cannot be declared final and declared abstract.
finally: Used for the try{}catch{}finally{} structure, used to perform any clearing operation when handling exceptions.

24. What are the progress compared to ASP?
answer:
Compiled, object-oriented programming language, code and interface separation.
ASP interpreted, scripting language.
Previous page123Next pageRead the full text