Class 10 Computer Notes
Class 10 Computer Notes
Class 10 Computer Notes
1. URL
2. Blog
3. Blogger
4. Blogging
5. Newsgroup
6. Email
7. Email address
SERVER WEB SERVER
Any computer that is web server are computer that deliver webpage.
responsible for storing bulk they handle HTTP request.
data and process it as
requested by client
computers.
it manages network example.
resources such as sharing a http://www.edupillar.com
resources or storage
services provided: Services provided:
a) equipment/resourc a) serving web page
e sharing. b) running gateway program
b) Centralized file c) controlling Access to the server
saving for data d) monitoring and logging all Access.
sharing and e) server side scripting
returning output. Ser
c) Centralized virus ver
scanning .
d) Centralized backup
WEBSITE PORTAL
Collection of web page Content .collection of launch webpages or
pertaining to the Need and goal of array of web services like email,
the organization Owning the Search engine weather,gaming,
website. news etc
Website is generally linked to its It is an entry point or Gateway for
Own webpage. using Offered web services It
linked to many other Websites.
User can interact with website By User can enter the keywords or
clicking the links. Click on the link to search
Information of particular website.
There is no scope for interaction There is a large scope for
Between the user and the interaction between user and
website. website as information are not
stable
Static content is written via HTML It also contains dynamic
code in a webpage. code(code written in a scripting
language lie PHP, java etc.)
Elements of URL :
i. The type of protocol or server
ii. The name/address of the server on the internet
iii. The location of the file on the server.
The character based naming system by which servers are identified is also
known as domain name system (DNS).
Country abbreviation:
Australia au
Canada ca
Denmark dk
France fr
India in
Japan jp
New zealand nz
United kingdom uk
United states us
News group: A news group or forum is online community bulletin board, where users can
post messages, respond to posted message or just read them. Groups of related message are
known as threads.
Eg. Alt.tennis, alt.astrology,comp.language.c++etc.
Downloading:
Making the copy of requested web page or file or document on your local computer is
called Downloading.
Search Engines:
A search engine is a program that searches through a database of web pages for
particular information.
i. Instant Messaging(IM)
ii. ICQ(“I seek you”)
iii. IRC-internet Relay Chat
iv. Web based chat
E-mail:
It stands for electronic mail. It is the most widely used tool to send messages electronically on a network.
a. Username:the portion on the left of @ is user name. it can not have blanks.
b. Domain name for the host server: the portion on the right of @ identifies the server host on the network. It is
also called as e-mail server.
Advantage of e-mail:
i. Low cost
ii. Speed
iii. Waste reduction
iv. Ease of use
v. Record maintenance
vi. Patience
Limitation :
i. Hardware requirement
ii. Impermanent
iii. A hasty medium
iv. Hard to convey emotions.
Both CC and BCC forward a copy of the message to every one you have listed. The main difference is CC allows you
to send mail message to multiple recipients at the same time and all other recipient can view the mail recipitent.
Where as BCC allows the sender to send mail message to multiple recipients without letting them know that some
other persons also have received the same message.hence protect the privacy of your recipient and help reduce
spam.
Basically a protocol refers to standard set of rules used at each end of communication channel,
in order to properly transmit information.
The protocols mainly used with email accessing are IMAP,POP3,SMTP and HTTP.
i. IMAP (internet message access protocol): is a standard protocol for accessing e-mail
from local server. It is a client/server protocol in which e-mail is received and held for
the user by internet server.
This requires a small data transfer hence work well even over a slow connection such as
modem.
If user requests to read specific email message, then it will be downloaded from the server .
ii. POP3 protocol: the Post Office Protocol provides a simple ,standardized
way for users to access mailboxes and download messages to their
computers.
The user can choose to leave copies of his/her emails on the server as well. The
advantage is that once message are downloaded the user can cut the connection
and read email at own leisure without incurring further communication costs.
On other hand he/she might have transferred a lot of messages( including spam or
viruses) , which may prove dangerous for data on PC. This protocol receives email.
iii. SMTP protocol: the simple mail transfer protocol is used when you send
email to another email user( the recipient). The SMTP protocol is used by
Mail transfer Agent to deliver the sent email to the recipients mail server.
iv. HTTP: it is not a protocol dedicated for email communication but it can be
used fr accessing mailbox. Also called as web based email, this protocol
can be used to compose or retrieve email from an account. Eg. Hotmail,
Gmail,Ymail etc.
i. Areas of Application
ii. Advantage and disadvantage of video conferencing.(SEARCH ON
INTERNET)
I. Areas of application
II. Advantage and disadvantage of e-learning.(SEARCH ON INTERNET)
The following terms all refers to one form or another of electronic banking :
personal computer banking, internet banking , virtual banking , online banking,
home banking , remote electronic banking and phone banking.(SEARCH ON
INTERNET)
e-shoppping: the process of shopping done over the internet. Both products and
services can be purchased through online shopping.eg.
www.flipkart.com,www.myntra.com, www.amazon.com etc.
All post are listed together on a discussion board, which is viewable to all the
members of the group.
i. Features
ii. Advantages and disadvantage. .(SEARCH ON INTERNET)
This chapter is going to discuss the basics of databases and their functioning.
Database functioning:
database
End users
Application
programs
Advantages of Databases:
1. Databases reduce the data redundancy to a large extent.
Duplication of data is called Data Redundancy.
It stores all data at one place hence all application programs that
require this data can refer to the same central place.
This centralization makes sure that data remain consistent and
secure.
2. Databases can control data inconsistency to a large extent.
i. Inconsistent database provide incorrect or conflicting
information.
ii. Controlling redundancy , controls the inconsistency.
iii. If there are any redundancy retained in the database due to
some technical reasons .the database management system
ensures that any change made to either of the two entries is
automatically made to the other . this process is known as
propagating updates.
iv. Multiple mismatching copies of same data is known as Data
inconsistency.
3. Database facilitate sharing of data.
i. Individual pieces of data in the database can be shared among
several different user ,depending on their purpose .
Designing a databases:
Good database design is the keystone to creating a datasbase that does what
we want it to do effectively , accurately and effectively.
What facts you need to store about each subject(the field of table)
Table should not contain duplicate information and information should not
be duplicated between tables
Each table should contain information about the same subject and each field
contain individual facts about the table subject.
Step6: refine your design. Its time to study the design and detect any flaws
that might remain.
Step7: enter data and create other database object ,once you are satisfied
with table structure and meet design principles.
You can create any queries, forms, reports and data access pages.
Creating database:
Deciding Table content and Properties:
Decide the number of fields required, fields name, field type, field size ,
other properties and PRIMARY KEY.
1. Field name: is the label that tells what type of information is being stored in
this field.
The number of character that a field can store is called field length or field
width. There can be fixed length fields as well as Variable length fields.
a. Date [DATE]
b. Time [TIME]
c. Date/Time [TIMESTAMP]- combination of both time and date
3. Numeral Data Types:
Classified into two:
a. Whole-Number data types b. Fractional value data types
i. Tiny Integer[TINYINT] i. Float [FLOAT]
ii. Small Integer[SMALLINT] ii. Real [REAL]
iii. Integer [INT] iii. Double[DOUBLE]
iv. Big Integer [BIGINT] iv. Numeric[NUMERIC]
v.Decimal[DECIMAL]
Note:-
In all the fractional value data type we can set the field to accept a number upto
several decimal places by using Decimal Place property.
Field Properties:
a. Entry required
b. Length
c. Decimal Places
d. Default values
e. Format example
Introduction:
Tools that helps to organise information into documents
Inserting Images
Browser can display image file if they are GIF(graphic interchange format) or XBM( X
BitMap) or JPEG format.
Tag:<img src>
Attributes: src=” image file name”{URL of GIF or JPEG image that is to be inserted in the
document
height=” value”
width=” value”
title=” tooltip text” {title attribute is useful for referencing unlabled resource. Internet Explorer
can display alt text as tooltip text.}
Note:
Inline image means image display in line with the text.i.e the image is loaded separately and
placed into the text flow as if the image were some special character.
Centering an image:
Subscript :
Tag: <SUB>.........</SUB>
eg.H<sub>2</sub>O,NH<sub>4</sub>,CaCO<sub>3</sub>
Superscript:
Tag: <SUP>.........</SUP>
eg.(a+b)<sup>2</sup>=a<sup>2</sup>+2ab+b<sup>2</sup>
x<sup>2</sup>+y<sup>2</sup>=c
Linking:
Tag:
I. External link
I. External link:
I. <A name=”segment”>segment1</A>
significance of Linking:
Since two or more separated documents can be created and then linked with one another, it
makes the user able to go any of the desired documents with just a click. Further webpage
designer don't have to create a large document having all the information of these documents.
When a MAILTO capable browser sees the tag, it spwans a separate email form that the
user may fill out.this is than sent automatically to the email address specified in the link.
To send email to multiple people put all of the email address in the same link and
separate by commas.
To add subject add ?SUBJECT=”subject line for message” at the end of email address.
Eg: <body>
pacesa@gmail.com</A>
</body>
Tables:
The HTML table model allows you to arrange data-text,preformatted text,image, links, forms,
from fields, other tables etc. - into rows and columns of cells.
Table rows may be grouped into head(header), foot(footer), and body sections,(via the THEAD,
TFOOT and TBODY elements).
Table Attributes:
I. border=”value” {tells the table how large the border should be}
note:
frame attribute of <table> is always used with Border attribute. The frame attribute
defines position of the border.
IV. rules=”all/cols/groups/none/rows”
note:
the RULES attributes like FRAME , also works with the BORDER attributes, except
RULES dealswith the inside border edges.
note:
CELLPADDING gives the amount of space (or padding) between the cell border and the
cell contents.
VII. Align=”left/right/center” { aligns the complete table w.r.t the text in the browser}
VIII. BACKGROUND=” image.jpg” {the specified image is tiled to fill the background of the
table.}
IX. BGCOLOR=”color name” { specify the desired background color for the table”}
X. HEIGHT=”value”
The <TD>tag:
Attributes:
II. WIDTH=”value” {defines the width of a cell either in pixels or in percentage value of
table width.}
III. BACKGROUND=”image.jpg”
IV. BGCOLOR
Table header content is declared as header are displayed in a distinctive style e.g. boldfaced.
Attributes: it accepts the same attributes as the <TD>tag, except rowspan and colspan.
it is used to define a set of header rows.this tag is only allowed once in a table. The browser will
replicate these heading rows when the table is displayed or printed in multiple sections or pages.
It should be used in the begning.
Attributes:
i. Align=”left/center/right”
iii. Valign=”top/middle/bottom”
The <TFOOT> tag:it is use to define a set of footer row in a table. This tag is only allowed
once in a table.TFOOT must follow the THEAD and must precede the TBODY. Hence should
be used in the end.
The set of rows defined as table-footer by TFOOT will also be replicated on multiple pages and
will appear at the bottom.
Attributes:
i. Align
ii. Bgcolor
iii. Valign
The <TBODY>tag:
The tags <THEAD>,<TBODY>,<TFOOT> are used to divide an HTML table in sections ,
Where THEAD and TFOOT are used to define header and footer sections, the table body
section is defined using <TBODY>
Attributes:
i. Align
ii. Bgcolor
iii. Background=”image”
iv. Valign
Example code:
Code1: <html>
<head><title> table</title></head>
<body>
<table border="2" bordercolor="blue" frame="rhs" align="center" rule="groups"
background="yellow" cellspacing="4" cellpadding="5">
<TR>
<TD>roll no.</TD>
<TD>name</TD>
<TD>contact no.</TD>
</TR>
<TR>
<TD>1.</TD>
<TD>Harry</TD>
<TD>9876623451</TD>
</TR>
<TR>
<TD>2.</TD>
<TD>Sara</TD>
<TD>9867235436</TD>
</TR>
<TR>
<TD>3.</TD>
<TD>Denny</TD>
<TD>9834775768</TD>
</TR>
</table>
</body>
</Html>
Code :2
<html>
<head><title> table</title></head>
<body>
<table border="2" color="blue" frame="box" align="center" rule="groups"
background="sunset.jpg" cellspacing="4" cellpadding="5">
<A href="table3.html">click</A>
<caption>Student Information</caption>
<thead align="left" Valign="bottom" bgcolor="yellow">
<TR>
<TD>roll no.</TD>
<TD>name</TD>
<TD>contact no.</TD>
</TR>
</thead>
<tfoot align="left" Valign="middle" bgcolor="lime">
<TR>
<TD>student</TD>
<TD>data</TD>
<TD> DPS </TD>
</TR>
</tfoot>
<tbody background="sunset.jpg">
<TR>
<TD>1.</TD>
<TD>Harry</TD>
<TD>9876623451</TD>
</TR>
<TR>
<TD>2.</TD>
<TD>Sara</TD>
<TD>9867235436</TD>
</TR>
<TR>
<TD>3.</TD>
<TD>Denny</TD>
<TD>9834775768</TD>
</TR>
</tbody>
</table>
</body>
</Html>
Code:3
<html>
<head>
An HTML table with a table cell that spans two rows:
</head>
<table border="3" rules="all">
<tr>
<th>Month</th>
<th>Savings</th>
<th>Savings for holiday!</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
<td rowspan="2">$180</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
example for colspan:
<table border="4" rules="all">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
</tr>
<tr>
<td colspan="2">Sum: $200</td>
</tr>
</table>
</body>
</html>
Code:4
AIM: Design a web page to set up a internal and external link and save the
document as file1.html.
Create an external link with File2.html
Source Code:
<HTML>
<HEAD><TITLE> Linking </TITLE></HEAD>
<HR>
<BODY>
Index:
<A href="#introduction"> 1. Introduction</A> <BR>
<A href="#classification"> 2. classification of Virus</A><BR>
<A href="#preventive"> 3. Preventive measures</A> <BR>
<A href="#identification"> 4. Identifing the virus</A><BR>
<A href="#anti"> 5. anti-virus software</A>
<HR>
<A name="introduction"> <H3>Introduction:</H3> </A>
Virus are melicious program that infect the computer system. <BR>
Worms, Trojan, spyware etc. are the types of viruses<BR>
<BR>
Ch- 8 XML
INTRODUCTION:
The explosion of web created many opportunities and newer way of interaction-be it interaction among friends
or among teacher and student or among businesses and clients and so on.
Data was exchanged in one or the other way, especially business interaction were data being exchanged needed
proper descriptions.
In earlier days of web data sharing was done in a number of ways. One such data sharing technology was EDI-
electronic data exchange.
Although EDI provided accurate and secure data sharing but it required a specific type of network such as
point-to-point communication method or a VAN which made it costly and it had fixed business rule.
To remove/reduce the problems with EDI a new technology namely XML(eXtensible Markup language) was
developed. It could also address the problems faced by EDI.
What is Xml?
Xml is eXtensible markup language which allows to create application specific structured document by
allowing creation of new tags. These structured document can later be rendered(i.e presented in human-
understandable manner) in a different ways.
The eXtensible means you can extend XML’s specifications to define new markup language.XML is a cross-
platform , hardware and software independent markup language.
A markup language is a set of rules/tags that define the structure and format of text while presenting text. Some
markup languages are HTML,LaTex,MathML etc.
What is SGML?
XML’s ancestor is SGML(Standard Generalized MarkupLanguage), which is a system for defining new markup
language. A language that is created using SGML specifications is called SGML application. One such example
of SGML application is HTML because HTML is created using SGML specification.
A system that allows for defining new markup language is known as meta language. SGML and XML both can
be termed as meta language.
XML Vs SGML
XML SGML
1. It is based on SGML but did not It was the first generic markup language but
include complex and optional features complex and required overheads to use it.
of SGML.
2. XML retains the primary benefits of
SGML.i.e
XML Vs HTML
HTML XML
HTML document formats and displays web XML documents carry data along with their
pages data. description.
HTML tags are predefined. XML tags are not predefined.you can create
and define new tags as per your needs. (meta
(predefine markup language) language)
HTML tags may not have closing tag. XML tags must have a closing tag
HTML tags are not case-sensitive XML tags are case-sensitive
HTML documents are directly viewable in a XML documents can be viewed only if proper
browser. stylsheet file is also available along with
XMLfile.
XML Vs EDI
1. Lower cost(xml does not require costly technology like VAN as EDI requires.)
2. Customized Business Rules( xml enables data-storage in a structured format by allowing creation of
customized tags)
4. Platform Independent (xml is platform independent thus it allows businesses to transact with any other
business irrespective of their business platform)
Features of XML
2. XML does not do anything.To make it behave in a particular way, additional files such as CSS files
or XSL files are needed.
Working in XML:
Example: A company wants to get into hypermarket business on the lines of Big Bazaar of India or Wal-Mart of
USA. It plans to open numerous stores across the country. Data from different stores must be accessible through
various designated locations across the country.
The details of each product such as product’s id-code, its name, product’s description, its price ,its manufacturer
and available quantity in store must be accessible and available for further processing.
PRODUCTDATA
product
ProductID
ProductNAME
ProductDESC
ProductPRICE
ProductMANUFACTURER
ProductQUANTITY
XML code :
<PRODUCTDATA>
<PRODUCT>
<ProductID>P01</ProductID>
<ProductName> candlelamp</ProductName>
<ProductPRICE> 350.00</ProductPRICE>
<ProductQUANTITY> 80 </ProductQUANTITY>
</PRODUCT>
<PRODUCT>
<ProductID>P02</ProductID>
<ProductQUANTITY> 30 </ProductQUANTITY>
</PRODUCT>
</PRODUCTDATA>
2. a physical structure: defines what the document contains storage units are termed as Entities. Two
types of entities are Internal and External entities.
1. a prolong
iii. DTD(document type delaration): sets a grammer rule for xml file.
2.Data instance :it consist of one or more elements. It is a part of one or more elements. Some time data
instance is also referred to as body.
Root/Document Element: the parent element of all other elements in data instance is known as root element or
document element.
Child Element: the element nested inside other element are the child elements.
ii. Rest of the name can consist of letters, digits, underscore character, the dot(.) or a hyphen(-)
v. Names cannot start with a string “xml”. It is reversed for the XML specification.
vi. By convention HTML elements in XML are written in uppercase, and XML elements are written in
lowercase.
Predefined Entities :
character reference
& &
< <
> >
“ "
' '
selector{ Declaration 1;
declaration 2;
Notes:
Selector : is a name of elements to be styled.
A valid XML document is one that is well formed as well as confirms to the DTD or schema.
1. XML Validator
2. XML Parser
1. XML Validator are the software packages that check the XML documents as per the specified DTD.
The role of an XML parser is to dissect a valid XML document to obtain actual data from the XML
document. The hot favourite of web application , java , also include a built-in XML parser.
Validation Process:
Example:
<?xml version=”1.0” ?>
<!DOCTYPE EMAIL [
<!ELEMENT TO (#PCDATA)>
<!ELEMENT CC (#PCDATA)>
]>
<EMAIL>
<TO>dhanptrai@gmail.com</TO>
<FROM>arora.sumita@gmail.com</FROM>
<CC>ndcc.in@gmail.com</CC>
<BCC> </BCC>
<SUBJECT>my first DTD</SUBJECT>
</EMAIL>
Example code:1
AIM: Create an XML document to present following set of data and save as Client.xml.
ClientID Name Company Phone City
XML code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CLIENTS>
<CLIENT>
<ClientID> CO1</ClientID>
<Name> Jane SmiTH </Name>
<Company> ATnT <Company>
<Phone> 2401880152</Phone>
<City> Delhi </City>
<CLIENT>
<CLIENT>
<ClientID> CO2</ClientID>
<Name> Jameel Sheikh </Name>
<Company> NIIT <Company>
<Phone> 800102205</Phone>
<City> Mumbai </City>
<CLIENT>
<CLIENT>
<ClientID> CO3</ClientID>
<Name> Raghav Seth</Name>
<Company> Wipro <Company>
<Phone> 3014980912 </Phone>
<City> Banglore </City>
<CLIENT>
</CLIENTS>
Code :2
AIM: a) Create an XML document to represent various computer parts . Each part has its item name,
manufacturer, model and cost. Choose data of your choice and save the file as computer.xml
XML code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<?xml-stylesheet type="text/css" href="parts.css" ?>
<PARTS>
<TITLE>computer parts </TITLE>
<PART>
<PARTNAME> mother board </PARTNAME>
<MANUFACTURER> ASUS </MANUFACTURER>
<MODLE> P3B-F </MODLE>
<COST> 12300.00 </COST>
</PART>
<PART>
<PARTNAME> Video card </PARTNAME>
<MANUFACTURER> ATI </MANUFACTURER>
<MODLE> All-in-wonder-Pro</MODLE>
<COST> 1600.00 </COST>
</PART>
<PART>
<PARTNAME> sound card </PARTNAME>
<MANUFACTURER> Creative Labs</MANUFACTURER>
<MODLE> sound blaster live </MODLE>
<COST> 800.00 </COST>
</PART>
<PART>
<PARTNAME> 17 inch Monitor </PARTNAME>
<MANUFACTURER> LG Electronics </MANUFACTURER>
<MODLE> 995E </MODLE>
<COST> 22900.00 </COST>
</PART>
</PARTS>
AIM: b) Create a CSS style-sheet for the xml document file “computer.xml” and
save style-sheet file as “parts.css”.
CSS code:
PARTS {display: block }
TITLE {display: block; font-family: arial ; color:#008000; font-weight:600 ; font-size: 16 ; margin-top: 12pt ;
margin-left: 10pt; text-align: center}
PART {display: block}
PARTNAME {display: block; font-family: arial ; color:#600060; font-weight: 400 ; font-size: 14;
margin-top: 10pt ; margin-left: 30pt}
MANUFACTURER {display: block; font-family: arial ; color:#006000; font-weight:400 ;
font-size: 14 ; margin-top: 10pt ; margin-left: 30pt}