Você está na página 1de 11

1) Explain about visual basic? Ans:Visual basic is associated with the IDE of Microsoft.

It is basically useful to implement RAD of GUI. Creation of Active X scripts are very easy and efficie nt through VB. Windows API can also be used to create application on windows des ktop and its applications. This was primarily designed to create applications fo r windows platform. 2) Explain about .NET? Ans: .NET is a Microsoft Framework and a software component. .NET has a large li brary of pre-coded solutions which provided developer significant help in develo pingapplications with solutions already present. It offers reliable security and cross platform compatibility. 3) Name some of the features present in VB 2005? Ans:Some of the features present in VB 2005 are as follows: Edit and continue: It allows developers to modify and execute applications almos t simultaneously. Namespace: This provides access to various parts of the .NET framework and it al so dynamically generates classes. Data source binding function is very useful for client server development. 4) Explain and brief about rapid application development tool? Ans:Rapid action development tool describes about the software development proce ss. This tool gives flexibility in iterative development and prototype deploymen t. It enhances the speed of application development. It is also used for applica tion maintenance. 5) Describe about Visual basic.NET? Ans:This is used in conjunction with Microsoft .NET platform and is a successor to visual basic sixth version. Visual basic is used in conjunction with.NET Fram ework. This tool has a serious defect it is not compatible with Microsoft visual basic sixth version. It has a huge library which assists programmers. 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 lang uages from Microsoft (C#, etc) we can say that development of tools for VB has b een slow. Mono development platform is one which is implementing VB libraries an d is working on a compiler. 7) Explain about the performance of Visual basic? Ans:Visual basic 5 and 6 are efficient in coding the code to native or P-code de pending 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 interpr ets the code and this can be avoided by using special algorithms and native code programming. 8) Compare C# and Visual basic.NET? Ans: .NET Frame work includes two languages which are language to IL compilers a nd in this C# and VB.NET are provided. The importance and flexibility of these a s better programming languages is still questionable.Visual basic has been updat ed and revised to make it object oriented whereas C# has concepts from many lang uages such as Delphi, Java, etc and syntax from C and Java.

9) Explain about Visual basic.NET culture? Ans:VB was always a RAD tool and it was always user friendly for any type of use r whether professional or not. It also provided many users with shortcuts and fe atures which made this language popular among many users. It had its share of de bugging and maintenance issues of course. 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. 11) Name a feature which is common to all .NET languages? Ans:There is only one feature which is common to all languages and that is Garba ge collection or GC. This feature is automated which relieves developers of much work. This garbage is disposed only when there is need of memory or stress for memory. GC feature halts the application for few seconds before restarting it. 12) Name some of the features of C# which are not present in VB.NET? Ans: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 13) Explain about the keyword Must Inherit? Ans:This keyword prevents a class from directly instantiated. This keyword force s users to create references to only derived classes. This keyword is present in C# as abstract and it is very useful in creatingapplications. 14) What would you do to remove Microsoft visual basic name space? Ans: .NET has many new features and application supportive tools. To remove Micr osoft 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 compati bility 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 conve rting VB code into .NET code. This tool was developed by Artin. This tool is int egrated in Visual studio.NET 2005. It handles programs such as structured handli ng, error handling, etc. 16) Explain about the feature Anonymous type? Ans:Anonymous type is a feature of VB.NET and it allows data types to be created from the code which requires it. This feature is present in VB as well as C#. T hey should be stored in variables declared with the keyword VAR. Dynamic typing

