|
VB.NET Interview questions and answer part 2.
By Nishant Kumar
Define shared
member of the class. | Define
class and structure. | What
is visual inheritance? | How
can you set tab order? | Define
extender provider component. | Define
field-level validation and form-level validation. | Steps
to add a control to a form at run time. | Define
implicit cast and explicit cast. | When
do you use enums and constants?
Question - Define Shared member of the class.
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.
Question -Define class and structure.
Answer -
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. Both of them inherit from System.Object.
Classes are reference types whereas structures are value types.
Question - What is visual inheritance in VB.NET?
Answer - Visual
inheritance allows deriving forms from the base form with common controls.
Question - How can you set tab order in VB.NET?
Answer -
Tab order can be set using ‘View menu>Tab Index’ and also by using property
windows of the controls.
Question - Define extender provider component.
Answer -
It provides additional features to the controls. ErrorProvider, HelpProvider,
and ToolTip components are the examples of extender provider.
Question - Define field-level validation and form-level validation.
Answer -
Field-level validation means validating each field as it receives focus.
Form-level validation is the process where you validate all data on a form
before form is submitted.
Question - Steps to add a control to a form at run
time.
Answer - Declare
and instantiate a new instance of the control.
Add the control to the form’s Controls collection.
Question - Define implicit cast and explicit cast.
Answer -
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, explicit cast is required. Explicit cast if not applied
properly can result a loss of data precision.
Question - When do you use enums and constants?
Answer -
Enums and constants make the code easier to understand and maintain by using
words for frequently used constant values.
Part 1 |
Part 2 |
Part 3 |
Part 4 |
part 5
<<Previous Next>>
ASP.NET Authentication Authorization Questions with
answers
Define Authentication and Authorization | What is the
authentication mode available in ASP.NET? | How do you set authentication mode
in the ASP.NET application? | List out the difference between windows
authentication and form authentication | How do you impersonate the
authenticated user in ASP.NET? | How do you provide secured communication in
ASP.NET?
ASP.NET Exception
Handling Interview questions with answers
Define Exception handling in ASP.NET. | What are the ways of
handling exceptions in ASP.NET? | Explain Try/catch block method of exception
handling. | Define Error Events. Define Custom Error Pages. | Why is exception
handling important to an application? | When can you use tracing with exception
handling?
ASP.NET Master
Pages questions with answers
What is Master Page in ASP.NET? | Advantages of using Master
Page in ASP.NET | Define Multiple Master Page. | How do you create Master Page?
|