Questions Related to technology

Multiple choice technology web technology
  1. Due to its nature as a reference type, StringBuilder has a smaller footprint than string,thereby allowing more efficent memory management.

  2. StringBuilder is inherently more efficent due to its nature as a reference type comparedto string, which is a value type

  3. StringBuilder allows for dynamic appending of types; string creates a new string every time it is appended to.

  4. StringBuilder has the ability to accept objects other than string in order to build a string by automatically calling the ToString method on the object.

  5. Regular expressions are built into StringBuilder, allowing for much more efficent text processing than what could usually be achieved by using a string.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology web technology
  1. It is invoked every 40 seconds until the process is destroyed.

  2. It only occurs when the Collect method is explicitly invoked in the System.GC class.

  3. It is invoked every time a constructor is called.

  4. It is invoked when generation 0 does not have room for the newly created object.

  5. It is invoked when the Dispose method is explicitly called.

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology web technology
  1. All .NET compilers produce only verifiably type-safe code.

  2. Visual Basic .NET and C# produce verifiably type-safe code if you avoid certain constructs.

  3. Only Visual C++ with Managed Extensions produces verifiably type-safe code.

  4. Visual C++ with Managed Extensions produces verifiably type-safe code if you avoid certain constructs.

  5. C++ and C# cannot produce verifiably type-safe code.

Reveal answer Fill a bubble to check yourself
B Correct answer