Professional Documents
Culture Documents
Answer: Here is the syntax to open outlook or notepad file in ASP.NET VB.NET
Process.Start("Notepad.exe") Process.Start("msimn.exe"); C#.NET
System.Diagnostics.Process.Start("msimn.exe");
System.Diagnostics.Process.Start("Notepad.exe");
Question: How to get result from two table in SqlDataReader ?
Answer: string str="Select * from table1;Select * from table2";
cmd.commandtext=str; dr=cmd.executereader();
Question: What is Ref Cursor in .NET and how it is link with ExecuteReader ?
Answer: Ref cursor play its role when doing with the oracle database these comes in
ODP.NET. Ref Cursors are objects that link to Oracle server-side cursors.These Ref
Cursor can be converted in oracle datareader with this Ref cursor we can get result
with query written to pl/sql and the result can be get in .net.Now the question arise
why we use Ref Cursor when we have an option of ExceuteReader reson is simple
when we need more query in pl/sql means our work is done in pl/sql then we need
this ref cursor for getting result set because doennot have direct connection to that
table.Becasue advantage of pl/sql we can take two opertion in one query.
Question: Define tool Manage Statistics in SQL Serevr 2000 query ?
Answer: SQL Server creates internal statistics on the rows in all of our tables that is
used by the Query Optimizer to select the optimal execution plan for our query. And
Query Optimizer helps in doing this.Soome time when statistics isnot maintains then
this is done by tool Manage Statistics.We can add,edit or delete for statistics that is
maintained by SQL Server.We can experiment with different sets of statistics and see
how it affects the query otimizer execution plans.
Question: Some important instruction regarding ADO.NET connection
string ?
Answer: When we are making connection string always use Server's IP address not
the DNS name if we use IP address it will reduce the time taken for connection to
establish.Becasue server IP address is used to get a default or named instance of Sql
Server that ls running. if we are running the cluster we have to use the Virtual SQL
Server IP address.
Question: How to get database schema information when connection object
is establish in ADO.NET ?
Answer: There is a method that helps in getting schema information that is
GetSchema() and this method is called in three different ways first way when we call
this method without any parameter its return the metadata(table, view, stored
procedure.indexes etc).When method is called by passing metadata collection name
and filter criteria returns the items from the collection after applying the filter criteria
and last way is when we called by passing a metadata collection name returns
information about items found in the specified collection.
dr= cmd.ExecuteReader(CommandBehavior.CloseConnection);
The associated connection will be closed automatically when the Close method of the
Datareader is called. This makes it all the more important to always remember to call
Close on your datareaders.
5. What namespace does the Web page belong in the .NET Framework class
hierarchy?
System.Web.UI.Page
13. Should user input data validation occur server-side or client-side? Why?
All user input data validation should occur on the server at a minimum. Additionally,
client-side validation can be performed where deemed appropriate and feasable to
provide a richer, more responsive experience for the user.
15. Can you explain the difference between an ADO.NET Dataset and an ADO
Recordset?
Valid answers are:
· A DataSet can represent an entire relational database in memory, complete with
tables, relations, and views.
· A DataSet is designed to work without any continuing connection to the original data
source.
· Data in a DataSet is bulk-loaded, rather than being loaded on demand.
· There's no concept of cursor types in a DataSet.
· DataSets have no current record pointer You can use For Each loops to move
through the data.
· You can store many edits in a DataSet, and write them to the original data source in
a single operation.
· Though the DataSet is universal, other objects in ADO.NET come in different
versions for different data sources.
17. What are the Application_Start and Session_Start subroutines used for?
This is where you can set the specific variables for the Application and Session
objects.
18. Can you explain what inheritance is and an example of when you might use
it?
When you want to inherit (use the functionality of) another class. Example: With
a base class named Employee, a Manager class could be derived from the Employee
base class.
21. Explain what a diffgram is, and a good use for one?
The DiffGram is one of the two XML formats that you can use to render DataSet object
contents to XML. A good use is reading database data to an XML file to be sent to a
Web Service.
23. Which method do you invoke on the DataAdapter control to load your
generated dataset with data?
The Fill() method.
25. Which template must you provide, in order to display data in a Repeater
control?
ItemTemplate.
26. How can you provide an alternating color scheme in a Repeater control?
Use the AlternatingItemTemplate.
27. What property must you set, and what method must you call in your code, in
order to bind the data from a data source to the Repeater control?
You must set the DataSource property and call the DataBind method.
30. Which property on a Combo Box do you set with a column name, prior to
setting the DataSource, to display data in the combo box?
DataTextField property.
31. Which control would you use if you needed to make sure the values in two
different controls matched?
CompareValidator control.
32. How many classes can a single .NET DLL contain?
It can contain many classes.
5. True or False: To test a Web service you must create a Windows application
or Web application to consume this service?
False, the web service comes with a test page and it provides HTTP-GET method to
test.
1. What is ViewState?
ViewState allows the state of objects (serializable) to be stored in a hidden field on the
page. ViewState is transported to the client and back to the server, and is not stored
on the server or any other external source. ViewState is used the retain the state of
server-side objects between postabacks.
4. What are the different types of Session state management options available
with ASP.NET?
ASP.NET provides In-Process and Out-of-Process state management. In-Process
stores the session in memory on the web server. This requires the a "sticky-server"
(or no load-balancing) so that the user is always reconnected to the same web server.
Out-of-Process Session state management stores data in an external data source. The
external data source may be either a SQL Server or a State Server service. Out-of-
Process state management requires that all objects stored in session are serializable.
NET Remoting Interview Questions
To Do: Comfirm these are correct answers. Many of these question I have obtained
from other sources and have found they are not entirely correct, or simply wrong.
5. What are the consideration in deciding to use .NET Remoting or ASP.NET Web
Services?
Remoting is a more efficient communication exchange when you can control both ends
of the application involved in the communication process. Web Services provide an
open-protocol-based exchange of informaion. Web Services are best when you need
to communicate with an external organization or another (non-.NET) technology.
11. Choosing between HTTP and TCP for protocols and Binary and SOAP for
formatters, what are the trade-offs?
Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.
15. Can you configure a .NET Remoting object via XML file?
Yes, via machine.config and application level .config file (or web.config in ASP.NET).
Application-level XML settings take precedence over machine.config.
16. How can you automatically generate interface for the remotable object in
.NET with Microsoft tools?
Use the Soapsuds tool.
C# Interview Questions
This is a list of questions I have gathered from other sources and created myself over a period
of time from my experience, many of which I felt where incomplete or simply wrong. I have
finally taken the time to go through each question and correct them to the best of my ability.
However, please feel free to post feedback to challenge, improve, or suggest new questions. I
want to thank those of you that have contributed quality questions and corrections thus far.
There are some question in this list that I do not consider to be good questions for an
interview. However, they do exist on other lists available on the Internet so I felt compelled to
keep them easy access.
General Questions
11. How can you sort the elements of the array in descending order?
By calling Sort() and then Reverse() methods.
12. What’s the .NET collection class that allows an element to be accessed using
a unique key?
HashTable.
14. Will the finally block get executed if an exception has not occurred?
Yes.
15. What’s the C# syntax to catch any possible exception?
A catch block that catches the exception of type System.Exception. You can also omit
the parameter data type in this case and just write catch {}.
16. Can multiple catch blocks be executed for a single try statement?
No. Once the proper catch block processed, control is transferred to the finally block
(if there are any).
17. Explain the three services model commonly know as a three-tier application.
Presentation (UI), Business (logic and underlying code) and Data (from storage or
other sources).
Class Questions
2. Can you prevent your class from being inherited by another class?
Yes. The keyword “sealed” will prevent the class from being inherited.
3. Can you allow a class to be inherited, but prevent the method from being
over-ridden?
Yes. Just leave the class public and make the method sealed.
7. Why can’t you specify the accessibility modifier for methods inside the
interface?
They all must be public, and are therefore public by default.
9. What happens if you inherit multiple interfaces and they have conflicting
method names?
It’s up to you to implement the method inside your own class, so implementation is
left entirely up to you. This might cause a problem on a higher-level scale if similarly
named methods from different interfaces expect different data, but as far as compiler
cares you’re okay.
To Do: Investigate
1. What’s the implicit name of the parameter that gets passed into the set
method/property of a class?
Value. The data type of the value parameter is defined by whatever data type the
property is declared as.
4. Can you declare an override method to be static if the original method is not
static?
No. The signature of the virtual method must remain the same. (Note: Only the
keyword virtual is changed to keyword override)
1. What’s a delegate?
A delegate object encapsulates a reference to a method.
1. Is XML case-sensitive?
Yes.
3. What’s the difference between the Debug class and Trace class?
Documentation looks the same. Use Debug class for debug builds, use Trace class for
both debug and release builds.
7. What are three test cases you should go through in unit testing?
1. Positive test cases (correct data, correct output).
2. Negative test cases (broken or missing data, proper handling).
3. Exception test cases (exceptions are thrown and caught properly).
7. What does the Initial Catalog parameter define in the connection string?
The database name to connect to.
Assembly Questions
What is .NET?
.NET is essentially a framework for software development. It is similar in
nature to any other software development framework (J2EE etc) in that it
provides a set of runtime containers/capabilities, and a rich set of pre-built
functionality in the form of class libraries and APIs
The .NET Framework is an environment for building, deploying, and
running Web Services and other applications. It consists of three main
parts: the Common Language Runtime, the Framework classes, and
ASP.NET.
Can the validation be done in the server side? Or this can be done only
in the Client side?
Client side is done by default. Server side validation is also possible. We can
switch off the client side and server side can be done.
What is ADO .NET and what is difference between ADO and ADO.NET?
ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-
memory database where in I can use relationships between the tables and
select insert and updates to the database. I can update the actual database
as a batch.
For example, if you are extending an application with existing XML Web
services, you might use a scripting language with little or no programming
effort. For client-server applications, you would probably choose the single
language you are most comfortable with for the entire application. For new
enterprise applications, where large teams of developers create components
and services for deployment across multiple remote sites, the best choice
might be to use several languages depending on developer skills and long-
term maintenance expectations.
In most situations, you can effectively use all of the Microsoft programming
languages. Nevertheless, each programming language has its relative
strengths and you will want to understand the features unique to each
language. The following sections will help you choose the right programming
language for your application.
Visual Basic has many new and improved features such as inheritance,
interfaces, and overloading that make it a powerful object-oriented
programming language. Other new language features include free threading
and structured exception handling. Visual Basic fully integrates the .NET
Framework and the common language runtime, which together provide
language interoperability, garbage collection, enhanced security, and
improved versioning support. A Visual Basic support single inheritance and
creates Microsoft intermediate language (MSIL) as input to native code
compilers.
Visual Basic is comparatively easy to learn and use, and Visual Basic has
become the programming language of choice for hundreds of thousands of
developers over the past decade. An understanding of Visual Basic can be
leveraged in a variety of ways, such as writing macros in Visual Studio and
providing programmability in applications such as Microsoft Excel, Access,
and Word.
C# is fully integrated with the .NET Framework and the common language
runtime, which together provide language interoperability, garbage
collection, enhanced security, and improved versioning support. C#
simplifies and modernizes some of the more complex aspects of C and C++,
notably namespaces, classes, enumerations, overloading, and structured
exception handling. C# also eliminates C and C++ features such as macros,
multiple inheritance, and virtual base classes. For current C++ developers,
C# provides a powerful, high-productivity language alternative.
The CLS is a set of rules that standardizes such things as data types and
how objects are exposed and interoperate. Visual Basic .NET adds several
features that take advantage of the CLS. Any CLS-compliant language can
use the classes, objects, and components you create in Visual Basic .NET.
And you, as a Visual Basic user, can access classes, components, and
objects from other CLS-compliant programming languages without worrying
about language-specific differences such as data types.
Exception Handling
Visual Basic .NET supports structured exception handling, using an
enhanced version of the Try...Catch...Finally syntax supported by other
languages such as C++.
Overloading
Overloading is the ability to define properties, methods, or procedures that
have the same name but use different data types. Overloaded procedures
allow you to provide as many implementations as necessary to handle
different kinds of data, while giving the appearance of a single, versatile
procedure. Overriding Properties and Methods The Overrides keyword allows
derived objects to override characteristics inherited from parent objects.
Overridden members have the same arguments as the members inherited
from the base class, but different implementations. A member's new
implementation can call the original implementation in the parent class by
preceding the member name with MyBase.
Interfaces
Interfaces describe the properties and methods of classes, but unlike
classes, do not provide implementations. The Interface statement allows you
to declare interfaces, while the Implements statement lets you write code
that puts the items described in the interface into practice.
Delegates
Delegates objects that can call the methods of objects on your behalf are
sometimes described as type-safe, object-oriented function pointers. You
can use delegates to let procedures specify an event handler method that
runs when an event occurs. You can also use delegates with multithreaded
applications. For details, see Delegates and the AddressOf Operator.
Shared Members
Shared members are properties, procedures, and fields that are shared by
all instances of a class. Shared data members are useful when multiple
objects need to use information that is common to all. Shared class methods
can be used without first creating an object from a class.
References
References allow you to use objects defined in other assemblies. In Visual
Basic .NET, references point to assemblies instead of type libraries. For
details, see References and the Imports Statement. Namespaces prevent
naming conflicts by organizing classes, interfaces, and methods into
hierarchies.
Assemblies
Assemblies replace and extend the capabilities of type libraries by,
describing all the required files for a particular component or application.
An assembly can contain one or more namespaces.
Attributes
Attributes enable you to provide additional information about program
elements. For example, you can use an attribute to specify which methods
in a class should be exposed when the class is used as a XML Web service.
Multithreading
Visual Basic .NET allows you to write applications that can perform multiple
tasks independently. A task that has the potential of holding up other tasks
can execute on a separate thread, a process known as multithreading. By
causing complicated tasks to run on threads that are separate from your
user interface, multithreading makes your applications more responsive to
user input.
MyControl.dll
AxMyControl.dll
The first file MyControl.dll is a .Net assembly proxy, which allows you to
reference the ActiveX as if it were non-graphical object.
o Select Project A Add Reference (Select Add Reference from Project Menu).
o This will show you a dialog box, select .Net tab from the top of window.
o Click Browse button on the top right of window.
o Select the dll file for your ActiveX Proxy Assembly (which is MyControl.dll)
and click OK o Your selected component is now shown in the ‘Selected
Component’ List Box. Click OK again Some More On Using COM or ActiveX
in .Net
The Visual Studio.NET does surprise you in a great deal when u see that it
is applying its intellisense (showing methods, classes, interfaces, properties
when placing dot) even on your imported COM components!!!! Isn’t it a
magic or what?
When accessing thru RCW, .Net client has no knowledge that it is using
COM component, it is presented just as another C# assembly.
U can also import COM component thru command prompt (for reference see
Professional C# by Wrox)
U can also use your .Net components in COM, i.e., export your .net
components (for reference see Professional C# by Wrox)
What is Machine.config?
Machine configuration file: The machine.config file contains settings that
apply to the entire computer. This file is located in the %runtime install
path%Config directory. There is only one machine.config file on a computer.
The Machine.Config file found in the "CONFIG" subfolder of your .NET
Framework install directory (c:WINNTMicrosoft.NETFramework{Version
Number} CONFIG on Windows 2000 installations). The machine.config,
which can be found in the directory
$WINDIR$Microsoft.NETFrameworkv1.0.3705CONFIG, is an XML-formatted
configuration file that specifies configuration options for the machine. This
file contains, among many other XML elements, a browser Caps element.
Inside this element are a number of other elements that specify parse rules
for the various User-Agents, and what properties each of these parsing
supports.
platform=Win95
platform=Win98
platform=WinNT
...
That is, if in the User-Agent string the string "Windows 95" or "Win95" is
found, the platform property is set to Win95. There are a number of filter
elements in the browserCaps element in the machine.config file that define
the various properties for various User-Agent strings.
What is Web.config?
In classic ASP all Web site related information was stored in the metadata of
IIS. This had the disadvantage that remote Web developers couldn't easily
make Web-site configuration changes. For example, if you want to add a
custom 404 error page, a setting needs to be made through the IIS admin
tool, and you're Web host will likely charge you a flat fee to do this for you.
With ASP.NET, however, these settings are moved into an XML-formatted
text file (Web.config) that resides in the Web site's root directory. Through
Web.config you can specify settings like custom 404 error pages,
authentication and authorization settings for the Web sitempilation options
for the ASP.NET Web pages, if tracing should be enabled, etc.
The Web.config file is an XML-formatted file. At the root level is the tag.
Inside this tag you can add a number of other tags, the most common and
useful one being the system.web tag, where you will specify most of the Web
site configuration parameters. However, to specify application-wide settings
you use the tag.
In ADO you scan sequentially through the rows of the RecordSet using the
ADO MoveNext method. In ADO.NET, rows are represented as collections, so
you can loop through a table as you would through any collection, or access
particular rows via ordinal or primary key index. A cursor is a database
element that controls record navigation, the ability to update data, and the
visibility of changes made to the database by other users. ADO.NET does
not have an inherent cursor object, but instead includes data classes that
provide the functionality of a traditional cursor. For example, the
functionality of a forward-only, read-only cursor is available in the ADO.NET
DataReader object.
webFarm Vs webGardens
A web farm is a multi-server scenario. So we may have a server in each state
of US. If the load on one server is in excess then the other servers step in to
bear the brunt.
How they bear it is based on various models.
1. RoundRobin. (All servers share load equally)
2. NLB (economical)
3. HLB (expensive but can scale up to 8192 servers)
4. Hybrid (of 2 and 3).
5. CLB (Component load balancer).
A web garden is a multi-processor setup. i.e., a single server (not like the
multi server above).
How to implement webfarms in .Net:
Go to web.config and Here for mode = you have 4 options.
a) Say mode=inproc (non web farm but fast when you have very few
customers).
b) Say mode=StateServer (for webfarm)
c) Say mode=SqlServer (for webfarm)
Whether to use option b or c depends on situation. StateServer is faster but
SqlServer is more reliable and used for mission critical applications.
How to use webgardens in .Net:
Go to web.config and Change the false to true. You have one more attribute
that is related to webgarden in the same tag called cpuMask.
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.
Choosing between HTTP and TCP for protocols and Binary and SOAP
for formatters, what are the trade-offs?
Binary over TCP is the most effiecient, SOAP over HTTP is the most
interoperable.
How can you automatically generate interface for the remotable object
in .NET with Microsoft tools?
Use the Soapsuds tool.
What is Delegation?
A delegate acts like a strongly type function pointer. Delegates can invoke
the methods that they reference without making explicit calls to those
methods.
Delegate is an entity that is entrusted with the task of representation,
assign or passing on information. In code sense, it means a Delegate is
entrusted with a Method to report information back to it when a certain task
(which the Method expects) is accomplished outside the Method's class.
Basic interview questions with answers - 1
Here is a list of most common Interview Question asked in a job interview.
Interviewer ask these question generally to gauge your communication skills, to
meke yourself comfortable or even to test your clarity and wittiness in answering
questions :
One of the very basic things that any company would ask a job applicant is her or his
personal information. The main problem in this question is the start. With what
information you should start to tell about yourself. One possible strategy is to ask the
interviewer : So what should I start with ? Education, Family or experience ?
Answer this question truthfully but be careful not to badmouth your superiors or co-
workers. Do not say negative things about the management of your previous
company. You can state that you left your previous company in hope for a better
career opportunity.
Answer this question positively. Stay humble. Let them know that you set your own
personal goals and reaching these goals is what makes you a successful person.
Your answer to this question should be backed up with basic research. You should
know the latest news, issues and updates about the company you are applying to so
that they would get the impression that you are indeed very interested in becoming
part of their organization.
6. What have you done to improve your knowledge / skills in the last year?
Share some activities that you have done in the past that relates to the job you are
applying for. If you have been to seminars and other self-improvement activities,
share these experiences as well.
This is a question you need to dwell on. You should come out sincere. Talk about your
goals as a career person and how much you think the organization can help you in
achieving your goals.
This is actually a tricky question. Do not give a quick answer and give a figure right
away. You can ask something like “What is the salary range for this job?” Most
interviewers might just answer your question. If not, tell them that your rate
depends on the nature of the job. This is the right time when you can give an
estimate figure of how much you wanted your salary to be. Give a wide range.
Say yes. It would also be a good idea to state some situations where you have
showed that you are indeed a team player. Let them know that they you can work
with other people for the betterment of the company.
Do not give out a specific length of time. Say something like, “I’d like to stay with
this company for a long time”. Or something like “As long as the company feel that I
am giving them good service”.
12. Have you ever had to fire anyone? How did you feel about that?
Answer this question honestly. You should convey the idea that you know how that
you should put the company on top of your priority list than personal favors.
You should keep your answer to this question short and precise. Convey that you
always put your work first. Let them know how your work philosophy can help their
organization improve.
Answer this question truthfully. Do not explain why you were asked to leave unless
they questioned you about that. Be brief and honest. Again, do not talk about
negative things about your previous company, superiors or co-workers.
In answering this question, state what you have to offer to the company. Show them
that you can be a real asset to them. It is not a good idea to compare yourself to
other applicants who are vying for the same position.
ADO.NET
System.Data.ODBC.
2.) How many objects does ADO.net have and what are they?
• Connection
• Adapter
• Command
• Reader
• Dataset.
Execute non Query is used to execute more than one command at the time (it is used for
insert ,delete ,update) orthis method is invoked whenever DMLcommands has been
excecuted
5.)What is @@rowcount and with small code snippet explain the usage?
@@rowcount gives the number of rows given as an result of previous query ran. Create
procedure get_emp_count ( @emp_id int) As Select * from emp where emp_id
=@emp_id If @@rowcount = 0 Begin Select 'no rows with emp_id= ' Select @emp_id
End
no default provider
7.)what is data access layer?
Data Access layer is actually a part of Architecture layer. It has 2 tier,3 tier or N tier
Layer. Generally we use 3 tier Layer 1) Presentation layer,Business Logic layer and then
Data Access Layer. Data Access layer is a medium to talk between database and
Business Logic layer. It helps to maintain flexibility,resuablity and even secuity also. In
security SQL Injection can be stopped with 3 iter Archietcture.
SQL NATIVE CLIENT is a Provider used to Connect with the SQL Server database
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license
purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like
Oracle, DB2, Microsoft Access and Informix. OLE-DB.NET is a .NET layer on top of the
OLE layer, so it’s not as fastest and efficient as SqlServer.NET.
ASP.Net - FAQ
1.) What are the different types of caching?
2.) What are the two main keywords used for authorization?
3.) How many types of Authentication modes available and what are they?
• Windows
• Passport
• Form
Server side code will process at server side & it will send the result to client. Client side
code (javascript) will execute only at client side
C# - FAQ
The Answer of the question as follows.A catch block that catches the exception of type
System.Exception. can also omit the parameter data type in this case and just write
catch {}.
The data value may not be changed. Note: The variable value may be changed, but the
original immutable data value was discarded and a new data value was created in
memory.
A catch block that catches the exception of type System.Exception. You can also omit
the parameter data type in this case and just write catch {}.
1.) How many views available in list view control and what are they?
4 views…
The preserve keyword helps to prevent data in an array from being lost.
System.Object
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 view we can write the
code like template column item template etc this will not be done in datagrid
XML serialization has some limitations. It converts public property values and fields, but
does not encode type information. Also it does not encode private properties and fields,
which requires binary serialization. Any class to be serialized to XML must have a public,
parameterless constructor. One advantage of XML serialization is that the serialized
data, being XML, rarely has any problems passing over networks and through security
measures, such as firewalls, that might be unhappy with a binary data stream. For this
reason, XML serialization is used by .Net Web services. Another advantage is that XML
serialization is not platform-specific. In other words, you do not have to have .Net or
Windows on both ends of the process.
9.) What is the difference between string class and stringbuilder class?
string class in immutable. Immutable is nothing but the value assigned to string cannot
be changed. Stringbuilder class is mutable. mutable is nothing but the value assigned to
stringbuilder can be changed.
when you want to use your application should run in differnet language like you have
developed the application for english and should also run in dutch, french, japanese etc.,
then through globalization you can set lacal and culture for the each language in
seperate folder. So that when the application will run for a specific region it will be show
the content in same language.
As you all know that in .net there are different compilers like for c#-csc,vb-vbc etc after
your code is complied it will convert to MSIL code which is independent this MSIL code
will goes to CLR & this CLR is platform dependent i.e for unix platform you should have
unix type of CLR ,for windows like the same so we can say that .net code is platform
independent
As java is a Partially Object Oriented language, and it does not support the multiple
inheritance concepts, it creates problem for the developers. To over come this situation
JAVA provides Interface concept for multiple inheritance.
The meaning of Polymorphism is something like one name many forms. Polymorphism
enables one entity to be used as general category for different types of actions. The
specific action is determined by the exact nature of the situation. The concept of
polymorphism can be explained as “one interface, multiple methods”.
Inheritance is the process of basing one class on another. In this process, a base class
provides methods, properties, and other members to a derived class. The advantage of
inheritance is that you can write and maintain code once it is in the base class and reuse
it over and over in the derived classes. But the main draw back of Java is it doesn’t
support multiple Inheritances; hence to over come this draw back Java provides us the
Interface concept.
The language, which obeys all the basic principles of Object Oriented Programming,
which are Encapsulation, Inheritance and Polymorphism, is generally known as Object
Oriented Programming Language. Languages like c++ and java are some well-known
Object Oriented Programming Languages.
Encapsulation is a process of binding or wrapping the data and the codes that operates
on the data into a single entity. This keeps the data safe from outside interface and
misuse.
The answer to this question is certainly no. The reason behind this is JAVA does not
obey the OOPs concept purely. Certain concepts like Operator over loading and Multiple
Inheritance are not supported by JAVA. Hence JAVA is known as Partially Object
Oriented Programming Language.
The DOM specifies interfaces, which may be used to manage XML or HTML documents.
It is important to realize that these interfaces are an abstraction they are a means of
specifying a way to access and manipulate an application’s internal representation of a
document. Interfaces do not imply a particular concrete implementation. Each DOM
application is free to maintain documents in any convenient representation, as long as
the interfaces shown in this specification are supported.
• XML was designed to describe data and to focus on what data is. HTML was
designed to display data and to focus on how data looks . HTML is about
displaying information, while XML is about describing information.
• The tags used to mark up HTML documents and the structures of HTML
documents are predefined. · XML allows the author to define his own tags and
his own document structure.
3.) What are the services that should not be used in a Clustered Environment?
A) File Services
B) Time services
Ans: D)
4.) The process of propagating the changes in the properties of a server group
during runtime to all the associated clones is called?
A) Ruther’s Effect.
B) Simpson’s Effect.
C) Ripple Effect.
Ans: C)
Ans: A)
A Document Type Definition (DTD) is a set of syntax rules for tags. It tells about what
tags can use in a document, what order they should appear in, which tags can appear
inside other ones, which tags have attributes, and so on.
The ‘XML’ stands dor Xtensible Markup Language’.It is used to create and define own
tags and attributes.
9.) Give a few examples of types of applications that can benefit from using XML?
There are literally thousands of applications that can benefit from XML technologies. The
point of this question is not to have the candidate rattle off a laundry list of projects that
they have worked on, but, rather, to allow the candidate to explain the rationale for
choosing XML by citing a few real world examples. For instance, one appropriate answer
is that XML allows content management systems to store documents independently of
their format, which thereby reduces data redundancy. Another answer relates to B2B
exchanges or supply chain management systems. In these instances, XML provides a
mechanism for multiple companies to exchange data according to an agreed upon set of
rules. A third common response involves wireless applications that require WML to
render data on hand held devices
10.) When constructing an XML DTD, how do you create an external entity
reference in an attribute value?
when using SGML, XML DTDs don't support defining external entity references in
attribute values. It's more important for the candidate to respond to this question in a
logical way than than the candidate know the somewhat obscure answer.
11.) How would you build a search engine for large volumes of XML data?
The way candidates answer this question may provide insight into their view of XML
data. For those who view XML primarily as a way to denote structure for text files, a
common answer is to build a full-text search and handle the data similarly to the way
Internet portals handle HTML pages. Others consider XML as a standard way of
transferring structured data between disparate systems. These candidates often
describe some scheme of importing XML into a relational or object database and relying
on the database's engine for searching. Lastly, candidates that have worked with
vendors specializing in this area often say that the best way the handle this situation is to
use a third party software package optimized for XML data.
The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the
exchange of information in distributed computing environments. SOAP consists of three
components: an envelope, a set of encoding rules, and a convention for representing
remote procedure calls. Unless experience with SOAP is a direct requirement for the
open position, knowing the specifics of the protocol, or how it can be used in conjunction
with HTTP, is not as important as identifying it as a natural application of XML.
13.) What are the rules for making a tag name in XML?