You are on page 1of 18

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

1) What is include directive? The <%@ include %> directive inserts a file of text or code in a JSP file at translation time, when the JSP file is compiled. When you use the <%@ include %> directive, the include process is static. A static include means that the text of the included file is added to the JSP file. The included file can be a JSP file, HTML file, or text file. 2) What is a WebService? A Web service is a software system designed to support interoperable machineto-machine interaction over a network. It has an interface described in a machine-processable format (specifically, Web Service Definition Language, or WSDL). 3) What do you mean by Bean Scope? Bean Scope typically holds beans and other objects that need to be available in the different components of a web application. Ex: Request ,Session, Application scopes. 4) What is domain object model? Domain object model is about the business object and should belong in the business-logic tier. It contains the business data and business logic associated with the specific business object. 5)What is navigation object? A navigation object is a collection of links that will form all or part of the navigation column on the left side of your Widget page. The navigation object allows you to link not only your own pages, but also pages from elsewhere on the college's site and elsewhere on the Web. 6) What is view object? A view object is a model object used specifically in the presentation tier. It contains the data that must display in the view layer and the logic to validate user input, handle events, and interact with the business-logic tier. The backing bean is the view object in a JSF-based application. Backing bean and view object are interchangeable terms.
1

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

7) What is managed bean? Java Bean objects managed by a JSF implementation are called managed beans. A managed bean describes how a bean is created and managed. It has nothing to do with the bean's functionalities. 8) What are the advantages of JSF? Provides a rich architecture for managing component state, processing component data, validating user input, and handling events. Robust event handling mechanism. Events easily tied to server-side code. 9) What is the HTML for referring to an external style sheet? <html> <head> <link rel="stylesheet" type="text/css" href="test.css" /> </head> <body> <h3> A White Header </h3> <p> This paragraph has a blue font. The background color of this page is gray because we changed it with CSS! </p> </body> </html> 10) Which HTML tag is used to define internal style sheet? When using internal CSS, you must add a new tag, <style>, inside the <head> tag. The HTML code below contains an example of <style>'s usage. <html> <head> <style type="text/css"> </style> </head> <body> <p>Your page's content!</p> </body> </html> 11) What is the correct java script syntax to write hello world ?

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

<html> <body> <script type="text/JavaScript"> document.write("Hello World!") </script> </body> </html> 12) Which elements are mandatory in XHTML Document? The following are Mandatory XHTML Elements An XHTML document must have a DOCTYPE declaration. The html, head, title, and body elements must also be present.

13) How to apply style to several specific element types? <html> <head> <style type="text/css"> p {color: white; } body {background-color: black; } </style> </head> <body> <p>White text on a black background!</p> </body> </html> 14) What does ID selector do? CSS allows you to specify your own selectors called "id" and "class. The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with#". Example #para1 { text-align: center; color: red; } The class Selector
3

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same class. The class selector uses the HTML class attribute, and is defined with a "." 15) What is Local Host? "Localhost" refers to the local computer that a program is running on. For example, if you are running a Web browser on your computer, your computer is considered to be the "localhost." OR In computer networking, localhost (meaning this computer) is the standard hostname given to the address of the loopback network interface. In TCP/IP networks, localhost is the name used to describe the local computer address. Localhost always translates to the loopback IP address 127.0.0.1. 16) Define a Cookie? A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is used for an origin website to send state information to a user's browser and for the browser to return the state information to the origin site. OR Cookies are small files that websites put on your computer hard disk drive when you first visit. A message given to a Web browser by a Web server. The browser stores the message in a text file. The message is then sent back to the server each time the browser requests a page from the server. 17) What is CGI? The Common Gateway Interface (CGI) is a specification for transferring information between a World Wide Web server and a CGI program. A CGI program is any program designed to accept and return data that conforms to the CGI specification. The program could be written in any programming language, including C, Perl, Java, or Visual Basic.
4

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

