• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 121 : - What Do You Mean By 'option Strict On' ?

Answer - 121 : -

Option Strict
Visual Basic language in general does not require explicit syntax to be used when performing operations that might not be optimally efficient (e.g. late binding) or that might fail at run time (e.g. narrowing conversions). This permissive semantics often prevents detection of coding errors and also affects the performance of the application.
VB.NET enables a programmer to enforce strict semantics by setting this option to "On". When used, this option should appear before any other code. This option can be set to "On" or "Off". If this statement is not specified, by default, it is set to "Off".
Syntax: Option Strict [On / Off]
When it is set to "On", it disallows any narrowing conversions to occur without an explicit cast operator, late binding and does not let the programmer omit "As" clause in the declaration statement. Since setting it to "On" requires explicit conversion, it also requires that the compiler be able to determine the type of each variable. Thus it is implied that Option Strict also means Option Explicit.
Visual Basic .NET allows implicit conversions of any data type to any other data type. However, data loss can occur if the value of one data type is converted to a data type with less precision or a smaller capacity. Setting this option to "On" ensures compile-time notification of these types of conversions so they may be avoided.

Question - 122 : - What Are Jagged Arrays ?

Answer - 122 : -

a collection of discrete no of elements in each and every row is called as jagged arrays.
1)these jagged arrays doesn’t contain columns,
2)a jagged array also called as dynamic array
3)jagged array is a collection of dynamic arrays
4)these are faster and also save the memory.
syntax of jagged array:
int[][]x=new int [rows][]
here x is array name

Question - 123 : - What Are Satellite Assemblies?

Answer - 123 : -

Satellite assemblies are user for localizing the applications resources. A satellite assembly is a DLL that contains only resource strings.we typically have one satellite assembly DLL for each language. Because these satellite assembly DLLs are separated from the main assembly (an .exe or DLL), it is easier to drop in.

Question - 124 : - Multi-language Support As We Progress In Your Development Process. How Can We Remove Handlers At Run Time ?

Answer - 124 : -

RemoveHandler myobj.myEvent, AddressOf MyEventHandler.

Question - 125 : - What Is .net

Answer - 125 : -

.Net is the Development Plateform which provides advanced feature facilities for the web and window application along with the window services . The .Net is the Middle layer between the operating System and the .Net application .The feature of .Net that the .Net Component can talk with each other without worrying about the language in which they are originally.. Two main components are CLR stands for the common Language Runtime and the .Net FrameWork Base classes. The CLR performs the task of converting the IL to native code Which gives the .Net applications to be language Independent . The Other component Like .Net FramwWork Base Classes act as services to be provided to the .Net applications.

Question - 126 : - Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level.

Answer - 126 : -

You can go for internet control of robot.
1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)
2. using vb.net, develop the gui n use winsock programming for sending photos on internet.
3. use mscomm programming in .net to move the robot in a wired connection with the comp.
4. u can also use Enbedded C for microcontroller programming in place of assembly.use keil compiler for that n its available for free on internet.
5. attach a cam to robot, move it n transfer the photos captured to the client over internet.

Question - 127 : - What Is The Diff Between Vb Mdi Form And .net Mdi Form?

Answer - 127 : -

In VB MDI form is created by adding MDI Form to the project and adding child forms by setting MDICHILD property of the child form. In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE.
Furthermore, there are changes in the properties, methods and basic behavior of the MDI Forms, like ability to set Background Color is not available in .NET, ability to add controls to MDI form(although they don't behave properly), ActiveForm to ActiveMdiChild, Arrange method to LayoutMdi, etc.

Question - 128 : - What Is Assembly In .net And What Do You Mean By Protected Class Always Present In The Same Assembly?

Answer - 128 : -

Assemblies are building blocks of framework. There are mainly two types of assemblies
a) Private Assembly
b) Shared Assembly

Question - 129 : - How Would You Implement Inheritance Using Vb.net ?

Answer - 129 : -

Using VB.NET we can create a class that provides basic functionality so that other classes can inherit its members. VB.NET provides the 'Inherits' keyword to implement inheritance. By using the keyword 'Inherits' we can inherit the characteristics of a class into another class.

Question - 130 : - What Is Sta In .net?

Answer - 130 : -

single-threaded apartments (the apartment model process) offers a message-based paradigm for dealing with multiple objects running concurrently. It enables you to write more efficient code by allowing a thread, while it waits for some time-consuming operation to complete, to allow another thread to be executed.

Each thread in a process that is initialized as an apartment model process, and that retrieves and dispatches window messages, is a single-threaded apartment thread. Each thread lives within its own apartment. Within an apartment, interface pointers can be passed without marshaling, and therefore, all objects in one single-threaded apartment thread communicate directly.

A logical grouping of related objects that all execute on the same thread, and therefore must have synchronous execution, could live on the same single-threaded apartment thread. However, an apartment model object cannot reside on more than one thread. Calls to objects in other processes must be made within the context of the owning process, so distributed COM switches threads for you automatically when you call on a proxy.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners