Escolar Documentos
Profissional Documentos
Cultura Documentos
SECTION 1
Q1. Define HTML
Ans.
HTML is the standard markup language for creating Web pages.
The history of ecommerce begins with the first ever online sale: on the August 11, 1994 a
man sold a CD by the band Sting to his friend through his website NetMarket, an
American retail platform. This is the first example of a consumer purchasing a product
from a business through the World Wide Web—or “ecommerce” as we commonly know it
today.
Ans.
Stands for "Relational Database Management System." An RDBMS is a DBMS designed specifically
for relational databases. Therefore, RDBMSes are a subset of DBMSes.
A relational database refers to a databasethat stores data in a structured format,
using rows and columns. This makes it easy to locate and access specific values within the database.
It is "relational" because the values within each table are related to each other. Tables may also be
related to other tables. The relational structure makes it possible to run queries across multiple
tables at once.
While a relational database describes the type of database an RDMBS manages, the RDBMS refers
to the database program itself. It is the software that executes queries on the data, including
adding, updating, and searching for values. An RDBMS may also provide a visual representation of
the data. For example, it may display data in a tables like a spreadsheet, allowing you to view and
even edit individual values in the table. Some RDMBS programs allow you to create forms that can
streamline entering, editing, and deleting data.
Most well known DBMS applications fall into the RDBMS category. Examples include Oracle
Database, MySQL, Microsoft SQL Server, and IBM DB2. Some of these programs support non-
relational databases, but they are primarily used for relational database management.
Note that the query string (name/value pairs) is sent in the URL of a GET request:
/test/demo_form.php?name1=value1&name2=value2
The data sent to the server with POST is stored in the request body of the HTTP request:
SECTION B
Q1. Define and discuss about following:
Ans.
HTTP –
HTTP (Hypertext Transfer Protocol) is the set of rules for transferring files (text, graphic
images, sound, video, and other multimedia files) on the World Wide Web. As soon as a
Web user opens their Web browser, the user is indirectly making use of HTTP. HTTP is
an application protocol that runs on top of the TCP/IP suite of protocols (the foundation
protocols for the Internet).
HTTP concepts include (as the Hypertext part of the name implies) the idea that files can
contain references to other files whose selection will elicit additional transfer requests.
Any Web servermachine contains, in addition to the Web page files it can serve, an
HTTP daemon, a program that is designed to wait for HTTP requests and handle them
when they arrive. Your Web browseris an HTTP client, sending requests to server
machines. When the browser user enters file requests by either "opening" a Web file
(typing in a Uniform Resource Locator or URL) or clicking on a hypertext link, the browser
builds an HTTP request and sends it to the Internet Protocol address (IP address)
indicated by the URL. The HTTP daemon in the destination server machine receives the
request and sends back the requested file or files associated with the request. (A Web
page often consists of more than one file.)
IMAP
IMAP (Internet Message Access Protocol) is a standard email protocol that stores email
messages on a mail server, but allows the end user to view and manipulate the messages
as though they were stored locally on the end user's computing device(s). This allows
users to organize messages into folders, have multiple client applications know which
messages have been read, flag messages for urgency or follow-up and save draft
messages on the server.
IMAP can be contrasted with another client/server email protocol, Post Office Protocol 3
(POP3). With POP3, mail is saved for the end user in a single mailbox on the server and
moved to the end user's device when the mail client opens. While POP3 can be thought of
as a "store-and-forward" service, IMAP can be thought of as a remote file server.
Most implementations of IMAP support multiple logins; this allows the end user to
simultaneously connect to the email server with different devices. For example, the end
user could connect to the mail server with his Outlook iPhone app and his Outlook
desktop client at the same time. The details for how to handle multiple connections are not
specified by the protocol but are instead left to the developers of the mail client.
Even though IMAP has an authentication mechanism, the authentication process can
easily be circumvented by anyone who knows how to steal a password by using a protocol
analyzer because the client’s username and password are transmitted as clear text. In
an Exchange Server environment, administrators can work around this security flaw by
using Secure Sockets Layer (SSL) encryption for IMAP.
Java Servlets are programs that run on a Web or Application server and act as a middle layer
between a request coming from a Web browser or other HTTP client and databases or applications on
the HTTP server.
Using Servlets, you can collect input from users through web page forms, present records from a
database or another source, and create web pages dynamically.
JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content
which helps developers insert java code in HTML pages by making use of special JSP tags, most of
which start with <% and end with %>.
JSP are webpages similar to aspx/php pages which run at server side. Javascript or Html code in JSP
pages runs at client side.
Key Differences :
Ans.
ASP.NET life cycle specifies, how:
User makes a request for accessing application resource, a page. Browser sends this request to
the web server.
A unified pipeline receives the first request and the following events take place:
Response objects are created. The application objects such as HttpContext, HttpRequest and
HttpResponse are created and initialized.
The request is processed by the HttpApplication class. Different events are raised by this class
for processing the request.
Q4. Discuss event handling mechanism of JavaScript using an example.
Ans
JavaScript's interaction with HTML is handled through events that occur when the user or
the browser manipulates a page.
When the page loads, it is called an event. When the user clicks a button, that click too
is an event. Other examples include events like pressing any key, closing a window,
resizing a window, etc.
Developers can use these events to execute JavaScript coded responses, which cause
buttons to close windows, messages to be displayed to users, data to be validated, and
virtually any other type of response imaginable.
Events are a part of the Document Object Model (DOM) Level 3 and every HTML element
contains a set of events which can trigger JavaScript Code.
<html>
<head>
<!--
function sayHello() {
alert("Hello World")
//-->
</script>
</head>
<body>
<form>
<input type = "button" onclick = "sayHello()" value = "Say Hello" />
</form>
</body>
</html>
<html>
<head>
<!--
function validation() {
.........
//-->
</script>
</head>
<body>
.......
</form>
</body>
</html>
<html>
<head>
<!--
function over() {
function out() {
//-->
</script>
</head>
<body>
</div>
</body>
</html>