C basic interview questions Part-5 1.
In this article, we will discuss on Interview questions for experienced C professionals. What are weakreferences in C? What is the difference between string and String in C?
What is the difference between Debug. What is the difference between myEmployee. GetType and typeof Employee in C? What are the advantages and disadvantages of using the GAC? What is the difference between a process and a thread? If asynchronous execution takes less total time to finish than synchronous execution, why would anybody choose synchronous execution?
How is it different than StrongReferences The garbage collector cannot collect an object in use by an application while the application??? The application is said to have a strong reference to the object. A weak reference permits the garbage collector to collect the object while still allowing the application to access the object.
A weak reference is valid only during the indeterminate amount of time until the object is collected when no strong references exist. When you use a weak reference, the application can still obtain a strong reference to the object, which prevents it from being collected. However, there is always the risk that the garbage collector will get to the object first before a strong reference is re-established.
Weak references are useful for objects that use a lot of memory, but can be recreated easily if they are reclaimed by garbage collection 2. What are XML namespaces for? XML namespaces are like packages in C. They are for allowing multiple markup languages to be combined, without having to worry about conflicts of element and attribute names.
String stands for System. String and it is a.
Both of them are compiled to System. String in IL Intermediate Languageso there is no difference. The ref modifier means that: The out modifier means that: You can read the difference between value type and reference type here. Write will work when the application is in both debug and release mode.
Write will work when the application is in release mode.
This is used in release version of application and will be compiled while you define debug points in your project. Write sends their output to the same destinations, as defined by the TraceListenersCollection.
Write is used at application development time and Trace. Write will be emitted. Write will be emitted 6.
The result of both would be exactly the same. It will be your Employee type that derives from System. The only real difference here is that when you want to obtain the type from an instance of your class, you use GetType.
GetType gets resolved at runtime, while typeof is resolved at compile time. It disappears if the machine is rebooted. In Synchronus mode, every task executes in sequence, so it???
With asynchronous execution, you have few challenges: You will have to create a mechanism to wait for all tasks to finish before launching the new task. If you have a shared resource, like a list that is written in one task and read in another, make sure that it???
The tasks can end at any time, and you don??? But in synchronous programming we have below disadvantages: Typically, these programs have only one UI thread, and when you use it as a blocking operation, you get the spinning wheel and???Aug 20, · kaja-net.com & kaja-net.com - Chris Szurgot's Blog difference between kaja-net.com and kaja-net.com?
When should each be used? in C#, kaja-net.com, kaja-net.com A Treatise on Using Debug and Trace classes, including Exception Handling. Marc Clifton given the names of these classes, one would more likely use kaja-net.com for assertions and kaja-net.com for traces. If you buy into the logic I discussed regarding asserts and traces, this is exactly the wrong thing to do.
an application should use. The kaja-net.com will work while the application is in both Debug Mode and Release Mode. This is normally used while you are going to debug a project. This will not be work when you will define some debug points to your project.
But the kaja-net.com will work while the application is only in Release. When a browser requests an kaja-net.com file, the kaja-net.com engine reads the file, compiles and executes the scripts in the file, and returns the result to the browser as plain HTML.
kaja-net.com Razor Razor is a new and simple markup syntax for embedding server code into . Difference between kaja-net.com and kaja-net.com - C#.Net C#.Net - Difference between kaja-net.com and kaja-net.com - kaja-net.com: Debug Mode, Release Mode (used while debuging a project).
Use of virtual, sealed, override, and abstract - C#.NET. 2- What is the difference between Debug.
Write and Trace. Write in C#.Net? 3- What is the difference between Show() Next Article kaja-net.com MVC interview questions and answers. About Bijay Kumar. I am Bijay from Odisha, India. video tutorials, training courses etc. Download. EnjoySharePoint On Social.