is different and shouldn t be confused with Anonymous type. 17) Explain about the Ruby interface generator? Ans:Ruby interface generator is primarily responsible for providing the visual p art of the Visual basic and this was clubbed with EB designed for Omega database s ystem. VBX interface was added to this feature which had the ability to load dyn amic link libraries. ---------------------------------------------------------------------------------------------1. What is VB.NET? VB.Net is a windows based programming language.It supports oops concept. 2. What is the base class of .net? System.Object 3. What is Difference between Namespace and Assembly? Namespace is a collection of different classes. whereas an assembly is t he basic building blocks of the .net framework. 4. What is the difference between early binding and late binding? Calling a non-virtual method, decided at a compile time is known as earl y binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding. 5. What is Intermediate Langauge? Microsoft Intermediate Language(MSIL or IL) is the CPU -independent inst ruction set into which .Net framework programs are compiled. It contains instruc tions for loading, storing initializing, and calling methods on objects. 6. What is Commom Language Runtime? CLR also known as Common Language Run time provides a environment in whi ch program are executed, it activate object, perform security check on them, lay them out in the memory, execute them and garbage collect them. 7. What is Common Type System? The common type system is a rich type system, built into the common lang uage runtime, which supports the types and operations found in most programming languages. 8. What is Common Language Specification? The Common Language Specification is a set of constructs and constraints that serves as a guide for library writers and compiler writers. 9. What s the difference between private and shared assembly? Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong na me. 10. What namespace does the Web page belong in the .NET Framework class hier archy? System.Web.UI.Page 11. What is an Assembly? Assembly are the basic buiding blocks of the .net framework.They are the logical grouping of the functionality in a physical file. 12. What are the advantages of an assembly? Increased performance. Better code management and encapsulation. It also introduces the n-tier concepts and business logic. 13. What is Code Access Security? CAS - Code Access Security is the part of the .NET security model that d etermines whether or not a piece of code is allowed to run, and what resources i t can use when it is running. 14. What are the difference between Structure and Class? * Structures are value type and Classes are reference type

* Structures can not have constructors or destructors. * Classes can have both constructors and destructors. * Structures do not support Inheritance, while Classes support Inheritance. 15. What is the differences between dataset.clone and dataset.copy? Dataset.clone copies just the structure of dataset (including all the da tatables, schemas, relations and constraints.); however it doesn t copy the data. Dataset.copy, copies both the dataset structure and the data. 16. What is the use of Internal keyword? Internal keyword is one of the access specifier available in .Net framew ork , that makes a type visible in a given assembly , for e.g : a single dll can contain multiple modules. 17. What is the difference between the Debug class and Trace class? Use Debug class for debug builds, use Trace class for both debug and rel ease builds. 18. What are class access modifiers? * Access modifiers are keywords used to specify the declared accessibility o f a member or a type. This section introduces the four access modifiers : Public * Protected * Internal * Protected inertnal * Private 19. What is portable executable? The file format used for executable programs and for files to be linked together to form executable programs. 20. What is the difference between System.String and System.StringBuilder cl asses? System.String is immutable, System.StringBuilder was designed with the p urpose of having a mutable string where a variety of operations can be performed . 21. What is tracing? Tracing refers to collecting information about the application while it is running. You use tracing information to troubleshoot an application. 22. What is the difference between a Thread and a Process? A Process is an instance of an running application. And a thread is the Execution stream of the Process. A process can have multiple Thread. 23. What is serialization? Serialization is the process of converting an object into a stream of by tes. De-serialization is the opposite process of creating an object from a stream of bytes. Serialization/De-serialization is mostly used to transport objects. 24. How a base class method is hidden? Hiding a base class method by declaring a method in derived class with k eyword new. This will override the base class method and old method will be supp ressed. 25. ted. 26. What is a Constructor? A special Method Always called whenever an instance of the class is crea

What is Polymorphism? Mean by more than one form. Ability to provide different implementation based on different number / type of parameters. 27. What is an Interface? An interface has no implementation; it only has the signature or in othe r words, just the definition of the methods without the body.

28.

What is the difference between an EXE and a DLL? Dll is an In-Process Component whereas EXE is an OUt-Process Component.E xe is for single use whereas you can use Dll for multiple use. Exe can be started as standalone where dll cannot be. 29. What is the GAC? Each computer where the common language runtime is installed has a machi ne-wide code cache called the global assembly cache. The global assembly cache s tores assemblies that are to be shared by several applications on the computer. This area is typically the folder under windows or winnt in the machine. 30. How does CAS work? The CAS security policy revolves around two key concepts - code groups a nd permissions. Each .NET assembly is a member of a particular code group, and e ach code group is granted the permissions specified in a named permission set. 31. What is difference between MetaData and Manifest? Metadata and Manifest forms an integral part of an assembly( dll / exe ) in .net framework . Out of which Metadata is a mandatory component , which as t he name suggests gives the details about various components of IL code viz : Met hods , properties , fields , class etc. 32. What is the top .NET class that everything is derived from? System.Object 33. How is method overriding different from method overloading? When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with t he same name within the class. 34. What is a formatter? A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end. 35. What is an ArrayList? The ArrayList object is a collection of items containing a single data t ype values. 36. What is static member? The member defined as static which can be invoked directly from the clas s level, rather than from its instance. 37. What is Overloading? A process of creating different implementation of a method having a same name as base class, in a derived class. It implements Inheritance. 38. When do you use virutal keyword? When we need to override a method of the base class in the sub class, th en we give the virtual keyword in the base class method. This makes the method i n the base class to be overridable. Methods, properties, and indexers can be vir tual, which means that their implementation can be overridden in derived classes . 39. What is the purpose of XML Namespaces? * An XML Namespace is a collection of element types and attribute names. It consists of 2 parts The first part is the URI used to identify the namespace * The second part is the element type or attribute name itself. 40. What is a constructor? A constructor is invoked when you use the new operator, or use the vario us methods of reflection to create an instance of a class. 41. What is the difference between System.String and System.StringBuilder cl asses?