18) Define Schema? An XML Schema describes the structure of an XML document. An XML Schema defines the elements, attributes, and data types .An XML Schema is composed of the top-level schema element. The schema element definition must include the following namespace: http://www.w3.org/2001/XMLSchema 19) What is a Name Space? A namespace is a set of names in which all names are unique. XML Namespaces provide a method to avoid element name conflicts. XML namespaces are used for providing uniquely named elements and attributes in an XML document. An XML instance may contain element or attribute names from more than one XML vocabulary. If each vocabulary is given a namespace, the ambiguity between identically named elements or attributes can be resolved. 20) What is Streaming? "Streaming" is a generic term. It basically means that the data being transferred can be used immediately, without having to download the "thing" in it's entirety before it can be used. 21) What is a WebServer? A web server is a piece of software that enables a website to be viewed using HTTP. Web servers are computers that deliver (serves up) Web pages. Every Web server has an IP address and possibly a domain name. 22)What is TDC? TDC means Tabular Data Control ,It is an ActiveX control which is included in the HTML document through OBJECT tag.Using this control,it is possible to extract content from a text file into an HTML document.

23)What is an Event?

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

An action or occurrence detected by a program. Events can be user actions, such as clicking a mouse button or pressing a key, or system occurrences, such as running out of memory. Most modern applications, particularly those that run in Macintosh and Windows environments, are said to be event-driven, because they are designed to respond to events. 24) What is Scope Rules? Scope refers to where variables and functions are accessible, and in what context it is being executed. Basically, a variable or function can be defined in a global or local scope. All Local Variables will be given Higher priority in comparison with Global Variables. 25) What is a Filter? A filter is a computer program or routine to process a data stream.Filters and Transitions allow multimedia style effects in plain HTML web pages.They can be applied to any HTML control such as DIV tags,form fields or images.They are included in CSS filter property. 26) Explain positioning Elements? The CSS positioning properties allow you to position an element. It can also place an element behind another, and specify what should happen when an element's content is too big. Elements can be positioned using the top, bottom, left, and right properties. However, these properties will not work unless the position property is set first. They also work differently depending on the positioning method. There are four different positioning methods. Static Positioning HTML elements are positioned static by default. A static positioned element is always positioned according to the normal flow of the page.Static positioned elements are not affected by the top, bottom, left, and right properties.

Fixed Positioning:

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

An element with fixed position is positioned relative to the browser window. It will not move even if the window is scrolled: Relative Positioning: A relative positioned element is positioned relative to its normal position. Absolute Positioning An absolute position element is positioned relative to the first parent element that has a position other than static. If no such element is found, the containing block is <html>: 27) Write about Text Fonts tag? The <font> tag is used to add style, size, and color to the text on your site. Use the size, color, and face attributes to customize your fonts. <font size="1"> Font size 1 </font> <font size="4" color="blue"> Font size 4, blue color </font> 29) What are the protocols used in JavaMail? There are basically four protocols that are used in JavaMail as given below

SMTP(Simple Mail Transfer Protocol) POP(Post Office Protocol) IMAP(Internet Message Access Protocol) MIME(Multipurpose Internet Mail Extensions.)

You will also run across NNTP and some others. 30) What is ServerSideIncludes (SSI)? Abbreviated SSI. A type of HTML comment that directs the Web server to dynamically generate data for the Web page whenever it is requested. The basic format for SSIs are: <!--#command tag="value"> Or

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the Web. The most frequent use of SSI is to include the contents of one or more files into a web page on a web server. For example, a web page containing a daily quotation could include the quotation by placing the following code into the file of the web page: <!--#include virtual="../quote.txt" --> 31)What is Sentinel Value? In computer programming, a sentinel value (also referred to as a flag value, trip value, rogue value, signal value, or dummy data)[1] is a special value whose presence guarantees termination of a loop that processes structured (especially sequential) data. The sentinel value makes it possible to detect the end of the data when no other means to do so (such as an explicit size indication) is provided. 32) Define WSDL? The Web Services Description Language (WSDL, pronounced 'wiz-dul') is an XML-based language that is used for describing the functionality offered by a Web service. A WSDL description of a web service (also referred to as a WSDL file) provides a machine-readable description of how the service can be called, what parameters it expects and what data structures it returns. It thus serves a roughly similar purpose as a Method signature in a programming language. 33) What is Step wise Refinement? StepwiseRefinement is a relatively old technique of SoftwareDesign that has been successfully used in a wide range of StructuredProgramming and ModularProgramming environments and languages. It is the procedural (stepby-step) form of SeparationOfConcerns and has what some may call a fractal nature of task division. 34)What is join method? Definition and Usage The join() method joins the elements of an array into a string, and returns the string.
8

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

