Part 1 |
Part 2 |
Part 3 |
Part 4 |
part 5
By Nishant Kumar
Question
- Define Assembly in .NET.
Answer-An assembly is the primary unit of a .NET
application.
It includes an assembly
manifest.
Manifest describes the
assembly.
Question - Define Anchoring and Docking in .NET.
Answer -Anchoring
treats the component as having the absolute size and adjusts its location
relative to the parent form.
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.
If a button should be on the top right, but change its
position with the form being resized, use anchoring.
Question - Define Garbage collector in .NET.
Answer -GC is automatic memory reclamation.
It is low-priority thread
that always runs in the background of the
application.
When memory is scarce, the
priority of the garbage collector is
elevated until sufficient resources
are reclaimed.
It is not certain when
an object will be garbage collected.
Question - Describe user interface design in .Net.
Answer -User interface shouldvisually
consistent.
Major
elements of a user interface include forms, controls, and
menus
A good user interface pays
attention to the following considerations:
-Simplicity
-Positioning of Controls
-Consistency
-
Aesthetics
Question
- Define form in VB.NET.
Answer
- Forms are the primary unit of the user
interface.
Design of the form
should be consistent, complete, and attractive visual interface.
You can add forms to your
application at design time or at run time.
Forms have properties that
control their appearance.
These properties include
-
BackColor
-
ForeColor
-
Text
-
Font
-
Cursor
-
BackGroundImage
-
Opacity
Form
provides several intrinsic methods to control their lifetime
-
Form.Show
-
Form.ShowDialog
-
Form.Activate
-
Form.Hide
-
Form.Close
These methods causes change
in the visual interface and raises
various events
-
Load
-
Activated/Deactivate
-
VisibleChanged
-
Closing
-
Closed
Answer - It is useful for enabling access to
commands in a variety of contextual
situations
It
is created using ContextMenu control.
It is created at run
time in the same manner as main menus
Question
- Validation in VB.NET.
Answer
- You haveForm-level and Field-level
validation.
Form-level
- Validates all fields on a form simultaneously.
Field-level
validation validates each field as data is entered.
Question
- TextBox
control properties in VB.NET.
Answer
- Textbox control has several properties that restrict
the values users can enter
-
MaxLength
-
PasswordChar
-
ReadOnly
-
MultiLine
Question
- Keyboard events in VB.NET.
Answer
- Keyboard events allow you to validate keystrokes.
They are raised by the
control that has the focus and is receiving
input.
Following are the keyboard
events.
-
KeyDown
-
KeyUp
-
KeyPress
Question - What are the major components of .NET framework?
Answer -
Common Language Runtime: It helps in application execution, allocation and
reclamation of memory, enforces type safety.
.Net base class library: It contains collection of classes used in application
development.
Question - Define reference type and value type.
Answer -
A value type holds the data assigned to it. A reference type contains the
pointer i.e. memory address that holds the data.
Question - Which keyword do you use to reference class library members
without specifying fully qualified name?
Answer -
’Import’ in VB.NET and ‘using’ in C#.NET.
Question - Define garbage collection.
Answer -
GC is a low priority thread that runs in the background of the .Net
application. It helps in destroying the objects from the memory that are no
longer in used.
Question - Define constructors and destructors.
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.
VB.NET Interview questions with answers posted on July 22, 2008 at
8:10 am
Question - Is is possible to force garbage collector to run?
Answer
Yes, we can force garbage
collector to run using System.GC.Collect().
October 30, 2008 at 18:10 pm by Amit Satpute
Explain the difference between Datagrid, Datalist and repeater.
They all are similar in the sense that they have a datasource property.
|
DataGrid |
DataList |
Repeater |
| Paging, sorting, editing ability |
Built-in |
No |
No |
| Repeat property |
No |
Yes |
Yes |
| Customization |
Restrictive |
Medium |
Customizable |
| Performance |
Less |
Better |
Best |
| Stylistic |
Yes |
Yes |
No |
What is the use of Command builder?
Command builder generates insert/update/delete commands for data adapter based
on select command. Automatic creation of insert/update/delete commands hinders
performance. The command builder uses select command property of data adapter
to determine values for other commands.
Explain the significance of Import and Using statement.
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, runs
the statements and then performs the clean up using the dispose method.
Explain the use of following COM+ services
JIT activation
Queued components
Object Pooling
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.
Queued components provide asynchronous message queuing.
Object Pooling provides a pool of ready-made objects.
|
|