System.String is immutable, System.StringBuilder was designed with the p urpose of having a mutable string where a variety of operations can be performed . 42. What is the use of JIT ? JIT (Just - In - Time) is a compiler which converts MSIL code to Native Code (ie. CPU-specific code that runs on the same computer architecture). 43. What is the difference between early binding and late binding? Calling a non-virtual method, decided at a compile time is known as earl y binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding. 44. Which method do you invoke on the DataAdapter control to load your gener ated dataset with data? DataAdapter s fill () method is used to fill load the data in dataset. 45. What is the purpose of an Assembly? An assembly controls many aspects of an application. The assembly handle s versioning, type and class scope, security permissions, as well as other metad ata including references to other assemblies and resources. The rules described in an assembly are enforced at runtime. 46. What is Authentication and Authorization? Authentication is the process of identifying users. Authentication is id entifying/validating the user against the credentials (username and password). Authorization performs after authentication. Authorization is the process of gra nting access to those users based on identity. Authorization allowing access of specific resource to user. 47. What are the types of Authentication? * There are 3 types of Authentication.Windows authentication * Forms authentication * Passport authentication. 48 What is a Literal Control? The Literal control is used to display text on a page. The text is progr ammable. This control does not let you apply styles to its content. 49. * * * * * * 50. What are the namespace available in .net? Namespace is a logical grouping of class.System System.Data System.IO System.Drawing System.Windows.Forms System.Threading

What is Side-by-Side Execution? The CLR allows any versions of the same-shared DLL (shared assembly) to execute at the same time, on the same system, and even in the same process. This concept is known as side-by-side execution. 51. What are the different types of Caching? * There are three types of Caching : Output Caching * Fragment Caching * Data Caching. What is Reference type and value type? Reference Type : Reference types are allocated on the managed CLR heap, just like object types. A data type that is stored as a reference to the value s l ocation. Reference types can be self-describing types, pointer types, or interfa 52.

ce types. Value Type : Value types are allocated on the stack just like primitive types in VBScript, VB6 and C/C++. Value types are not instantiated using new go out of s cope when the function they are defined within returns. 53. What is Delegates? Delegates are a type-safe, object-oriented implementation of function po inters and are used in many situations where a component needs to call back to t he component that is using it. 54. What is Authentication and Authorization? Authentication is the process of identifying users. Authentication is id entifying/validating the user against the credentials (username and password). Authorization performs after authentication. Authorization is the process of gra nting access to those users based on identity. Authorization allowing access of specific resource to user. 55. What is a Static class? Static class is a class which can be used or accessed without creating a n instance of the class. 56 What is sealed class? Sealed classes are those classes which can not be inherited and thus any sealed class member can not be derived in any other class. A sealed class canno t also be an abstract class. 57. What are the two main parts of the .NET Framework?

* There are the two main parts of the .NET Framework are :The common languag e runtime (CLR). * The .NET Framework class library. 58. ing? What is the advantage of using System.Text.StringBuilder over System.Str