The elements will be separated by a specified separator. The default separator is comma (,). var fruits = ["Banana", "Orange", "Apple", "Mango"]; var energy = fruits.join(" and "); OUTPUT: Banana and Orange and Apple and Mango 35) What is Short Circuit Evaluation? Short Circuit Evaluation Short circuit evaluation refers to the condition where an expression is not longer evaluated since further evaluation cannot change the value of the expression. For example, consider this code: if ( (1 == 0) && foobar() ) { // do something }

In this scenario, foobar() is never called. Why? It does not matter whether or not foobar() returns nonzero, since any expression "false AND x" always evaluates to false, no matter what the value of x. This can be a problem in cases where foobar() is expected to change some variables. Also consider another example: if ( (1 == 1) || foobar() ) { // do something } In this scenario, foobar() is never called, since "1 == 1" is alway true, the other side of the OR expression needs not to be evaluated for the if body to be executed. You can think of "Short circuit evaluation" as both an optimization made by the compiler, and a documented side-effect. 36) Define WSDL? The Web Services Description Language (WSDL, pronounced 'wiz-dul') is an XML-based language that is used for describing the functionality offered by a
9

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

Web service. A WSDL description of a web service (also referred to as a WSDL file) provides a machine-readable description of how the service can be called, what parameters it expects and what data structures it returns. It thus serves a roughly similar purpose as a Method signature in a programming language. 37) Define post? In computing, POST is one of many request methods supported by the HTTP protocol used by the World Wide Web. The POST request method is used when the client needs to send data to the server as part of the request, such as when uploading a file or submitting a completed form. 38) What is a DNS Server? The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. A Domain Name Service translates queries for domain names (which are meaningful to humans) into IP addresses for the purpose of locating computer services and devices worldwide. 39) What is flipV filter? A visual filter for vertical mirror effects. Availability: JScript - 3.0 Internet Explorer - 4.0
Deprecated

This visual filter is used for creating symmetrically mirrored copies of an element flipped on the vertical axis. There are no properties to use with it. 40) What is window object? The Window object is the top level object in JavaScript, and contains in itself several other objects, such as "document", "history" etc. The window object represents an open window in a browser. If a document contain frames (<frame> or <iframe> tags), the browser creates one window object for the HTML document, and one additional window object for each frame.
10

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

41) What is on mouse event? An event is something that happens, e.g. a mouse click on a button, an image that has loaded. Events usually occur as a result of human interaction with the browser,the following are various mouse events onkeypress Fires when the user presses a key on the associated element (ie: document, DIV etc). A combination of onkeydown and onkeyup. onkeydown Fires when the user depresses a key (but not yet released) on the associated element. onkeyup Fires when the user releases a key after having depressed it on the associated element onclick Fires when the user clicks on an element. A combination of onmousedown and onmouseup. onmousedown FIres when the user holds the mouse down over an element. onmouseup Fires when the user releases the mouse after having hold it down over the element ondblclick Fires when the user double clicks the mouse over an element. 42) What is recordset? A recordset is a data structure that consists of a group of database records, and can either come from a base table or as the result of a query to the table. The concept is common to a number of platforms, notably Microsoft's Data Access Objects (DAO) and ActiveX Data Objects (ADO). The Recordset object contains a Fields collection, and a Properties collection. At any time, the Recordset object refers to only a single record within the set as the current record.

43) Define data source object?

11

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

Short for Data Source Object, DSO is an Internet Explorer 4.0 and above ActiveX control that enables a web page to take information from an external XML page and display it on the current page. 44) What are DOM methods? Some DOM methods:

