Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

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

Explain the components of common language runtime.

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

Test your VB.NET knowledge with our multiple choice questions!

Describe the managed execution process in .NET

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

Explain how the .NET Framework performs automatic memory management.

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

What is Finalizer? Explain how to implement it.

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

What is implicit cast and explicit cast in .Net?

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

Imperative and declarative security.

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

Define Garbage collector in .NET.

Latest answer: GC is automatic memory reclamation.


It is low-priority thread that always runs in the background of the  application............
Read answer

Define Assembly in .NET.

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

Describe user interface design in .Net.

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

Define form in VB.NET.

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

Define Context menu in VB.NET.

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: You haveForm-level and Field-level validation.


Form-level - Validates all fields on a form simultaneously..................
Read answer

TextBox control properties in VB.NET.

Latest answer: Textbox control has several properties that restrict the values users can enter.............
Read answer

Keyboard events in VB.NET.

Latest answer: Keyboard events allow you to validate keystrokes.


They are raised by the control that has the focus and is receiving  input............
Read answer
What are the major components of .NET framework?

Latest answer: Common Language Runtime: It helps in application execution, allocation and reclamation of memory,
enforces type safety............
Read answer

Define reference type and value type.

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

Define constructors and destructors.

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

What is the use of Command builder?

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

Explain the significance of Import and Using statement.

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

Explain the use of following COM+ services

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

Define Shared member of the class.

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

What is visual inheritance in VB.NET?

Latest answer: Visual inheritance allows deriving forms from the base form with common controls.................
Read answer

Define extender provider component.

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

Command objects uses, purposes and their methods.

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

Difference between dataset and datareader.

Latest answer: Dataset


a. Disconnected
b. Can traverse data in any order front, back.
c. Data can be manipulated within the dataset.
d. More expensive than datareader as it stores multiple rows at the same time............
Read answer

NET Mobile overview.

.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................

Overview of the .NET Compact Framework

.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.

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

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

Following are the VB.NET questions that might be asked in an interview.

What is versioning in .NET? Explain its importance


Where is the version information stored on an assembly?
How do we get version information from the AssemblyInfo file?
Can you write the namespace to load assemblies at runtime?
Is it possible to allow a class to be inherited but prevent the method from being overridden? If yes, explain it
What happens in memory when you box and unbox a value type?
Differentiate between a panel and GroupBox.
Where would you use abstract class and interface?
Show in code to insert a TextBox value into Sql database using VB.NET coding.
Differentiate between windows and console application?
How does garbage collector work?
Explain how to connect crystal report using vb.net
What is JIT (Just in time) and how it works?
What are the types of threading models in VB.NET? Explain them
What is an indexed property? Explain it with a code sample
What is the difference between Dataset and Recordset?
Difference between a readonly variable and a constant variable
How do we read and write data to an XML file?
Explain how to get the environment information in VB.NET.
Difference between Array and array list
How to store and retrieve images in SQL server database through VB.NET?
What is the difference between string and stringbuilder?
Difference between .dll extension and .exe extension files
What are jagged arrays?
Difference between Web.Config and Machine.Config
Explain how to send xml file on server using HTTP protocol.
Explain Anonymous type and its features.
How do we write data to a text file in VB.NET?.

Part 1 | Part 2 | Part 3 | Part 4 | part 5

Next>>.

.NET crystal reports .NET Code Security


How do we access crystal reports in .NET? What are What is code security? What are the types? | Define
the various components in crystal reports? What basic Principal object. | Define declarative and imperative
steps are needed to display a simple report in security. | Define role-based security. | Explain code
crystal?.......... access security. | What is Code group? | Define the use of
Caspol.exe........
.NET Debug & Trace .Net Framework
What is break mode? What are the options to step Explain the .Net Framework. | Describe the .Net
through code? | Debug Vs Trace. | Define trace class. Framework Architecture. | What are the components of
Define Listeners collection of Trace and Debug objects. the .Net Framework. | Explain the role of assembly in
| Define Trace Switches......... the .Net Framework. | Describe the GAC in the .Net
Framework...........
.Net web service .Net Framework
What is XML Web Server? | Describe the Components Explain the .Net Framework. | Describe the .Net
that help locate and consume XML Web Service. | Framework Architecture. | What are the components of
Describe the process of communication between Client the .Net Framework. | Explain the role of assembly in
and Web Service.......... the .Net Framework. | Describe the GAC in the .Net
Framework.............
.NET Assembly .NET Assembly
Define .Net Assembly. | What does an assembly Define .Net Assembly. | What does an assembly contain?
contain? | Define a private assembly and a shared | Define a private assembly and a shared assembly. |
assembly. | What are Satellite Assemblies? | What do What are Satellite Assemblies? | What do you understand
you understand by side-by-site execution of assembly? by side-by-site execution of assembly? | How do you
| How do you create a resource-only assembly? | create a resource-only assembly? | Explain how to
Explain how to retrieve resources using retrieve resources using ResourceManager class. | Define
ResourceManager class. | Define Strong Name. | How Strong Name. | How do you apply a strong name to
do you apply a strong name to assembly? | Define assembly? | Define Global Assembly Cache. | How do you
Global Assembly Cache. | How do you install assembly install assembly to the Global Assembly Cache?.............. 
to the Global Assembly Cache?................
Understanding Anonymous Types What Is ASP.NET 2.0 AJAX?
Anonymous types defined with var are not VB variants. AJAX-style communications between client and server.
The var keyword signals the compiler to emit a strong This communication is over web services. Asynchronous
type based on the value of the operator on the right communication. All client-to-server communication in the
side. Anonymous types can be used to initialize simple ASP.NET 2.0 AJAX framework is asynchronous................
types like integers and strings but detract modestly from
clarity and add little value..............
Problems ASP.NET Solves ASP.NET issues & options
Microsoft developed ASP.NET, which greatly simplifies The truth is that ASP.NET has several issues that need to
the web development methodology........... be addressed...............
Potential benefits of using Ajax Potential problems with AJAX
AJAX makes it possible to create better and more Search engines may not be able to index all portions of
responsive websites and web applications............... your AJAX application site...............

