Short Notes (Eng)
Short Notes (Eng)
<P>: It specifies the paragraph.Attribute is ALIGN: It specifies the alignment of the paragraph. Values
are; left right , center or justify.
e.g. <P ALIGN=”center”>India is my country</P>
<BR>: line break.
<HR>: draws a horizontal line.
Attributes Meaning
SIZE thickness of the line.
WIDTH length of the line
ALIGN alignment of the line.
COLOR colour of the line.
NOSHADE draw the line without any shading effect. It has no value.
ORDERED LIST
<OL> and <LI> is used to display ordered list in a webpage.
<OL>:It specifies an order list.AttributeTYPE specifies the type of the ordered list.
<LI> : It specifies each item in an ordered list.
TYPE=“1”(Default value) 1 English <OL>
2 Hindi <LI>English</LI>
3 Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI></OL>
TYPE=“a” a English <OL TYPE=”a”>
b Hindi <LI>English</LI>
c Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI></OL>
TYPE=“A” A English <OL TYPE=”A”>
B Hindi <LI>English</LI>
C Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI></OL>
TYPE=“i” i English <OL TYPE=”i”>
ii Hindi <LI>English</LI>
iii Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI></OL>
TYPE=”I” I English <OL TYPE=”I”>
II Hindi <LI>English</LI>
III Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI></OL>
UNORDERED LIST
<UL> and <LI> is used to display unordered list.
<UL>: It specifies an unordered list. AttributeTYPE specifies the type of the unordered list
<LI> : It specifies each item in an unordered list.
TYPE=”disc” (Default value) English <UL>
Hindi <LI>English</LI>
Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI>
</UL>
TYPE=“circle” o English <UL TYPE=”circle”>
o Hindi <LI>English</LI>
o Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI>
</UL>
TYPE=“square” English <UL TYPE=”square”>
Hindi <LI>English</LI>
Malayalam <LI>Hindi</LI>
<LI>Malayalam</LI>
</UL>
TABLE
<TABLE>, <TR>, <TH> and <TD> are used to display tables.
<TABLE>:It specifies table in a webpage
BORDER It specifies the border of the table
BGCOLOR It specifies the background colour of the table
BACKGROUND It specifies a background picture for a table
ALIGN It specifies alignment of the table (values are left, right or center)
HEIGHT It specifies the height of the table (usually it is given in pixels)
WIDTH It specifies the width of the table (usually it is given in percentage)
CELLSPACING It specifies the space difference between two adjacent cells of the table
CELLPADDING It specifies the space difference between the cell border and its data
<TEXTAREA>: Displays text area through which user can enter multiple line of text.
<SELECT> and <OPTION>: It is used to display the select box (drop down box)
Chapter 6
Client Side Scripting using JavaScript
Brendan Eich: Developer of JavaScript
<SCRIPT>: It is used to include JavaScript codes in an HTML page. Its attribute “language” to specifies the
name of the scripting language.
Data types
• Number: It represents numbers
• String: It represents string
• Boolean: It represents a data item that has two values; either true or false.
Variable Declaration
In Javascript, variables are declared by using the keyword var.
e.g. var x, y;
It only specifies the names of variables. It does not specify their data types. The definition of a variable
is completed only when it is assigned a value.
Undefined Data Type
If a variable is declared, but it is not assigned a value, then JavaScript engine cannot understand its
data type. Hence it is assigned as undefined data type.
Operators: Arithmetic, Relational, Logical, Assignment, Increment, decrement operators (similar to C++)
Control structures: if, switch, while, for (similar to C++)
Built-in Functions
• Number() : converts a string data to a number.
• alert() : displays a message in a message window.
• isNaN():checks whether a value is number or not. Returns true if the value is not a number.
• toUpperCase():converts a string to upper case.
• toLowerCase():converts a string to lower case.
• charAt():returns a character at a particular position.charAt(0) returns the first character.
• length: It is a property that returns the length of a string.
Types of web hosting: Shared Hosting, Dedicated Hosting, Virtual Private Server
Shared Hosting: In shared hosting, different websites are stored in a single server.
Advantages
• Servers are cheap & easy to use
• Security issues are taken care by the web host
Disadvantages
• If any of the website has a large volume of traffic, it will slow down the remaining websites.
• Not suitable for websites that require huge storage space, huge bandwidth.
Dedicated Hosting
In dedicated hosting, the web server and all its resources are exclusively used by a single client.
Advantages
• Client has the complete freedom to choose the hardware and software requirements
• Websites can be accessed quickly.
Disadvantages
• It is expensive
Virtual Private Server (VPS)
In this case, the server machine is virtually partitioned into a number of virtual servers using
virtualization softwares. Each virtual server is assigned with specific amount of storage space & memory,
and other softwares.
Advantages
• It provides almost all the services of dedicated hosting at lesser cost.
• It provides dedicated bandwidth to each website on the server.
• Users are permitted to install and configure any software on their VPS.
Virtualisation Softwares : - VMware, VirtualBox, Microsoft Hyper-V
Free Hosting
• Provides web hosting free of charge.
• Displays advertisements in the websites to meet the expenses.
• Size of the files that can be uploaded is limited.
• Audio/ video files may not be permitted.
e.g. yola.com
FTP Client Software
The FTP Client Software is used to transfer the files of the websites from our computer to the web
server. The software requires a user name and a password to connect to the web server. The software
uses SFTP protocol that encrypts and sends data to the server machine.
eg. Cute FTP, Smart FTP, FileZilla
Advantages of DBMS
• It controls data redundancy (duplication of data).
• It avoids data inconsistencycy
• It allows sharing of data.
• It provides data security.
• It ensures data integrity(correctness of the data).
• It ensures data recovery.
Components of DBMS
• Hardware: Computer system used to store and manage database
• Software: Programs and utilities to manage the database
• Database: Organised collection of related data
• User: Users access and manage the database
• Procedures: Commands or rules to access and manipulate the databases
Structure of the Database
• A File is a collection of related records
• A Record is a collection of related fields.
• A Fieldis the smallest unit of data.
Data Abstraction: Representing important details of the database by hiding its complex storage and
management details.
Levels of Data Abstraction
• Physical Level: It specifies how the data is actually stored in the storage medium.
• Logical Level: It specifies the data stored and the relationship among the data.
• View Level: It specifies how user views and accesses the data.
Schema: Structure of the database
Instance: Content of the database
Metadata: Data about the data
Data Independence: Ability to modify the schema definition in one level without affecting the schema
definition in higher levels. 2 types of data independence.
• Physical Data Independence: Ability to modify the schema definition in physical level without
affecting the schema definitions in logical level and view level.
• Logical Data Independence: Ability to modify the schema definition in logical level without
affecting the schema definitions in view level.
Users of the Database
• Database Administrator (DBA): Person having centralised control over the database.
• Application programmer: Programmers access the database through application programs.
• Sophisticated users: Doctors, engineers, accountants etc. access the database through queries.
• Naïve users: Ordinary users access database through programs written previously.
Duties of Database Administrator
Defining and maintaining physical level and logical level.
Creating other users and granting them permission to access the database.
Ensuring data recovery from system crashes or failures.
Terminologies in Relational Data Model
Entity: Entity is an object or a concept that has certain characteristics.
Relation: Relation refers to a table in which data are arranged in rows and columns.
Tuple: Each row in a table is called Tuple.
Attribute: Columns of a relation are called attributes.
Cardinality: Number of tuples in a relation is called cardinality.
Prepared by Abhilash TS Page: 11
Degree: Number of attributes in a relation is called degree.
Domain: It is the set of all the possible values that can be assigned to an attribute.
Key
Primary Key: It is an attribute that uniquely identifies each tuple in a relation
Candidate Key: It is an attribute which are candidates to select as a primary key.
Alternate Key: A candidate key which is not selected as the primary key is called alternate key.
Foreign Key: It is an attribute in a relation which is a primary key in another relation.
Relational Algebra
It defines the set of operations performed on relations. Different operations are
Select (σ ) Intersection (∩)
Project (π) Set Difference (-)
Union (U) Cartesian Product (X)
Select (σ ): It is a unary operation that selects tuples of a relation satisfying a certain condition.
e.g. Display the details of students in Commerce batch
Ans:σ BATCH=“Commerce”(STUDENT)
Project (π):It is a unary operation that projects certain attributes of a relation.
e.g. Display roll number and name of all the students
Ans: πROLLNO, NAME (STUDENT)
Union (∪): R1UR2 is a relation containing tuples of both R1 and R2 without repetition.
Intersection (∩):R1∩R2 a new relation with common tuples of R1 and R2.
Set Difference (-): R1-R2 is a new relation with all the tuples of R1, but not in R2.
e.g. consider the following 2 relations, R1 and R2
R1 R2
ROLLNO NAME BATCH ROLLNO NAME BATCH
1 Ajith Commerce 2 Anand Science
2 Anand Science 3 Bijoy Science
3 Aravind Commerce 4 Deepak Commerce
R1 U R2 R1 ∩ R2
ROLLNO NAME BATCH ROLLNO NAME BATCH
1 Ajith Commerce 2 Anand Science
2 Anand Science R1 - R2
3 Aravind Commerce ROLLNO NAME BATCH
3 Bijoy Science 1 Ajith Commerce
4 Deepak Commerce 3 Aravind Commerce
Cartesian Product: It is a binary operation that returns a relation containing all the possible
combinations of tuples of both the relations .
e.g. consider the following 2 relations, R1 and R2
R1 AdmNo Name R1 AdmNo Name PEN Teacher Subject
X 100 Mithun 4102 Pradeep Eco
100 Mithun
R2 100 Mithun 3456 Ajith Acc
102 Rahul 100 Mithun 2450 Arun Eng
102 Rahul 4102 Pradeep Eco
R2 PEN Teacher Subject 102 Rahul 3456 Ajith Acc
4102 Pradeep Eco 102 Rahul 2450 Arun Eng
3456 Ajith Acc
2450 Arun Eng
Let c1 and c2 be the cardinalities of R1 and R2 respectively, then the cardinality of R1 X R2 is c1 x c2.
Let d1 and d2 be the degrees of R1 and R2 respectively, then the degree of R1 X R2 is d1 + d2.
Benefits of ERP
Improved Resource Utilisation Decision Making Capability
Better Customer Satisfaction Increased Flexibility
Provides accurate information Information Integrity
Risks of ERP
High Cost
Implementation is time consuming process
Requirement of additional trained staff
Operational and maintenance issues
ERP related Technologies
Product Life Cycle Management (PLM) Supply Chain Management (SCM)
Customer Relationship Management (CRM) Decision Support System (DSS)
Management Information System (MIS)
CHAPTER 11
Trends and Issues in ICT
GPRS: GPRS (General Packet Radio Service): packet oriented data service.
EDGE (Enhanced Data rates for GSM Evolution): offers higher data transmission rates than GPRS.
Mobile Communication Services: SMS, MMS, GPS & Smart Card
SMS (Short Message Service)
• It is a text messaging service to send short text messages (up to 160 characters).
• It is SMS is sent through a Short Message Service Centre (SMSC)
• It is delivered by using the protocol called Signaling System No. 7 (SS7).
MMS (Multimedia Messaging Service)
• It is a standard way to send and receive multimedia messages by using mobile phones.
• An MMS server is used to store and forward the multimedia messages.
GPS (Global Positioning System)
• It is a satellite based navigation system used to locate a geographic position anywhere on earth.
• It consists of satellites, control and monitoring stations and receivers.
• It is used by transporting companies to track the movement of their vehicles.