x.getElementById(id) - get the element with a specified id x.getElementsByTagName(name) - get all elements with a specified tag name x.appendChild(node) - insert a child node to x x.removeChild(node) - remove a child node from x

Note: In the list above, x is a node object (HTML element). 45) Write about Special Characters in XHTML?

&nbsp; to force the browser to insert extra blank spaces. This can also be used to hold phrases together when you want to be sure that they are all on the same line. Play with making this page narrower & wider to see how the previous sentence is affected. View source to see where the &nbsp;s are in it. You will see that &nbsp;s can also be useful when making tables.

&amp; to show a & (ampersand) or &#38; &lt; to show a < (less-than sign) or &#60; &gt; to show a > (greater-than sign) or &#62;

46) Explain about internal linking? An internal link allows you to link to another section on the same web page, so it basically scrolls the page up or down to the desired location. This is helpful to the user to quickly jump to the information he/she is looking for. 47) Explain parseInt() method? This method is used to get the primitive data type of a certain String. parseXxx() is a static method and can have one argument or two. Syntax:All the variant of this method are given below: static int parseInt(String s)
12

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

static int parseInt(String s, int radix)


parseInt(String s): This returns an integer (decimal only). parseInt(int i): This returns an integer, given a string representation of decimal, binary, octal, or hexadecimal (radix equals 10, 2, 8, or 16 respectively) numbers as input.

48) Explain new operator? The new operator can be used to create an instance of a user-defined object type or of one of the built-in object types that has a constructor function. To create a user-defined object type you must first define it by writing a function that specifies its name, properties and methods. For example, the following function creates an object for books with properties for title, category and author: 49) write about index of (substring,index) method? indexOf has two arguments, with the second one being optional: 1. SearchString - What you would like to search for. 2. Offset (optional) - How far into the string you would like the search to begin. If you want to search the whole string, omit this argument. 50) Explain about inline styles? An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly! To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph: <p style="color:sienna;margin-left:20px">This is a paragraph.</p> 51) Explain chroma filter? A visual filter for chroma key effects. This visual filter provides a way to define a particular color as being transparent. This is sometimes called chroma keying (a technique much used in the television industry). The Color property defines a hex triplet value which is deemed to be transparent for this element.
13

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

52) Explain recursion? Recursion is the process of defining something in terms of itself. As it relates to java programming, recursion is the attribute that allows a method to call itself. A method that calls itself is said to be recursive. The classic example of recursion is the computation of the factorial of a number 53) Explain get request? The request method is usually either "GET" or "POST". Basically if you fill in and submit a form on a web page it might generate a POST request (or it might be "GET"), whereas if you just click on a link, or activate one of your browser's "bookmarks" or "favourites", then the request method will always be "GET". 55) Define well formed xml document? A "Well Formed" XML document has correct XML syntax. The XML documents must have a root element

XML elements must have a closing tag XML tags are case sensitive XML elements must be properly nested XML attribute values must be quoted

56) Differences between jsp and servlet? A very basic difference:


Servlet is html in java JSP is java in html

Other diff are:

JSP is a webpage scripting language that can generate dynamic content while Servlets are Java programs that are already compiled which also creates dynamic web content Servlets run faster compared to JSP JSP can be compiled into Java Servlets Its easier to code in JSP than in Java Servlets In MVC, jsp act as a view and servlet act as a controller. JSP are generally preferred when there is not much processing of data required. But servlets are best for use when there is more processing and manipulation involved.
14

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

The advantage of JSP programming over servlets is that we can build custom tags which can directly call Java beans. There is no such facility in servlets. We can achieve functionality of JSP at client side by running JavaScript at client side. There are no such methods for servlets.

57) Different protocols in java mail? Before looking into the JavaMail API specifics, step back and take a look at the protocols used with the API. There are basically four that you'll come to know .

SMTP(Simple Mail Transfer Protocol) POP(Post Office Protocol.) IMAP(Internet Message Access Protocol) MIME(Multipurpose Internet Mail Extensions)

