InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
What Is The Difference Between A "jagged Array" And Multidimensional Array" ?can Anyone Show Me It Practically ? |
|
Answer» multidimentional ARRAY has same SIZE in all dimentions but jagged is the TYPE of multidimentional array which has different size for its DIMENSIONS. int array[3][3][3]; //multidimentional array. multidimentional array has same size in all dimentions but jagged is the type of multidimentional array which has different size for its dimensions. int array[3][3][3]; //multidimentional array. |
|
| 52. |
What Is Misl Code? |
|
Answer» MSIL CODE is the Microsoft INTERMEDIATE Language. This is the code created by the CLR from the SOURCE code. This MSIL code is CONVERTED to machine/native code by JIT compiler. This machine code is actually the code which runs. MSIL code is the Microsoft Intermediate Language. This is the code created by the CLR from the source code. This MSIL code is converted to machine/native code by JIT compiler. This machine code is actually the code which runs. |
|
| 53. |
What Do You Mean By Serialization And Deserialization And It's Use. |
|
Answer» Serilization: It is the PROCESS of maintaning object state in the form of a stream. Serilization: It is the process of maintaning object state in the form of a stream. |
|
| 54. |
What Is The Advantage Of Option Strict On? |
|
Answer» Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided. Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided. |
|
| 55. |
What Is The Diff Between Vb Mdi Form And .net Mdi Form? |
|
Answer» 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. 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. |
|
| 56. |
What Is Assembly In .net And What Do You Mean By Protected Class Always Present In The Same Assembly? |
|
Answer» ASSEMBLIES are building BLOCKS of framework. There are MAINLY two types of assemblies Assemblies are building blocks of framework. There are mainly two types of assemblies |
|
| 57. |
How Would You Implement Inheritance Using Vb.net ? |
|
Answer» 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. 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. |
|
| 58. |
What Is Sta In .net? |
|
Answer» 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. 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. |
|
| 59. |
How To Store/retrive Images Into/from Oracle Database Using Vb.net ? |
|
Answer» Code for storing Image Dim rs As New ADODB.Recordset Dim mstream As New ADODB.Streamrs.Open "select * from StyleImage where styleNo='" & TxtStyleNo.Text & "'", db, adOpen Dynamic, adLock Optimistic If rs.EOF = False Then MsgBox "Stle Already EXIST in DATABASE" Exit Sub End If db.Execute "exec insertintostyleimage " & MCId & "," & SCId & "," & GId & "," & CompanyId & ",'" & TxtStyleNo & "','" & TxtStyleDesc & "','" & TxtStyleCost & "','" & Img1.Picture & "','" & Usercd & "','" & Img2.Picture & "','" & cmbexportername.Text & "','" & txtexporterstyleno.Text & "'" rs.Open "select * from StyleImage where styleNo='" & TxtStyleNo.Text & "'", db, adOpenDynamic, adLockOptimistic With rs If .RecordCount <> 0 And Img1.Picture <> LoadPicture("") And Img2.Picture <> LoadPicture("") Then mstream.Type = adTypeBinary mstream.Open fpath = CD1.FileName mstream.LoadFromFile fpath .Fields("imagefilebig").Value = mstream.Read fpath = CD2.FileName mstream.LoadFromFile fpath .Fields("imagefilesmall").Value = mstream.Read .Update mstream.Close End If .Close End With code for retriving images Dim rscat As New ADODB.Recordset Dim mstream As New ADODB.Stream rscat.Open "select style image.*, (select COMPANY name from EXPORTER where companyid=styleimage. exporterid)as expname from styleimage where companyid=" & CompanyId & " and maincatid=" & MCId & " and subcatid=" & SCId & " and catgroupid=" & GId & " and styleno='" & CmbStyleNo & "'", db, adOpenDynamic, adLockOptimistic If rscat.RecordCount > 0 Then mstream.Type = adTypeBinarySet Img2.Picture = LoadPicture("") If mstream.State = 1 Then mstream.Close mstream.Open If IsNull(rscat.Fields("Imagefilesmall")) Then Else mstream.Write rscat.Fields("Imagefilesmall").Value If mstream.Size > 1 Then mstream.SaveToFile App.Path & "temp.jpeg", adSaveCreateOverWrite CD1.FileName = App.Path & "temp.jpeg" Img2.Picture = LoadPicture(CD1.FileName) mstream.Close End If End If Code for storing Image code for retriving images |
|
| 60. |
I Was Asked In Interview That If I Have Created A Class And I Don't Want The Class To Be Inherited By Any Other Members Without Me Which Key Or Function I Have To Use? |
|
Answer» VB: for CLASS NotInheritable [MyClass] VB: for class NotInheritable [MyClass] |
|
| 61. |
How To Check For A Particular Record Whether It Is Present Or Not In Dataset |
|
Answer» if the record is not present i WANT to DISPLAY a message as no records what is the CODE for checking if the record is not present i want to display a message as no records what is the code for checking |
|
| 62. |
You Want That A Component Be Granted Full Access To The Active Directory Before It Is Loaded. Which Attributes Should You Use With The Component?name Some Of The Asp Components? |
|
Answer» • Ad Rotator component – a way to MANAGE advertisements on the WEB site. • Ad Rotator component – a way to manage advertisements on the web site. |
|
| 63. |
What Is The Difference Between Vb And Vb.net ?how To Insert Row By Row Data In Datagrid ? How To Work With Repeater Controls And Give Small Example Program ? |
|
Answer» 1.Visual Basic.NET is object oriented but VB 6 is not so. 1.Visual Basic.NET is object oriented but VB 6 is not so. |
|
| 64. |
How To Store And Retrieve Images In Sql Server Database Through Vb.net? |
|
Answer» To store image in database 1st U NEED to make table LIKE this To store image in database 1st u need to make table like this |
|
| 65. |
What Is Different Between Web.config And Machine.config And Where It Will Be ? |
|
Answer» The ASP.NET WEB.config file is used to define the configuration SETTINGS for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like: The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like: |
|
| 66. |
Can U Able To Get The Xml Document In Crystal Report If Yes How Its Possible? |
|
Answer» YES. You have to CONVERT XML to DATASET. Yes. You have to convert XML to dataset. |
|
| 67. |
How Can I Extract The Formated Word(bold,italic,underline,font,color Etc) From The Msword File.? |
|
Answer» using CommonDialog class using CommonDialog class |
|
| 68. |
How A Rotate A Control (rotation Like Shapes Are Rotated In Ms Powerpoint ) In Vb.net? |
|
Answer» we can USE adrotator CONTROL to use LIKE POWERPOINT PRESENTATION. we can use adrotator control to use like powerpoint presentation. |
|
| 69. |
How To Send Xml File On Server Using Http Protocol? |
|
Answer» Through SOAP Protocol. |
|
| 70. |
Whats The Difference Bt. .dll Extension And .exe Extension Files? |
|
Answer» DLL : It is an inprocess server and runs in the same MEMORY SPACE as client application. Problem with dll is if any ERROR comes in dll, whole application gets crashed. DLL : It is an inprocess server and runs in the same memory space as client application. Problem with dll is if any error comes in dll, whole application gets crashed. |
|
| 71. |
What Is The Base Class Of .net? |
|
Answer» System.Object is the BASE CLASS of .NET System.Object is the base class of .NET |
|
| 72. |
Suppose If We Display The "c:\" Or "d:\" Of The Computer In A Web Browser And We Want To Get Any Folder Details But Not Ny Rigth Clicking The Folder. How To Do That Plz Help |
|
Answer» I think you want the openfiledialog, unless your saving, then savefiledialog. Add ONE to your project. the SIMPLEST usage ALLOWING you to use in any fashion would be I think you want the openfiledialog, unless your saving, then savefiledialog. Add one to your project. the simplest usage allowing you to use in any fashion would be |
|
| 73. |
How Can We Get The Contents Information That Are Displayed In A Web |
|
Answer» browser control in vb.net. |
|
| 74. |
Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level. |
|
Answer» You can GO for internet control of robot. You can go for internet control of robot. |
|
| 75. |
Can Any Body Tell Me The Code Procedure For Preparing Parameterized Cristel Reports.the Report Should Be Generated By Taking To Or More Parameters. Example: Report Should Be Genarated From Date To Todate? |
|
Answer» We can generate Crystal Report by USING DATE parameter, but the date format should be "yyyy,mm,dd". We can generate Crystal Report by using date parameter, but the date format should be "yyyy,mm,dd". |
|
| 76. |
What Is .net |
|
Answer» .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. .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. |
|
| 77. |
Multi-language Support As We Progress In Your Development Process. How Can We Remove Handlers At Run Time ? |
|
Answer» RemoveHandler myobj.myEvent, AddressOf MyEventHandler. RemoveHandler myobj.myEvent, AddressOf MyEventHandler. |
|
| 78. |
What Are Satellite Assemblies? |
|
Answer» 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. 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. |
|
| 79. |
What Are Jagged Arrays ? |
|
Answer» a collection of discrete no of elements in each and every row is CALLED as jagged arrays. a collection of discrete no of elements in each and every row is called as jagged arrays. |
|
| 80. |
What Do You Mean By 'option Strict On' ? |
|
Answer» Option Strict Option Strict |
|
| 81. |
What Is The Dif B/w Panel And Groupbox. |
|
Answer» Both panel and group box acts like a container to other controls they help us a lot in some APPLICATIONS where we want a group of controls or objects should be DISABLED or ENABLED when a specific task is performedthe main difference is group box has a hording where u can place a TEXT of ure own whereas a panel is just like a frame what we USED in VB but has a scrollbar(hs,vs) Both panel and group box acts like a container to other controls they help us a lot in some applications where we want a group of controls or objects should be disabled or enabled when a specific task is performedthe main difference is group box has a hording where u can place a text of ure own whereas a panel is just like a frame what we used in VB but has a scrollbar(hs,vs) |
|
| 82. |
What Is The Difference B/w Readonly Variable And Constant Variable? |
|
Answer» VARIABLE used to store the data variable used to store the data |
|
| 83. |
How To Call A List Box On The Text If Some One Send Me The Code For It |
|
Answer» i understood the ? like this what to do if we need to TRANSFER the listbox items to the TEXT if i am correct then my ANSWER to this is double click on the listbox so that the eventof the listbox is displayed in the code editori.e i understood the ? like this what to do if we need to transfer the listbox items to the text if i am correct then my answer to this is double click on the listbox so that the eventof the listbox is displayed in the code editori.e |
|
| 84. |
What Are Fixed Memory Leaks And Threads Locking Problems. |
|
Answer» Memory LEAK is a bug in the program which uses the memory continuously without RELEASING it until the system crash.Thread locking problem is nothing but a deadlock situation in case of SYNCHRONOUS process when two consecutive threads get lock on a common resource and waiting for each other to release that. This happens usually in case when the SEMAPHORES or MONITORS are not used. Memory leak is a bug in the program which uses the memory continuously without releasing it until the system crash.Thread locking problem is nothing but a deadlock situation in case of synchronous process when two consecutive threads get lock on a common resource and waiting for each other to release that. This happens usually in case when the semaphores or monitors are not used. |
|
| 85. |
How Is Vb.net Different From Vb6? |
Answer»
|
|
| 86. |
What Is The Common Language Runtime? |
|
Answer» CLR means commaon language RUNTIME for the dot NET frame work.it is the frame work layer that resides above the OPERATING system and handels/ manages the execution of the .net applications.our .net programs don't directly COMMUNICATE with the operating system but through CLR. CLR means commaon language runtime for the dot net frame work.it is the frame work layer that resides above the operating system and handels/ manages the execution of the .net applications.our .net programs don't directly communicate with the operating system but through CLR. |
|
| 87. |
Is There Any Easy Way To Convert Vb6 Programs To Vb.net? |
|
Answer» Just Open The VB Project in VISUAL Studio.Net(FILE---> Open). Just Open The Vb Project in Visual Studio.Net(File---> Open). |
|
| 88. |
What Do You Mean By .net Framework |
|
Answer» It is a collection of CLASSES and services.It exists as a layer between.NET applications and underlying operating system.i.e., it encapsulates the basic functionality that was earlier built into programming languages such as DEBUGGING and security services. It is a collection of classes and services.It exists as a layer between.NET applications and underlying operating system.i.e., it encapsulates the basic functionality that was earlier built into programming languages such as debugging and security services. |
|
| 89. |
Do Event Have Return Type? |
|
Answer» No. EVENTS do not have RETURN TYPE. No. events do not have return type. |
|
| 90. |
What Are The Similarities Between Class And Structure? |
|
Answer» -> Both can have constructors, methods, properties , FIELDS, constants , enumerations, events and event -> Both can have constructors, methods, properties , fields, constants , enumerations, events and event |
|
| 91. |
What Is The Relation Between Garbage Collector And Finalize And Destructor? |
|
Answer» here the GC calls an object's FINALIZE method immediately before it collects an object that is no longer referred by the application. here the GC calls an object's FINALIZE method immediately before it collects an object that is no longer referred by the application. |
|
| 93. |
What Is The Difference Between Clr & Cts? |
|
Answer» CLR is the COMMON language runtime. which is the feature makes the .net APPLICATIONS to run plantform independent langauge interoperability. CLR is the common language runtime. which is the feature makes the .net applications to run plantform independent langauge interoperability. |
|
| 94. |
Trace And Debug Belongs To Which Namespaces? |
|
Answer» system.process.diagnostics. system.process.diagnostics. |
|
| 95. |
Columnmapping Belongs To Which Namespaces? |
|
Answer» System.Data.Common. System.Data.Common. |
|
| 96. |
In Order To Get Assembly Info Whcih Namespace We Should Import? |
|
Answer» system.reflection. system.reflection. |
|
| 97. |
What Is The Difference Between Friend And Protected Friend? |
|
Answer» Protected variable will be accessed in INHERITED class, but instance variable of class CANT access protected variable.While friend variable will be accessed in inherited class as well as instance variable of class across the project.Where we NEED both FUNCTIONALITY we are using protected friend scope. Protected variable will be accessed in inherited class, but instance variable of class cant access protected variable.While friend variable will be accessed in inherited class as well as instance variable of class across the project.Where we need both functionality we are using protected friend scope. |
|
| 98. |
What Is The Difference Between Overriding And Overloading? |
|
Answer» overloading-------having same METHOD name with different signatures. overloading-------having same method name with different signatures. |
|
| 99. |
How Do You Declare Static Variable And How It Is Declared And What Is Its Lifetime? |
|
Answer» Static variables are DECLARE through the Static VAR1 as INTEGER The scop of the Var1 is WITHIN the module where its is Defined. Static variables are declare through the Static Var1 as Integer The scop of the Var1 is within the module where its is Defined. |
|
| 100. |
What Is The Difference Between Dataset And Datareader? |
|
Answer» DataReader: DataSet: DataReader: DataSet: |
|