Press "Enter" to skip to content

.net interview Questions – Part -1

 Can the interface inherit the interface? Can an abstract class implement an interface? Can an abstract class inherit an entity class?

A: Interfaces can inherit interfaces. Abstract classes can implement interfaces. Abstract classes can inherit entity classes, but there are conditions. The condition is that the entity class must have an explicit constructor.

Can the constructor Constructor be inherited? Can it be Override?

A: Constructor can’t be inherited, so it can’t be overridden, but it can be overloaded.

When a thread enters an object’s method, can other threads access the object’s methods?

A: No, an object method can only be accessed by one thread.

C# can operate directly on the memory?

A: This question is more difficult to answer and is also a big problem. But you can ask questions like this.

C# can directly operate on memory. Although pointers are rarely used, C# can use pointers. When used, you need to add unsafe at the front, and use the garbage collection mechanism (GC) function in .net. It replaces the programmer, but in C# it is not possible to use the finalize method directly, which is to call the base class’s finalize() method in the destructor.

Error and Exception are the difference?

A: Error means that recovery is not impossible, but it is very difficult. Exception indicates an actual or implementation problem, which means that the program does not work properly.

talk about the difference between final, finally, finallize?

A: final is used to declare attributes, methods and classes, indicating that the attribute is immutable, the method cannot be overridden, and the class cannot be inherited.

Finally is the part of the exception handling statement structure that indicates that it is always executed.

Finallize indicates that the object class is a method that is called when the garbage collection mechanism is executed.

the difference between HashMap and Hashtable?

A: HashMap is a lightweight implementation of Hashtable. The non-thread-safe implementation implements the map interface. The main difference is that the HashMap key can be null and the efficiency can be higher than Hashtable.

the difference between Collection and Collections?

A: Collection is the superior interface of the collection class. Collections is a helper class for the collection class. It provides a series of static methods to implement search, sorting, and thread-safe operations on various collections.

What is the commission in C#? Is the incident a kind of commission?

A: A delegate is a safe similarity to a function pointer, but she is much safer than a pointer. It can pass a method as a parameter to another method, which can be understood as a reference to a function. An event is a message mechanism. It is a kind of delegation. The delegate does not have a method body.

Override, Overload, the difference?

A: Override means rewriting. It means to override the base class method, and the method name, return type, parameter type, and number of parameters should be the same as the base class.

Overload is overloaded, it also means to override the base class, but as long as the method name is the same, anything else can be different.

 in a BS structure need to pass variable values, you can not use session, coolke, application, how many methods do you have?

A: this.server.Transfer, Querystring.

C# indexer implementation process, can only be based on digital index?

A: No, it can be of any type.

New has several uses?

A: There are 3 kinds, the first one is, instantiating such as: NewClass()

The second is that public new hides the base class method.

The third is that any type parameter in a generic class declaration must have a public no-argument constructor.

Any copy of an Array to an Arraylist?

A: Foreach (object o in Array), ArrayList.Add (0), etc. There are many methods. Think for yourself.

Overview of reflection and serialization?

A: Reflection: It is still difficult to give the next definition of launch. Let me talk about my understanding here. Reflection provides a wrapper assembly, module and type object that can be used to dynamically create an instance of a type, bind a type to an existing object, or get a type from an existing object type, then call the type’s method or access the field and Attributes.

Serialization: A format process that converts an object into another medium. For example, serializing an object, passing the object between the client and the server over the internet using Http, and retrieving the object from the stream using deserialization at the other end.

Const and ReadOnly?

A: Const is used to declare a constant when programming, and ReadOnly is used to declare a runtime constant.

UDP and TCP connections have similarities and differences?

A: TCP is a transport control protocol that provides connection-oriented, reliable, byte-streaming services. When users and servers interact with each other, they must make a TCP connection before their data interaction to transmit data. TCP provides timeout redialing and checking data functions.

UDP is a user datagram protocol, a simple datagram-oriented transport protocol that is an unreliable connection.

how to understand the process and the thread separately?

A: A process is a program running unit larger than a thread. It is a system running unit that is understood by the operating system. There must be at least one process in a program. There is one process.

