Professional Documents
Culture Documents
Imp Questions On WT PDF
Imp Questions On WT PDF
9. What is Servlet?
A servlet is a small Java program that runs within a Web server. Servlets receive and
respond to requests from Web clients, usually across HTTP
10. How is Servlet Different from JSP?
If you are a programmer or a web designer you will agree with me that not every
programmer is a good designer and not every good designer is a good programmer. This
is the exact problem posed by Java Servlets. Which means Java Servlets required the Java
MissionMca.com 1
programmer to know the designing skills because the Java Servlets did not separate the
Programming logic from the presentation layer.
MissionMca.com 2
1. javax.servlet.Servlet
2. javax.servlet.http
The javax.servlet.Servlet package contains the generic interfaces and Classes that are
implemented and extended by all Servlets.
The javax.servlet.http package contains the Classes that are extended when
creating HTTP-specific Servlets.
22. How is JSP different from Servlet? Why is the need for JSP?
If you are a programmer or a web designer you will agree with me that not every
programmer is a good designer and not every good designer is a good programmer.
This is the exact problem posed by Java Servlets. Which means Java Servlets required
the Java programmer to know the designing skills because the Java Servlets did not
separate the Programming logic from the presentation layer.
Therefore there was a need to separate the design aspects from the Core Java
programmers. This was the reason why, JSP was introduced.
23. What are JSP development Model?
JSP provides a declarative, presentation-centric method of developing servlets. JSP
specification itself is defined as a standard extension on top the Servlet API. The
early JSP specifications advocated two philosophical development models:
• Model 1 architecture: is suitable for simple applications
• Model 2 architecture: is a server-side implementation of the
popular Model/View/Controller design pattern.
MissionMca.com 3
page may need.
Declarations are found within the <%! ... %> tag.
27. What is Expression?
The results of evaluating the expression are converted to a
string and directly included within the output page.
JSP expressions begin within <%= ... %> tags and do not include
semicolons:
<%= fooVariable %>
MissionMca.com 4
SOA design principles are used during the phases of systems
development and integration.
MissionMca.com 5
System.CodeDom, System.Collections, System.Diagnostics, System.Globalization,
System.IO, System.Resources and System.Text
MissionMca.com 6
3. Inheritance is the process by which one object can acquir the properties of
another object. This is important because it supports the concept of hierarchical
classification.
48. What are basic data types supported by C#?
Integers, Floating-Point, The decimal Type, Characters, The bool Type
49. What are different Control Structure in C#
There are three categories of program control statements: selection statements, which are
the if and the switch; iteration statements, which consist of the for, while, do-while,
and foreach loops; and jump statements, which include break, continue, goto, return,
and throw.
50. What are different operators Supported by C#?
Unary, Multiplicative, Additive, Shift, Relational, Equality, Logical AND, Logical XOR,
Logical OR, Conditional AND, Conditional OR, Null Coalescing, Ternary, Assignment
51. Explain reference data types in C#
In contrast to value types, the value of a reference types is allocated on the heap. Another
name for a reference type, that you might be more familiar with, is an object. Reference
types stores the reference to the data, unlike value types, that stores the value.
52. What is Jagged Array?
A jagged array is an array whose elements are arrays. The elements of a jagged array can
be of different dimensions and sizes. A jagged array is sometimes called an “array of
arrays.” The following examples show how to declare, initialize, and access jagged
arrays.
53. Explain Exception handling mechanisms in C#?
C# exception handling is managed via four keywords: try, catch, throw, and finally
Program statements that you want to monitor for exception are contained within a try
block. If an exception occurs within th try block, it is thrown. Your code can catch
this exception using catch and handle it in some rational manner. System-generate
exceptions are automatically thrown by the C# runtime system. To manually throw an
exception, use the keyword throw.
54. What is Generics?
Generics introduce to the .NET Framework the concept of type parameters, which make
it possible to design classes and methods that defer the specification of one or more types
until the class or method is declared and instantiated by client code.
55. Explain File Handling in C#?
Data is stored in two ways, persistent and non-persistent manner. When you open a
file for reading or writing, it becomes stream. Stream: Stream is a sequence of bytes
traveling from a source to a destination over a communication path. The two basic
streams are input and output streams. Input stream is used to read and output stream is
used to write. The System.IO namespace includes various classes for file handling.
56. What are various commonly used classes for file handling?
MissionMca.com 7
57. What are the types of polymorphism
There are two types of polymorphism:
1. Compile time polymorphism
2. Run time polymorphism.
58. What is are steps to deals with database programming
MissionMca.com 8
59. What are ADO.NET Data Components
Data Connection, DataSet, DataView, Data Adapters, Data Commands
60. Define ASP.NET?
ASP.NET is a Web application framework developed and marketed by Microsoft to
allow programmers to build dynamic web sites, web applications and web services.
MissionMca.com 9
• XML was designed to carry data, not to display data.
• XML tags are not predefined. You must define your own tags.
• XML is designed to be self-descriptive.
• XML is a W3C Recommendation.
MissionMca.com 10
71. What is XSLT?
XSLT(Extensible Stylesheet Language Transformation) is a language for
transforming XML documents into XHTML documents or to other XML documents.
72. What is SAX?
SAX (Simple API for XML) is a serial access parser API for XML.
SAX provides a mechanism for reading data from an XML
document. It is a popular alternative to the Document Object Model
(DOM).
73. What is DOM
The DOM is a W3C (World Wide Web Consortium) standard. The DOM defines a
standard for accessing documents like XML and HTML:
“The W3C Document Object Model (DOM) is a platform and
language-neutral interface that allows programs and scripts to
dynamically access and update the content, structure, and style of
a document.”
The DOM is separated into 3 different parts / levels:
• Core DOM - standard model for any structured document
• XML DOM - standard model for XML documents
• HTML DOM - standard model for HTML documents
BEST OF LUCK!!
MissionMca.com 11