StringBuilder is more efficient in cases where there is a large amount o f string manipulation. Strings are immutable, so each time it's being operated o n, a new instance is created. 59. What is reflection? All .NET compilers produce metadata about the types defined in the modul es they produce. This metadata is packaged along with the module (modules in tur n are packaged together in assemblies), and can be accessed by a mechanism calle d reflection. 60. What is an Application Domain? How they get created? An Application Domain can be thought of as a lightweight processes contr olled by the .Net runtime. Application Domains are usually created by hosts like Windows Shell, ASP.NET and IE. When you run a .NET application from the command -line, the host is the Shell. The Shell creates a new Application Domain for eve ry application. 61. What is the difference between Compiler and Interpreter? Compiler : A compiler is a program that translates program (called source code) written in some high level language into object code. Interpreter: An interpreter translates high-level instructions into an intermediate form, whi ch it then executes. Interpreter analyzes and executes each line of source code in succession, without looking at the entire program; the advantage of interpret ers is that they can execute a program immediately. . 62. What is a class? Class is concrete representation of an entity. It represents a group of objects, which hold similar attributes and behavior. It provides abstraction and encapsulations. 63. What is an Object? Object represents/resembles a Physical/real entity. An object is simply

something you can give a name. 64 What is Abstraction? Hiding the complexity. It is a process of defining communication interfa ce for the functionality and hiding rest of the things. 65. How do you convert a string into an integer in .NET? Int32.Parse(string) Convert.ToInt32() 66. Describe the compilation process for .NET code? Source code is compiled and run in the .NET Framework using a two-stage process. First, source code is compiled to Microsoft intermediate language (MSIL ) code using a .NET Framework-compatible compiler, such as that for Visual Basic .NET or Visual C#. Second, MSIL code is compiled to native code. 67. What Is Boxing And Unboxing? Boxing : Boxing is an implicit conversion of a value type to the reference type. Examples : Stuct Type, Enumeration Type UnBoxing : Unboxing is an explicit conversion from the reference to a value type. Examples : Class , Interface. 68. How do you create threading in .NET? What is the namespace for that? System.Threading.Thread 69. What is Method overloading? Method overloading occurs when a class contains two methods with the sam e name, but different signatures. 70. What is Method Overriding? An override method provides a new implementation of a member inherited f rom a base class. The method overridden by an override declaration is known as t he overridden base method. 71. What is difference between inline and code behind? Inline code written along side the html in a page. Code-behind is code w ritten in a separate file and referenced by the .aspx page. 72. What is an abstract class? An abstract class is a class that must be inherited and have the methods overridden. An abstract class is essentially a blueprint for a class without an y implementation. 73. What is the difference between datagrid and gridview? Datagrid is used in windows application and gridview is used in web and in datagrid we cannot write the code for datagrid properties where as for grid v iew we can write the code like template column item template etc this will not b e done in datagrid. 74. What is the use of System.Diagnostics.Process class? The System.Diagnostics namespace provides the interfaces, classes, enume rations and structures that are used for tracing. The System.Diagnostics namespace provides two classes named Trace and Debug that are used for writing errors and application execution information in logs. 75. What is the difference between static or dynamic assemblies? Assemblies can be static or dynamic. Static assemblies : can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on).Staticassembli es are stored on disk in portable executable (PE) files. Dynamic assemblies : which are run directly from memory and are not saved to disk before execution. Y ou can save dynamic assemblies to disk after they have executed. 76. What are the difference between Structure and Class? * Structures are value type and Classes are reference type.

* Structures can not have contractors or destructors. Classes can have both contractors and destructors. * Structures do not support Inheritance, while Classes support Inheritance 77. What is difference between Class And Interface? Class : is logical representation of object. It is collection of data an d related sub procedures with defination. Interface : is also a class containg methods which is not having any definations .Class does not support multiple inheritance. But interface can support. 78. What is the use of ErrorProvider Control? The ErrorProvider control is used to indicate invalid data on a data ent ry form. 79. How many languages .NET is supporting now? When .NET was introduced it came with several languages. VB.NET, C#, COB OL and Perl, etc. 44 languages are supported. 80. How many .NET languages can a single .NET DLL contain? Many. 81. What is metadata? Metadata means data about the data i.e., machine-readable information ab out a resource, . Such information might include details on content, format, siz e, or other characteristics of a data source. In .NET, metadata includes type de finitions, version information, external assembly references, and other standard ized information. 82. What is the difference between Custom Control and User Control? Custom Controls are compiled code (Dlls), easier to use, difficult to cr eate, and can be placed in toolbox. Drag and Drop controls. Attributes can be se t visually at design time. AUser Control is shared among the single application files. 83. What keyword is used to accept a variable number of parameter in a metho d? params keyword is used as to accept variable number of parameters. 84. What are different types of JIT ? * There are three types of jit : pre - jit * Econo - jit * Normal - jit. 85. What is difference between C# And Vb.net? * C# is case sensitive while VB is not case sensitive. * vb.net does not support xml while c# support xml * vb.net supports with constructor while c# do not. 86. What does assert() method do? In debug compilation, assert takes in a Boolean condition as a parameter , and shows the error dialog if the condition is false. The program proceeds wit hout any interruption if the condition is true. 87. Why string are called Immutable data Type? The memory representation of string is an Array of Characters, So on reassigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed. 88. What is the difference between Convert.toString and .toString() method? Convert.toString handles null while i.tostring() does not handles null. 89. How many types of Transactions are there in COM + .NET ?

