Professional Documents
Culture Documents
6) What are the various open source tool available for VB.NET?
When compared with the rapid development of open source tools for other languages
from Microsoft (C#, etc) we can say that development of tools for VB has been slow.
Mono development platform is one which is implementing VB libraries and is working
on a compiler.
7) Explain about the performance of Visual basic?
Visual basic 5 and 6 are efficient in coding the code to native or P-code depending
upon the programmer. Portability is a major addition to the performance of VB.NET
and the code is also small. Additional layer is provided which interprets the code and
this can be avoided by using special algorithms and native code programming.
10) Name and explain some of the exclusive features which are present in VB?
Some of the features which are exclusive to VB are as follows: -
1) Name space can be hidden which can be disabled.
2) Certain project files can be hidden and a user can show them if he intends to do.
3) Lots and lots of shortcuts are present which ease the development of programs.
4) Using the AddressOf myObject function a delegate can be made.
12) Name some of the features of C# which are not present in VB.NET?
Some of the features which are not present in VB are as follows they are: -
1) It supports unsafe code blocks for improved performance.
2) Partial interfaces and anonymous methods.
3) Multi line comments and static classes. Etc
14) What would you do to remove Microsoft visual basic name space?
.NET has many new features and application supportive tools. To remove Microsoft
visual basic name space all you have to do is to
1) Remove the import manually every time you start the project.
2) Creating a template which does not contain Microsoft Visual Basic namespace.
3) About new features and changes names you can refer to MSDN.
15) Which is the tool which can convert Visual basic old version to .NET compatibility
version?
There is a tool available which can convert old visual basic functions into new .NET
code. Artin soft Visual basic upgrade Companion is very useful in converting VB code
into .NET code. This tool was developed by Artin. This tool is integrated in Visual
studio.NET 2005. It handles programs such as structured handling, error handling,
etc.
Ans: .NET is a Microsoft Framework and a software component. .NET has a large
library of pre-coded solutions which provided developer significant help in
developingapplications with solutions already present. It offers reliable security and
cross platform compatibility.
6) What are the various open source tool available for VB.NET?
Ans:When compared with the rapid development of open source tools for other
languages from Microsoft (C#, etc) we can say that development of tools for VB has
been slow. Mono development platform is one which is implementing VB libraries and
is working on a compiler.
10) Name and explain some of the exclusive features which are present
inVB?
Ans:Some of the features which are exclusive to VB are as follows: -
1) Name space can be hidden which can be disabled.
2) Certain project files can be hidden and a user can show them if he intends to do.
3) Lots and lots of shortcuts are present which ease the development of programs.
4) Using the AddressOf myObject function a delegate can be made.
14) What would you do to remove Microsoft visual basic name space?
Ans: .NET has many new features and application supportive tools. To remove
Microsoft visual basic name space all you have to do is to
1) Remove the import manually every time you start the project.
2) Creating a template which does not contain Microsoft Visual Basic namespace.
3) About new features and changes names you can refer to MSDN.
15) Which is the tool which can convert Visual basic old version to .NET
compatibility version?
Ans:There is a tool available which can convert old visual basic functions into new
.NET code. Artin soft Visual basic upgrade Companion is very useful in converting VB
code into .NET code. This tool was developed by Artin. This tool is integrated in Visual
studio.NET 2005. It handles programs such as structured handling, error handling,
etc.
Ans:two
eg:
Explain how to retrieve information from the configuration file at run time.
Form level validation occurs once the user is ready to submit the form. The
application checks the complete form at once and validates all the fields in it and
informs the user about it. Field level validation occurs only for a specific field. E.g.: As
soon as the user looses focus from a name input box, the application validates the
data in that particular field and informs the user about it. They are normally used for
mandatory fields using javascript.
Yes.
Question 3. Where does the object and its internal variable int i and string s store, in heap or in
stack.
Answer. i think int goes to stack
Question 4. What is garbage collector?
Answer. it used to release the memory. and run in non deterministic manner.
Question 2. can we pass object with ref parameter like fun(ref Obj)?
Answer.yes
Question 2. if we have two function abc(int a, int b) and abc(int a, int b, int c) in base class and we
derive it in drive class and implement it. in drive class it is overloading or overriding?
Answer. both overloading and overriding.
Question 2. can we have multiple try blocks, can we have multiple catch blocks, can we have multiple
finally blocks?
Answer. multiple try yes separate blocks, multiple catch -yes, multiple finally - no
get the employee list whose salary is greater than the average salaryof their division?
Answer.
Question. Suppose there is two versions of a assembly, how your application will decide which
version to use?
Answer. In web.config under binding give old version and new version
class my_Singleton
{
private static my_Singleton obj;
protected my_Singleton
{
}
public static my_Singleton Instance()
{
lock{
if (obj == null)
{
obj= new my_Singleton();
}
}
return obj;
}
}
Obj.hey();
Obj1.hey();
Question. suppose two interfaces have same method, so how will you implement these methods in
derive class?
Answer. by using interface name
Question. Lets start with .NET, What is CLR and what is the task perform by CLR?
Answer. CLR stand for Common language runtime. it have the task like
1. running the garbage collector
2. Code verification
3. code access security
4. executing IL
Question. What is assembly? and what is difference between the .dll and .exe?
Answer. Assembly is a basic unit of .net program and it contains the all .net code, resources,
references and versions etc.
.exe and .dll are same while .exe contains executable code and is machine dependent.
Question. if dll and exe files are same it means you can deploy both the files in GAC?
Answer. No, deploying a exe file does not mean anything because classes and method are exposed
in dll only and exe file is pure executable, any application can not call the function of exe file.
Question. How will you deploy the dll file in GAC?
Answer. first create the strong name for dll and add this sn name key into the application then use
gacutil command to register the dll in GAC.
Question. How will you search for a dll in GAC before registering it?
Answer. use process explorer to check the dlls, if you have any other suggestion, Please comment.
Question. What changes will you do if you have to pass string instead of int in thread arguments?
Answer. no chnages in thread while we change the method to receive the string or abject variable.
Answer. yes, we can have same type of obj we can define in and instantiate to derive class.
Question. instead of creating a singleton class, suppose i create a static object of singleton class
outside the class and use it though out the application, then what is use of singleton class?
Answer. singleton class is use that accidently programmer do not create the another object of the
class. it is used in large systems where we expose class and functions though dlls and want to restrict
programmer while using this dll do not creating multiple objects.
Answer. polymorphism means different forms, there are two kind of polymorphism
Answer. having same name methods with different parameters is called overloading, while having
same name and parameter functions in base and drive class called overriding.
Answer. Static class we define when we do not want to create a object of class, all methods of static
class should be static. static class methods and data are specific to class only and not associated to
objects.
Answer. no, we can have only methods, properties, indexers and enums inside the interface.
Answer. I used to design and write functions, triggers, procedures and packages.
Answer. No
Answer. Class is collection of functions and variables. and object is used to use this template.
Answer. Yes
Question 9. can you derive a static method of base class in child class?
Answer. no
Question 10. can you override a normal public method of base class and make it static?
Answer. when we call a non virtual method it decide at compile time and this is called early binding.
while if method calling decide at runtime is called late binding.
Answer. no, having a single private class does not mean anything , it is applicable only in case of
nested class.
Lets start with ASP.NET, I have a datagrid/Gridview can i have a dropdown inside a column and
binding to different dataset? How
Question 3. How will you fill a dropdown from another dataset and grid from another dataset.
Answer. First fill the grid with dataset and then datagrid.columns.findcontrol[“dropdown”] find
dropdown and add another dataset to it.
Question 4. How will you add increasing number (index numbers of rows) in datagrid without
bringing it from database.
Question 5. Suppose there is two button in a datagrid column. how will you identify which button is
clicked?
Answer. primary key can create cluster index on it. while on unique key we can create non cluster
index.
primary key is only one in table while unique key can be many.
Answer. yes
.NET has many new features and application supportive tools. To remove Microsoft visual basic name spa
1) Remove the import manually every time you start the project.
2) Creating a template which does not contain Microsoft Visual Basic namespace.
3) About new features and changes names you can refer to MSDN.
Some of the features which are not present in VB are as follows they are: -
1) It supports unsafe code blocks for improved performance.
2) Partial interfaces and anonymous methods.
3) Multi line comments and static classes. Etc
There is only one feature which is common to all languages and that is Garbage collection or GC. This fea
developers of much work. This garbage is disposed only when there is need of memory or stress for mem
application for few seconds before restarting it.
Name and explain some of the exclusive features which are present in VB?
VB was always a RAD tool and it was always user friendly for any type of user whether professional or not
with shortcuts and features which made this language popular among many users. It had its share of debu
of course.
1. What is oops?
2. what is object?
3. what is class?
4. what is data grid?
5. difference between overloading and overriding?
6. Difference between load(int a) and load(uint a)
7. is above are overloaded? and will it give run time error.
8. int load() and string load() is overloaded?
A. no
9. how to call a client side JavaScript method from a asp button and then server
side method on user response?
10. how Ajax works?
11. suppose we want to render only a part of page every time?
12. how to implement paging?
13. what is sql cache dependency?
14. polymorphism?
15. base class and child class execution?
16. response.redirect and server.transfer?
17. server.transfer and server.execute
18. abstract class and interface?
19. difference between datagrid and grid view?
20. what is event bubbling?
21. index, types of indexes?
22. how to optimize query?
23. udf and procedure?
24. types of triggers?
25. what is benefits of packages?
26. what is page in SQL?
27. how to handle exception in oracle?
28. full form of AJAX ? what is XML in this?
29. what are endpoints?
30. what is address and binding and contracts?
31. serialization?
32. session management techniques?
33. in state server do we use serialization?
34. what is late binding?
35. what is parent class of all WebPages?