There must be at least one thread. The dividing scale of the thread is smaller than the process. The process has independent memory units, and the thread is shared memory, which greatly improves the running efficiency of the program.

Multiple threads in the same process can execute concurrently.

How many ways to pass values ​​between ASP.NET pages?

A: QueryString, session, cookies, application, server.Transfer, respose.redictor.

What is an application domain? What is managed code? What is a strong type system? What is boxing and unboxing? What is overloading?

What are CTS, CLS and CLR?

Explanation? A: Application domain: is the isolation boundary provided for security, reliability, isolation, and version control, and uninstaller. It is usually created by the runtime host, the application

The program domain provides a safer and more versatile processing unit. Managed code: Code written using the CLR Compilation Language Editor is called managed code. Boxing and Unboxing: The process of converting a value type to a reference type is implicit. The reverse process is unboxing and is explicit. CTS

Is a public type system, CLS is a common language specification, CLR common language runtime. Strongly typed systems: Each variable and object must have a declared type.

What is the difference between a value type and a reference type?

A: The value of the value type is stored in the stack, the value is changed, the original value of the variable is not changed, and the value of the reference type is stored in the stack, and the referenced address is stored in the stack, and the change is made. The value also changes the original value of the variable. Value types are not allowed to contain null values, whereas nullable types can assign null to value type l.

What are the authentication methods for ASP.net?

A: windows, forms, passport

Explain the meaning of UDDI, WSDL and its role?

A: UDDI is a unified description integration protocol. It is a set of Web-based, distributed, standard implementation standards for information registration for Web services. It is also a Web service registration for the enterprise itself to enable other companies to discover. And access to the protocol standards. A standards-based specification is provided for describing and discovering services, and a set of Internet-based implementations is also provided. WSDL This is an XML-based interface for describing WEB services.

What is SOAP?

A: It is a simple access agreement. It is a protocol that exchanges information and implements remote calls in a distributed environment. Is an XML-based protocol. With SOAP, you can ignore any transport protocol, but usually the HTTP protocol, allowing any type of object or code to communicate with each other on any platform, in any language. It is a lightweight protocol.

How to deploy one ASP.net page?

A: vs2003, vs2005 has a publishing mechanism inside, vs2003 can be released and then deployed in replication. Vs2005 can be deployed directly to the corresponding location.

How to understand the garbage collection mechanism in .net?

A: The garbage collection mechanism in .NET is the recycling and release of memory by the reference program. Whenever an object is created with the new keyword, the runtime allocates memory from the managed heap, because the space is limited, and eventually the garbage collection mechanism is to reclaim unused memory. Memory has been freed and reused.

Three basic principles of object orientation?

A: Encapsulation, inheritance, polymorphism.

What are the base classes for all classes in .NET?

A: object.

Can you use foreach to traverse the accessed objects that need to be implemented?

A: You need to implement the IEnumerable interface and the GetEnumerator() method.

What is the difference between Heap and stack?

A: Heap is a heap, space is allocated and released by manual operation, and its storage area is large free storage area.

Stack is a stack that is automatically allocated and released by the operating system. The space on the stack is limited. The variable and function allocation memory of the program is performed on the stack during compilation, and the transfer of parameters at runtime runtime is also performed on the stack.

267 Comments

  1. 20bet 20bet September 2, 2023

    Your article gave me a lot of inspiration, I hope you can explain your point of view in more detail, because I have some doubts, thank you.

  2. 20bet 20bet September 24, 2023

    I am currently writing a paper and a bug appeared in the paper. I found what I wanted from your article. Thank you very much. Your article gave me a lot of inspiration. But hope you can explain your point in more detail because I have some questions, thank you. 20bet

  3. 20bet 20bet September 27, 2023

    Apoiar ferramentas de apostas e estar equipado com uma plataforma diversificada de transações financeiras, a 20Bet oferece suporte tangível aos jogadores. Este é um lugar onde eles podem apostar com dinheiro real, respaldados por concorrentes de diversas disciplinas esportivas. 20bet

  4. Suivre Téléphone Suivre Téléphone January 30, 2024

    Grâce au programme de surveillance parentale, les parents peuvent prêter attention aux activités de téléphonie mobile de leurs enfants et surveiller les messages WhatsApp plus facilement et plus facilement. Le logiciel d’application s’exécute silencieusement en arrière-plan de l’appareil cible, enregistrant des messages de conversation, des émoticônes, des fichiers multimédias, des photos et des vidéos. Il s’applique à tous les appareils fonctionnant sur les systèmes Android et iOS.

  5. Suivre Téléphone Suivre Téléphone February 11, 2024

    Si vous envisagez d’utiliser une application d’espionnage de téléphone portable, vous avez fait le bon choix.

  6. Ypsqfu Ypsqfu February 28, 2024

    cheap cyclobenzaprine 15mg ozobax usa order baclofen 25mg generic

  7. Bdabvg Bdabvg March 5, 2024

    reglan 10mg cheap hyzaar us buy cozaar without a prescription

  8. Binance - rejestracja Binance - rejestracja March 16, 2024

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  9. Dnftka Dnftka March 31, 2024

    clomipramine 25mg oral – oral celexa purchase sinequan without prescription

  10. sklep online sklep online April 16, 2024

    Wow, amazing blog layout! How lengthy have you been running a blog for?
    you made blogging glance easy. The entire look
    of your web site is excellent, let alone the content! You can see
    similar here najlepszy sklep

  11. 注册Binance 注册Binance April 26, 2024

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  12. ctfpz7 ctfpz7 May 2, 2024

    探索Telegram官网,体验全球领先的即时通讯工具!Telegram支持多平台使用,无论是智能手机还是电脑,都可以畅享极速、安全的消息、文件分享服务。官网提供直接下载链接,简单几步即可安装。全球数亿用户的选择,不受地域限制,保证通讯安全与隐私。立即下载,开启您的即时通讯新体验!Explore the official Telegram website and experience a leading global instant messaging tool! Telegram supports multiple platforms, whether on a smartphone or computer, you can enjoy fast and secure messaging and file-sharing services. The official website provides direct download links, and installation is just a few steps away. Chosen by hundreds of millions of users worldwide, it offers unrestricted communication with guaranteed security and privacy. Download now to start your new messaging experience! https://www.telegramkx.com
    aikvicn28l

  13. Eikfqu Eikfqu May 7, 2024

    priligy mistaken – zudena bus cialis with dapoxetine dismiss

  14. Mtllwd Mtllwd May 8, 2024

    cenforce online tell – brand viagra online passion

  15. Pahufa Pahufa June 16, 2024

    order feldene 20 mg without prescription – piroxicam uk buy rivastigmine 6mg sale

  16. Qcuvjw Qcuvjw July 1, 2024

    order norpace without prescription – lamivudine brand buy thorazine without prescription

  17. Winston O Winston O July 13, 2024

    I like this website it’s a master piece! Glad I
    discovered this ohttps://69v.topn google.Blog money

  18. VfXVhsuo1k VfXVhsuo1k July 14, 2024

    向日葵远程控制客户端提供简单直观的操作界面,支持Windows、Mac、iOS和Android等多个操作系统,无缝连接全球任何地点的设备。强大的文件传输功能和远程会议支持,使您的远程工作更加高效。安全可靠的服务让您的每一次操作都安心。https://www-oray.com/ KpXiKQhCZ

  19. LXZ5thA LXZ5thA July 16, 2024

    向日葵远程控制客户端提供简单直观的操作界面,支持Windows、Mac、iOS和Android等多个操作系统,无缝连接全球任何地点的设备。强大的文件传输功能和远程会议支持,使您的远程工作更加高效。安全可靠的服务让您的每一次操作都安心。https://www-oray.com/ qpZl8LV

  20. 6hdiw 6hdiw July 17, 2024

    向日葵远程控制客户端提供简单直观的操作界面,支持Windows、Mac、iOS和Android等多个操作系统,无缝连接全球任何地点的设备。强大的文件传输功能和远程会议支持,使您的远程工作更加高效。安全可靠的服务让您的每一次操作都安心。https://www-oray.com/ VaG6FoC

  21. hn0h0a hn0h0a July 18, 2024

    向日葵远程控制客户端提供简单直观的操作界面,支持Windows、Mac、iOS和Android等多个操作系统,无缝连接全球任何地点的设备。强大的文件传输功能和远程会议支持,使您的远程工作更加高效。安全可靠的服务让您的每一次操作都安心。https://www-oray.com/ DYhIHxrp9t

  22. GcUVcFo35 GcUVcFo35 July 19, 2024

    向日葵远程控制客户端提供简单直观的操作界面,支持Windows、Mac、iOS和Android等多个操作系统,无缝连接全球任何地点的设备。强大的文件传输功能和远程会议支持,使您的远程工作更加高效。安全可靠的服务让您的每一次操作都安心。https://www-oray.com/ 1N2hdEMu

  23. crea un account binance crea un account binance July 24, 2024

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  24. WilliamSMusA WilliamSMusA August 10, 2024

    The company 035idc.com has long been a top directories for educational institutions on the market. They specialize in providing clients a broad array of information, from elementary schools to high schools, helping users find and connect with schools easily.

    You can read more here: [url=https://anotherlink.com]anotherlink.com[/url]

    You can find more details at 035idc.com

  25. Dpwkay Dpwkay August 17, 2024

    where to buy deflazacort without a prescription – deflazacort price where can i buy brimonidine

  26. ремонт ipad ремонт ipad September 5, 2024

    Профессиональный сервисный центр по ремонту планетов в том числе Apple iPad.
    Мы предлагаем: ремонт айпадов в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  27. Профессиональный сервисный центр по ремонту радиоуправляемых устройства – квадрокоптеры, дроны, беспилостники в том числе Apple iPad.
    Мы предлагаем: ремонт коптера
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  28. Профессиональный сервисный центр по ремонту источников бесперебойного питания.
    Мы предлагаем: ремонт ибп цена
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  29. Профессиональный сервисный центр по ремонту фото техники от зеркальных до цифровых фотоаппаратов.
    Мы предлагаем: ремонт затвора фотоаппарата
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  30. WilliamSMusA WilliamSMusA September 12, 2024

    Ознакомьтесь с лучшими предложениями на 1win, перейдя по ссылке – 1win войти

  31. Wojiib Wojiib September 12, 2024

    how to get ozobax without a prescription – ozobax brand purchase piroxicam generic

  32. Профессиональный сервисный центр по ремонту видео техники а именно видеокамер.
    Мы предлагаем: мастер по ремонту видеокамер
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  33. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем: ремонт крупногабаритной техники в казани
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  34. Профессиональный сервисный центр по ремонту игровых консолей Sony Playstation, Xbox, PSP Vita с выездом на дом по Москве.
    Мы предлагаем: срочный ремонт игровой консоли
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  35. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем: сервисные центры по ремонту техники в красноярске
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  36. WilliamSMusA WilliamSMusA September 29, 2024

    Получите промокод для 1win и активируйте бонусы на сайте через 1win войти

  37. Briandrege Briandrege September 30, 2024

    These Delta 9 gummies are hands down the best I’ve tried! The effects are totally balanced like best calm gummies – providing a calming, euphoric sense of foreboding without being overwhelming. The bite is fantastic, and they punt in within an hour, offering long-lasting relief from stress and inoffensive aches. Profit, they’re ìåéä with high-quality ingredients. I’d effectively recommend these to anyone looking for the purpose a reliable, enjoyable Delta 9 experience

  38. WilliamSMusA WilliamSMusA October 17, 2024

    Узнайте, как profi-co обеспечивает доставку топлива в Московском регионе.

  39. Сломался телефон, думал покупать новый, но решил попробовать отремонтировать. Обратился в этот сервисный центр и не пожалел. Профессионалы своего дела быстро восстановили мой телефон. Рекомендую посетить их сайт: лучшие сервисы по ремонту iphone в москве.

  40. 注册Binance 注册Binance November 19, 2024

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

Leave a Reply

Your email address will not be published. Required fields are marked *