58) List out the uses of DHTML? DHTML allows authors to add effects to their pages that are otherwise difficult to achieve. For example, DHTML allows the page author to:

Animate text and images in their document, independently moving each element from any starting point to any ending point, following a predetermined path or one chosen by the user. Embed a ticker that automatically refreshes its content with the latest news, stock quotes, or other data. Use a form to capture user input, and then process and respond to that data without having to send data back to the server. Include rollover buttons or drop-down menus.

59) Define CSS? CSS Stands for "Cascading Style Sheet." Cascading style sheets are used to format the layout of Web pages.Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including plain XML, SVG and XUL. 61) List the differences between Client side scripting and Server side scripting?
15

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

Server side scripting is used when the users browser makes a request back to the server and the script creates the dynamic page based a number of conditions. Languages usually used are PHP or ASP. Client side scripting is used when all the code is already on the users browser and the page alters based on the users input. Language is usually JavaScript. 62) List the uses of Frames in HTML? With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. 63) what is DOM parser?

A program or module that checks a well-formed syntax and provides a capability to manipulate XML data elements.Navigate through the XML document ,extract or query data elements,Add/delete/modify data elements. Formally, XML DOM is a programming interface (i.e. an API) that you can use in programs for manipulating XML documents

64)Define ASP? Active Server Pages are HTML pages that contain embedded scripts. IIS (Internet Information Server) and third party providers offer server software that interpretsActiveServercode. ASP pages contain either server side or client side scripts which performs functions such as database access, page personalization, or interactive functions. Scripts act similar to CGI scripts. 65)What is JSP? Short for Java Server Page. A server-side technology, Java Server Pages are an extension to the Java servlet technology that was developed by Sun. JSPs have dynamic scripting capability that works in tandem with HTML code, separating the page logic from the static elements -- the actual design and display of the page -- to help make the HTML more functional(i.e. dynamic database queries). 66)Define DTD?
16

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference. 67)How do you invoke ONLOAD event? An onLoad event occurs when a window or image finishes loading. For windows, this Event Handler is specified in the <BODY> attribute of the window. In an image, the Event Handler will execute handler text when the image is loaded. For example:
<HTML> <HEAD> <TITLE>Example of onLoad Event Handler</TITLE> <SCRIPT> function hello() { alert("Hello there...\n\nThis is an example of onLoad."); } </SCRIPT> </HEAD> <BODY onLoad="hello()"> <H3>Example of onLoad Event Handler</H3> </BODY> </HTML>

68)Define Session tracking in ASP? Same techniques used in JSP i.e cookies, hidden form fields, sessions.url rewriting etc. 69)Define Plugin? In computing, a plug-in (or plugin) is a set of software components that adds specific abilities to a larger software application. If supported, plug-ins enable customizing the functionality of an application. For example, plug-ins are commonly used in web browsers to play video, scan for viruses, and display new file types. Well-known plug-ins examples include Adobe Flash Player, QuickTime, and Microsoft Silverlight. 70)What is SAX parser? SAX (Simple API for XML) is an event-based sequential access parser API developed by the XML-DEV mailing list for XML documents.[1] SAX provides a mechanism for reading data from an XML document that is an alternative to
17

WEB TECHNOLOGIES ONE MARKS BITS

K.V.S.S.RAMA KRISHNA DEPT OF CSE

that provided by the Document Object Model (DOM). Where the DOM operates on the document as a whole, SAX parsers operate on each piece of the XML document sequentially. 71)Define DHTML? DHTML stands for Dynamic HTML.DHTML is NOT a language or a web standard.To most people DHTML means the combination of HTML, JavaScript, DOM and CSS. "Dynamic HTML is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated." 72) Define frames in HTML? HTML frames allow authors to present documents in multiple views. Views may be independent windows or subwindows. Multiple views offer designers a way to keep certain information visible, while other views are scrolled or replaced. For instance, to use three frames: one for a static banner, one for a navigation menu, and one for a main view that can be scrolled though or replaced by clicking on an item in the navigation frame. 73) How do you write comments in Jscript? // This is a single-line comment. /* This is a multiline comment */

18

You might also like