Define Shared member of the class.

It is member of the class which can be access without creating instance of the class............
Read answer

What is visual inheritance in VB.NET?

Visual inheritance allows deriving forms from the base form with common controls...........
Read answer

How can you set tab order in VB.NET?

Tab order can be set using ‘View menu>Tab Index’ and also by using property windows of the controls..........
Read answer

Define extender provider component.

It provides additional features to the controls. ErrorProvider, HelpProvider...........


Read answer

Define field-level validation and form-level validation.

Field-level validation means validating each field as it receives focus.............


Read answer

Steps to add a control to a form at run time.

Declare and instantiate a new instance of the control................


Read answer

Define implicit cast and explicit cast.


Implicit cast allows conversion without and loss of data and it takes place only when there is no possible of loss of
data. When there is any possibility of loss of data.................
Read answer

When do you use enums and constants?

Enums and constants make the code easier to understand and maintain by using words...........

Part 1 | Part 2 | Part 3 | Part 4 | part 5   

Define arrays and collections.

An array is fixed length type that can store group of objects. A collection can also store group of objects.............
Read answer

Why do you use properties instead of fields?

You can provide validation code with properties that validate data being read or set.............
Read answer

Define delegate. How to implement it.

A delegate acts like a strongly typed function pointer. Delegates can invoke the methods that they reference............
Read answer

Define parse method.

Parse method is used to convert string value to numeric type. All numeric data type have a Parse method..............
Read answer

Briefly describe kinds of multidimensional arrays.

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

Define method overloading.

It allows several methods with the same name but different signatures...................
Read answer

Describe an abstract class.

An abstract class is a class that cannot be instantiated but must be inherited. It can contain both.............
Read answer

Describe Break mode.


Break mode allows reading code line-by-line. You can observe code in Break mode by using Step Into..............
Read answer

Define Watch window

Watch window is used to watch the values of application variables in Break mode................
Read answer

What is trace? Describe its working.

Trace produces messages about program conditions even after application is compiled and released without
interrupting application execution...............
Read answer

Describe exception handling in VB.NET.

The Try block encapsulate set of code that is error prone and can throw exception. If an exception is thrown..............
Read answer

What is data provider? Explain its components.

Data Provider is a set of components that facilitate data access.


It contains components like connection, command, dataReader, dataAdapter..................
Read answer

Define DataReader and DataAdapter in ADO.NET.

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

Explain commandType property of a SqlCommand object.

CommandType property can set to Text, StoredProcedure, or TableDirect.


Text: This directs the command object to execute the SQL string.....................
Read answer

Define typed and untyped DataSet objects.

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

Part 1 | Part 2 | Part 3 | Part 4 | part 5

Briefly describe DataView.

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...................

Define SQL injection attack

It occurs when SQL string is passed as user input to the application. SQL injection attack is..............

ReadXML, WriteXML, GetXML

ReadXML: The dataset method that reads data from an XML file into a dataset. WriteXML: GetXML: Retrieve data
from a dataset in XML file..............

Briefly describe user-defined controls.

Inherited controls, user controls, and custom controls.................

Describe the role of the LicenseProvider in control licensing.

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.
Make any localization-related changes in the UI. ................

Steps to create localized form.

Set the Localizable property to true. Set the Language property to the language/region..............

Explain the difference between Globalization and Localization.

Globalization refers to the application of culture-specific format to existing data......

What is strong name?

Create Key file with the strong name utility (sn.exe).................

How do you retrieve resources at run time?

Create an instance of the ResourceManager class using the assembly that contains the desired
resource.............

Part 1 | Part 2 | Part 3 | Part 4 | part 5    

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

Define imperative and declarative security.


Imperative security is implemented by calling methods of Permission objects in code at run time. Declarative security
is configured by ..............
Read answer

What is a shared assembly?

An assembly that can be shared by multiple applications. To make an assembly a shared assembly, first assign it a
strong name............
Read answer

Define XCOPY deployment

It is a simple DOS command method of deployment. It copies the application directory and any subdirectories to the
target machine...........
Read answer

What is a native image?

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

What is a bootstrapper application?

A bootstrapper application automatically detects if Windows Installer is installed on the target machine. If Windows
Installer is not............... 
Read answer

Part 1 | Part 2 | Part 3 | Part 4 | part 5

You might also like