Explain The Services Provided by Common Language Infrastructure
Explain The Services Provided by Common Language Infrastructure
Latest answer: Common Language Runtime, Common Type System, Type Safety, Managed Code Execution, Side-
by-side execution..............
Read answer
Latest answer: Class Loader, MSIL, Code Manager, Garbage collector, Security engine, Type Checker, Thread
Support, Debug engine, Base class library, Exception manager, COM Marshaller.............
Read answer
Latest answer: Steps in managed execution process: 1. Compiler needs to be chosen 2. Convert the source code to
MSIL now known as CIL.............
Read answer
Latest answer: Automatic memory management involves two major steps: Allocation of memory - When a new
process is initialized, runtime reserves address space in memory for the process. This address space inside the
memory is known as heap. At the very initial stage, the pointer is at the base address of managed heap.............
Read answer
Latest answer: It is a method that is executed when an object is garbage collected. It is similar in function to a
destructor. It keeps the memory managed by taking appropriate an action against an object that is released or is no
longer in use...............
Read answer
Explain the difference and similarity between a class and a structure in VB.NET.
Latest answer: Both the class and structure are user define types.
Both are the template of the object.
Both contain members like methods, properties, fields and use contractor for initialization..............
Read answer
Latest answer: Implicit cast allows conversion without any loss of data and it takes place only when there is no
possible of loss of data............
Read answer
Latest answer: Imperative security is implemented by calling methods of Permission objects in code at run time.
Declarative security is configured by attaching attributes representing permissions to classes and methods..................
Read answer
Define Anchoring and Docking in .NET.
Latest answer: Docking treats the component location as absolute and disregards the component size. So if a status
bar must always be at the bottom no matter what, use docking...........
Read answer
Latest answer: An assembly that can be shared by multiple applications. To make an assembly a shared assembly,
first assign it a strong name, and install it to the global assembly cache...........
Read answer
Latest answer: Major elements of a user interface include forms, controls, and menus
A good user interface pays attention to the following considerations:..............
Read answer
Latest answer: Forms are the primary unit of the user interface.
Design of the form should be consistent, complete, and attractive visual interface.........
Read answer
Latest answer: It is useful for enabling access to commands in a variety of contextual situations
It is created using ContextMenu control...............
Read answer
Validation in VB.NET.
Latest answer: Textbox control has several properties that restrict the values users can enter.............
Read answer
Latest answer: Common Language Runtime: It helps in application execution, allocation and reclamation of memory,
enforces type safety............
Read answer
Latest answer: A value type holds the data assigned to it. A reference type contains the pointer i.e. memory address
that holds the data...............
Read answer
Latest answer: The constructor sets default value to the class and runs when the class is initialized. The destructor
runs when an object is being destroyed by GC to reclaim memory.........
Read answer
Latest answer: Command builder generates insert/update/delete commands for data adapter based on select
command. Automatic creation of insert/update/delete commands hinders performance..............
Read answer
Latest answer: To have same names declared and used in one or more namespaces, import aliases can be used. In
C#, ‘using’ defines the scope of an object. It also obtains resources...................
Read answer
Latest answer: When an application needs to be scaled up for heavy transactions, the server resources can be used
efficiently using Just-in-Time (JIT) activation - an automatic COM+ service..........
Read answer
Latest answer: It is member of the class which can be access without creating instance of the class. It belongs to the
class and not to the instance of the class............
Read answer
Latest answer: Visual inheritance allows deriving forms from the base form with common controls.................
Read answer
Latest answer: It provides additional features to the controls. ErrorProvider, HelpProvider, and ToolTip components
are the examples of extender provider................
Read answer
How can we perform transactions in .NET?
Latest answer: a. Call the BeginTransaction. This marks the beginning of the transaction.
b. Assign the Transaction object returned by BeginTransaction to the Transaction property of the
SqlCommand..............
Read answer
Latest answer: Command objects are used to execute the queries, procedures. Sql statements etc. It can execute
stored procedures or queries that use parameters as well. It works on the basis of certain properties like
ActiveConnection, CommandText, CommandType, Name etc. .........
Read answer
.NET Mobile is a platform for developing applications for mobile phones. It’s an extension to .NET Framework and is
called Microsoft Mobile Internet Toolkit................
.NET Compact Framework is a scaled down versions of .NET framework for supporting Windows CE based mobile
and embedded devices like mobile phones...............
Difference between LINQ and Stored Procedures: Stored procedures normally are faster as they have a predictable
execution plan. Therefore, if a stored procedure is being executed for the second time, the database gets the cached
execution plan to execute the stored procedure...............
Disadvantages of LINQ over stored procedures: LINQ needs to process the complete query, which might have a
performance impact in case of complex queries against stored procedures which only need serialize sproc-name and
argument data over the network............
Overview of VB 2008
Next>>.
It is member of the class which can be access without creating instance of the class............
Read answer
Visual inheritance allows deriving forms from the base form with common controls...........
Read answer
Tab order can be set using ‘View menu>Tab Index’ and also by using property windows of the controls..........
Read answer
Enums and constants make the code easier to understand and maintain by using words...........
An array is fixed length type that can store group of objects. A collection can also store group of objects.............
Read answer
You can provide validation code with properties that validate data being read or set.............
Read answer
A delegate acts like a strongly typed function pointer. Delegates can invoke the methods that they reference............
Read answer
Parse method is used to convert string value to numeric type. All numeric data type have a Parse method..............
Read answer
Multidimensional arrays are just like a table structure with rows and column. Multidimensional arrays...........
Read answer
What is encapsulation?
It is the fundamental principles of object-oriented programming. It hides all the internal details of an object from the
outside world.............
Read answer
It allows several methods with the same name but different signatures...................
Read answer
An abstract class is a class that cannot be instantiated but must be inherited. It can contain both.............
Read answer
Watch window is used to watch the values of application variables in Break mode................
Read answer
Trace produces messages about program conditions even after application is compiled and released without
interrupting application execution...............
Read answer
The Try block encapsulate set of code that is error prone and can throw exception. If an exception is thrown..............
Read answer
DataReader: It is lightweight class that provides connected and forward-only data access. It uses connection object
exclusively. You can read data; you can’t modify data using DataReader...............
Read answer
A typed dataset is a dataset that derives from the base DataSet class first and then uses information in an XML
Schema file (an .xsd file) to generate a new class................
Read answer
The data represented in a DataView object can be filtered and sorted. It has Sort property and RowFilter
property.................
Define an XmlDataDocument.
An XmlDataDocument is an in-memory representation of data in a hierarchical XML format and is synchronized with
a DataSet...................
It occurs when SQL string is passed as user input to the application. SQL injection attack is..............
ReadXML: The dataset method that reads data from an XML file into a dataset. WriteXML: GetXML: Retrieve data
from a dataset in XML file..............
The LicenseProvider controls license validation and grants run-time licenses to validly licensed components................
What are the requirements to access of the Certified for Windows logo program?
Set the Localizable property to true. Set the Language property to the language/region..............
Create an instance of the ResourceManager class using the assembly that contains the desired
resource.............
Explain how to retrieve information from the configuration file at run time.
To retrieve information from the configuration file,Create an instance of AppSettingsReader to read the configuration
file...........
Read answer
An assembly that can be shared by multiple applications. To make an assembly a shared assembly, first assign it a
strong name............
Read answer
It is a simple DOS command method of deployment. It copies the application directory and any subdirectories to the
target machine...........
Read answer
It is a precompiled version of a .NET assembly. Native image of the application can be created by using the Ngen.exe
utility...............
Read answer
A bootstrapper application automatically detects if Windows Installer is installed on the target machine. If Windows
Installer is not...............
Read answer