* * * * * 90.

There are 5 transactions types that can be used with COM+.Disabled Not Supported Supported Required Required New

What is a DataTable? A DataTable is a class in .NET Framework and in simple words a DataTable object represents a table from a database. 91. How many namespaces are in .NET version 1.1? 124. 92. What is a DataSet? A DataSet is an in memory representation of data loaded from any data so urce 93. What is the difference between in-proc and out-of-proc? An Inproc is one which runs in the same process area as that of the clie nt giving tha advantage of speed but the disadvantage of stability becoz if it c rashes it takes the client application also with it. Outproc is one which works outside the clients memory thus giving stability to t he client, but we have to compromise a bit on speed. 94. What is the differnce between Managed code and unmanaged code? Managed Code: Code that runs under a "contract of cooperation" with the common language runtime. Managed code must supply the metadata necessary for the runtimeto provide services such as memory management, cross-language integratio n, code access security, and automatic lifetime control of objects. All code bas ed on Microsoft intermediate language (MSIL) executes as managed code. Un-Managed Code:Code that is created without regard for the conventions and requ irements of the common language runtime. Unmanaged code executes in the common l anguage runtime environment with minimal services (for example, no garbage colle ction, limited debugging, and so on). 95. What is difference between constants, readonly and, static? * Constants: The value can t be changed. * Read-only: The value will be initialized only once from the constructor of the class. * Static: Value can be initialized once. 96. 97. * * * * 98. What is the difference between Convert.toString and .toString() method? Convert.toString handles null while i.tostring() does not handles null. What are the advantages of VB.NET? The main advantages of .net are : .NET is a language independent Automatic memory management(garbage collection) Disconnected architecture Object Oriented.

What is strong-typing versus weak-typing? Strong type is checking at the variables in compile time. Weak typing is checking the variables at run-time. 99. What is the root class in .Net? system.object is the root class in .net . 100. What is the maximum size of the textbox? 65536 101. What is managed code execution? The .Net framework loads and executes the .Net applications, and manages the state of objects during program execution. This also provides automatically garbage collections.

102.

What is the strong name in .net assembly?

* Strong Name is similar to GUID (It is supposed to be unique in space and t ime). * In COM components. Strong name is only needed when we need to deploy assem bly in GAC. * Strong names use public key cryptography (PKC) to ensure that no one can s poof it. PKC use public key and private key concept. Following are the step to g enerate a strong name and sign an assembly: 103. 104. 105. How to run a Dos command in Vb.net? Shell("cmd.exe /c c:\first.exe < in.txt > out.txt") What are the assembly entry points? An assembly can have only one entry point from DllMain, WinMain or Main.

What are remotable objects in .NET Remoting? Remotable objects are the objects that can be marshaled across the appli cation domains. You can marshal by value, where a deep copy of the object is cre ated and then passed to the receiver. You can also marshal by reference, where j ust a reference to an existing object is passed. 106. What are the types of Authentication? * There are 3 types of Authentication. Windows Authentication * Forms Authentication * Passport Authentication . 107. What namespaces are necessary to create a localized application? * System.Globalization * System.Resources 108. Which namespaces are used for data access? * System.Data * System.Data.OleDB * System.Data.SQLClient 109. What is a SESSION and APPLICATION object? Session object store information between HTTP requests for a particular

user. Session variables are used to store user specific information where as in applic ation variables we can t store user specific information. while application object are global across users. 110. What is static constructor? A static constructor is used to initialize a class. It is called automat ically to initialize the class before the first instance is created or any stati c members are referenced. --------------------------------------------------------------------------------------------------------------------

Você também pode gostar