Showing posts with label a. Show all posts
Showing posts with label a. Show all posts

Monday, May 13, 2013

MBA MB0038 (Semester I, Management Process and Organization Behavior) Assignment


Master of Business Administration-MBA Semester 1
MB0038 – Management Process and Organization Behavior - 4 Credits
(Book ID: B1127)
Assignment Set- 1 (60 Marks)


Note: Each question carries 10 Marks. Answer all the questions.

Q.1      Write a note on the managerial roles and skills.
According to Mintzberg (1973), managerial roles are as follows:
1. Informational roles
2. Decisional roles
3. Interpersonal roles

1. Informational roles: This involves the role of assimilating and disseminating information as and when required. Following are the main sub-roles, which managers often perform:
a. Monitor – collecting information from organizations, both from inside and outside of the organization
b. Disseminator – communicating information to organizational members
c. Spokesperson – representing the organization to outsiders
2. Decisional roles: It involves decision making. Again, this role can be sub-divided in to the following:
a. Entrepreneur – initiating new ideas to improve organizational performance
b. Disturbance handlers – taking corrective action to cope with adverse situation
c. Resource allocators – allocating human, physical, and monetary resources
d. Negotiator – negotiating with trade unions, or any other stakeholders
3. Inter`personal roles: This role involves activities with people working in the organization. This is supportive role for informational and decisional roles. Interpersonal roles can be categorized under three sub-headings:
a. Figurehead – Ceremonial and symbolic role
b. Leadership – leading organization in terms of recruiting, motivating etc.
c. Liaison – liasoning with external bodies and public relations activities.

Management Skills:  Katz (1974) has identified three essential management skills: technical, human, and conceptual.
Technical skills: The ability is to apply specialized knowledge or expertise. All jobs require some specialized expertise, and many people develop their technical skills on the job. Vocational and on-the-job training programs can be used to develop this type of skill.
Human Skill: This is the ability to work with, understand and motivate other people (both individually and a group). This requires sensitivity towards others issues and concerns. People, who are proficient in technical skill, but not with interpersonal skills, may face difficulty to manage their subordinates. To acquire the Human Skill, it is pertinent to recognize the feelings and sentiments of others, ability to motivate others even in adverse situation, and communicate own feelings to others in a positive and inspiring way.
Conceptual Skill: This is an ability to critically analyze, diagnose a situation and forward a feasible solution. It requires creative thinking, generating options and choosing the best available option.

Q.2      Discuss the methods of shaping behavior in detail.
Shaping Behavior
When a systematic attempt is made to change individuals’ behaviour by directing their learning in graduated steps, it is called shaping behavior. There are four methods of Shaping Behavior. They are as follows:
1. Positive reinforcement – This is the process of getting something pleasant as a consequence of a desired behavior, to strengthen the same behavior. For example, one get a commission, if he/she achieves sales target.
For example,
i) Bonuses paid at the end of a successful business year are an example of positive reinforcement.
ii) Employees will work hard for a raise or a promotion.
iii) Salesmen will increase their efforts to get rewards and bonuses.
iv) Students will study to get good grades, and
v) In these examples, the rises, promotions, awards, bonuses, good grades, are positive reinforces.
2. Negative reinforcement – This is the process of having a reward taken away as a consequence of a undesired behavior. For example, scholarship is withdrawn from the student who has not done well on the examination. Just as people engage in behaviours in order to get positive reinforces, they also engage in behaviours to avoid or escape unpleasant conditions. Terminating an unpleasant stimulus in order to strengthen or increase the probability of a response is called negative reinforcement.
3. Punishment is causing an unpleasant condition in an attempt to eliminate an undesirable behavior. This is the process of getting a punishment as a consequence of a behavior.
According to B. F. Skinner, punishment is still the most common technique of behaviour control in today’s life. When a child misbehaves, he is spanked. If a person does not behave as the society or law wants him to do, he is punished by arrest and jail.
Example: Loss of pay for coming late to office. Punishment can be accomplished either by adding an unpleasant stimulus or removing a pleasant stimulus. The added unpleasant stimulus might take the form of criticism, a scolding, a disapproving look, a fine, or a prison sentence. The removal of a pleasant stimulus might consist of withholding affection and attention, suspending a driver’s license, or taking away a privilege such as watching television.
Accordingly, in situations where punishment is desirable as a means of behaviour modification, certain guidelines would make it more effective thus minimizing its dysfunctional consequences.
a) Praise in public; punish in private.
b) Apply punishment before the undesirable behaviour has been strongly
reinforced. Thus, the punishment should immediately follow the undesirable
behaviour.
c) The punishment should focus on the behaviour and not on the person.
4. Extinction – An alternative to punishing undesirable behaviour is extension – the attempt to weaken behaviour by attaching no consequences (either positive or negative) to it. It is equivalent to ignoring the behaviour. The rationale for using extinction is that a behaviour not followed by any consequence is weakened. However, some patience and time may be needed for it to be effective.
This type of reinforcement is applied to reduce undesirable behaviour, especially when such behaviours were previously rewarded. This means that if rewards were removed from behaviours that were previously reinforced, then such behaviours would become less frequent and eventually die out. For example, if a student in the class is highly mischievous and disturbs the class, he is probably asking for attention. If .the attention is given to him, he will continue to exhibit that behaviour.
Both positive and negative reinforcement result in learning. They strengthen a response and increase the probability of repetition. Both punishment and extinction weaken behavior and tend to decrease its subsequent frequency

Q.3      Explain the classification of personality types given by Myers -Briggs.
The Myers-Briggs Type Indicator
The MBTI classifies human beings into four opposite pairs (dichotomies), base on their psychological opposites. These four opposite pairs result into 16 possible combinations. In MBTI, Individuals are classified as (McCrae and Costa, 1989) :
a. Extroverted or introverted (E or I).
b. Sensing or intuitive (S or N).
c. Thinking or feeling (T or F).
d. Perceiving or judging (P or J).
· These classifications are then combined into sixteen personality types. For example:
a. INTJs are visionaries. They usually have original minds and great drive for their own ideas and purposes. They are characterized as skeptical, critical, independent, determined, and often stubborn.
b. ESTJs are organizers. They are realistic, logical, analytical, decisive, and have a natural head for business or mechanics. They like to organize and run activities.
c. The ENTP type is a conceptualizer. He or she is innovative, individualistic, versatile, and attracted to entrepreneurial ideas. This person tends to be resourceful in solving challenging problems but may neglect routine assignments.


Q.4      What are the factors influencing perception?
Factors Influencing Perception
Perception is our sensory experience of the world around us and involves both the recognition of environmental stimuli and actions in response to these stimuli. Through the perceptual process, we gain information about properties and elements of the environment that are critical to our survival. Perception not only creates our experience of the world around us; it allows us to act within our environment.
A number of factors operate to shape and sometimes distort perception. These factors can reside:
i) In the perceiver.
ii) In the object or target being perceived or
iii) In the context of the situation in which the perception is made.
1. Characteristics of the Perceiver: Several characteristics of the perceiver can affect perception. When an individual looks at a target and attempts to interpret what he or she stands for, that interpretation is heavily influenced by personal characteristics of the individual perceiver. The major characteristics of the perceiver influencing perception are:
a) Attitudes: The perceiver’s attitudes affect perception. For example, suppose Mr. X is interviewing candidates for a very important position in his organization – a position that requires negotiating contracts with suppliers, most of whom are male. Mr X may feel that women are not capable of holding their own in tough negotiations. This attitude will doubtless affect his perceptions of the female candidates he interviews.
b) Moods: Moods can have a strong influence on the way we perceive someone. We think differently when we are happy than we do when we are depressed. In addition, we remember information that is consistent with our mood state better than information that is inconsistent with our mood state. When in a positive mood, we form more positive impressions of others. When in a negative mood, we tend to evaluate others unfavourably.
c) Motives: Unsatisfied needs or motives stimulate individuals and may exert a strong influence on their perceptions. For example, in an organizational context, a boss who is insecure perceives a subordinate’s efforts to do an outstanding job as a threat to his or her own position. Personal insecurity can be translated into the perception that others are out to "get my job", regardless of the intention of the subordinates.
d) Self-Concept: Another factor that can affect social perception is the perceivers’ self-concept. An individual with a positive self-concept tends to notice positive attributes in another person. In contrast, a negative self-concept can lead a perceiver to pick out negative traits in another person. Greater understanding of self allows us to have more accurate perceptions of others.
e) Interest: The focus of our attention appears to be influenced by our interests. Because our individual interests differ considerably, what one person notices in a situation can differ from what others perceive. For example, the supervisor who has just been reprimanded by his boss for coming late is more likely to notice his colleagues coming late tomorrow than he did last week. If you are preoccupied with a personal problem, you may find it hard to be attentive in class.
f) Cognitive Structure: Cognitive structure, an individual’s pattern of thinking, also affects perception. Some people have a tendency to perceive physical traits, such as height, weight, and appearance, more readily. Others tend to focus more on central traits, or personality dispositions. Cognitive complexity allows a person to perceive multiple characteristics of another person rather than attending to just a few traits.
g) Expectations: Finally, expectations can distort your perceptions in that you will see what you expect to see. The research findings of the study conducted by Sheldon S Zalkind and Timothy W Costello on some specific characteristics of the perceiver reveal
· Knowing oneself makes it easier to see others accurately.
· One’s own characteristics affect the characteristics one is likely to see in others.
· People who accept themselves are more likely to be able to see favourable aspects of other people.
· Accuracy in perceiving others is not a single skill.
These four characteristics greatly influence how a person perceives others in the environmental situation.
Characteristics of the Target:  Characteristics in the target that is being observed can affect what is perceived. Physical appearance plays a big role in our perception of others. Extremely attractive or unattractive individuals are more likely to be noticed in a group than ordinary looking individuals. Motion, sound, size and other attributes of a target shape the way we see it.The perceiver will notice the target’s physical features like height, weight, estimated age, race and gender. Perceivers tend to notice physical appearance characteristics that contrast with the norm, that are intense, or that are new or unusual. Physical attractiveness often colours our entire impression of another person. Interviewers rate attractive candidates more favourably and attractive candidates are awarded higher starting salaries.
Verbal communication from targets also affects our perception of them. We listen to the topics they speak about, their voice tone, and their accent and make judgements based on this input. Non-verbal communication conveys a great deal of information about the target. The perceiver deciphers eye contact, facial expressions, body movements, and posture all in an attempt to form an impression of the target .As a result of physical or time proximity, we often put together objects or events that are unrelated.
For example, employees in a particular department are seen as a group. If two employees of a department suddenly resign, we tend to assume their departures were related when in fact, they might be totally unrelated. People, objects or events that are similar to each other also tend to be grouped together. The greater the similarity, the greater the probability we will tend to perceive them as a group.
Characteristics of the Situation:  The situation in which the interaction between the perceiver and the target takes place, has an influence on the perceiver’s impression of the target. E.g. meeting a manager in his or her office affects your impression in a certain way that may contrast with the impression you would have formed, had you met the manager in a restaurant. The strength of the situational cues also affects social perception. Some situations provide strong cues as to appropriate behaviour. In these situations, we assume that ±ie individual’s behaviour can be accounted for by the situation, and that it may not reflect the individual’s disposition. This is the discounting principle in social perception. For example, you may encounter an automobile salesperson who has a warm and personable manner, asks you about your work and hobbies, and seems genuinely interested in your taste in cars. Can you assume that this behaviour reflects the salesperson’s personality? You probably cannot, because of the influence of the situation. This person is trying to sell you a car, and in this particular situation, he probably treats all customers in this manner.


Q.5      Mr. Solanki  is the VP- HR of a leading Financial services company. He is having a meeting with Ms. Ramani  leading HR consultant. Mr. Solanki is concerned about creating an environment that helps in increasing the job satisfaction amongst employees. Assume that you are Ms.  Ramani, the HR consultant. What suggestions you will give to Mr. Solanki, for creating an environment that increases job satisfaction.

Measuring Job Satisfaction:  Job satisfaction is the sense of fulfillment and pride felt by people who enjoy their work and do it well. For an organization, satisfied work force ensures commitment to high quality performance and increased productivity Job satisfaction helps organizations to reduce complaints and grievances, absenteeism, turnover, and termination. Job satisfaction is also linked to a healthier work force and has been found to be a good indicator of longevity. And although only little correlation has been found between job satisfaction and productivity, it has also been found that satisfying or delighting employees is a prerequisite to satisfying or delighting customers, thus protecting the "bottom line (Brown, 1996).
The most important factors conductive to job satisfaction are:
i) Mentally Challenging Work: Employees tend to prefer jobs that give them opportunities to use their skills and abilities and offer a variety of tasks, freedom and feedback on how well they are doing. Under conditions of moderate challenge, most employees will experience pleasure and satisfaction.
ii) Personality-Job Fit: People with personality types congruent with their chosen vocations should find they have the right talents and abilities to meet the demands of their jobs; and because of this success, they have a greater probability of achieving high satisfaction from their work. It is important, therefore to fit personality factors with job profiles.
iii) Equitable Rewards: Employees want pay systems and promotion policies that they perceive as being just, unambiguous, and in line with their expectations. When pay is seen as fair based on job demands, individual skill level, and industry pay standards, satisfaction is likely to result. Similarly, employees seek fair promotion policies and
practices. Promotions provide opportunities for personal growth, more responsibilities and increased social status. Individuals who perceive that promotion decisions are made in a fair and just manner are likely to experience job satisfaction.
iv) Supportive working conditions: Employees prefer physical conditions that are comfortable and facilitate doing a good job. Temperature, light, noise and other environmental factors should not be extreme and provide personal comfort. Further, employees prefer working relatively close to home, in clean and relatively modern facilities and with adequate tools and equipment.
v) Supportive Colleagues: Employees have need for social interaction. Therefore, having friendly and supportive co-workers and understanding supervisor’s leads to increased job satisfaction. Most employees want their immediate supervisor to be understanding and friendly, those who offer praise for good performance, listen to employees’ opinions and show a personal interest in them.
vi) Whistle blowing: Whistle-blowers are employees who inform authorities of wrongdoings of their companies or co-workers. Whistle blowing is important because committed organizational members sometimes engage in unethical behaviour in an intense desire
to succeed. Organizations can manage whistle blowing by communicating the conditions that are appropriate for the disclosure of wrongdoing. Clearly delineating wrongful behaviour and the appropriate ways to respond are important organizational actions.
vii) Social Responsibility: Corporate social responsibility is the obligation of an organization to behave in ethical ways in the social environment in which it operates. Socially responsible actions are expected of organizations. Current concerns include protecting the environment, promoting worker safety, supporting social issues, investing in the community, etc. Managers must encourage both individual ethical behaviour and organizational social responsibility.
Job enrichmentIt is a deliberate upgrading of responsibility, scope, and challenge in the work itself. Job enrichment usually includes increased responsibility, recognition, and opportunities for growth, learning, and achievement. Large companies that have used job-enrichment programs to increase employee motivation and job satisfaction include, AT&T, IBM, and General Motors (Daft, 1997).
Workers’ role in job satisfaction
A worker should also take some responsibility for his or her job satisfaction. Everett (1995) proposed the following questions which employees ask themselves in regard to job satisfaction at the workplace:
1. When have I come closest to expressing my full potential in a work situation?
2. What did it look like?
3. What aspects of the workplace were most supportive?
4. What aspects of the work itself were most satisfying?
5. What did I learn from that experience that could be applied to the present situation?
The following suggestions can help a worker find personal job satisfaction:
1. Seek opportunities to demonstrate skills and talents.
2. Develop communication skills.
3. Acquire job related skills and try to implement them.
4. Demonstrate creativity and initiative.
5. Improve team building and leadership skill.
6. Learn to de-stress.

Q.6      Given below is the HR policy glimpse of the “VARK-LEARNING” a learning and training solutions company
1. It offers cash rewards for staff members
2. It promotes the culture of employee referral and encourages people to refer people they know may be their friends, ex. Colleagues batch mates, relatives.
3. What all needs do it takes care off according to maslow’s need hierarchy
4. It recognizes good performances and give fancy titles and jackets to the people who perform well and also felicitates them in the Annual Day of the company.           
What all aspects does it takes care of according to the Maslow’s Need Hierarchy ?

The following needs are taken care of according to Maslow’s Hierarchy of Needs Theory:
According to this theory, proposed by Maslow (1943), human beings have wants and desires which influence their behavior, only unsatisfied needs can influence behavior, satisfied needs cannot. The needs are arranged in order of importance, from the basic to the complex. The person advances to the next level of needs only after the lower level need is at least minimally satisfied. The further they progress up the hierarchy, the more individuality, humanness and psychological health a person will show.
The first point of rewarding the staff members with cash shows the physiological needs which is satisfied, the staff members will be satisfied to receive any form of monetary benefits which encourages him to perform better
The second point is the promotion of referral for employees, this shows that the social need can be satisfied as with referrals the employee feels to be a part of the company being responsible for the referral given to the firm, an employee feels belongingness to his firm/company
The fourth point of recognition and felicitation for the good performance shown by the employee satisfies the esteem and self-actualization, the esteem need will take care of the recognition of one’s work which improves achievement realization and self respect for one’s work which in turn gains him the status recognition and attention within the company.
The employee’s drive to become what he is capable of including one’s growth is satisfied with the self-actualization needs, along with one’s growth the employee gains the confidence to achieve to his fullest potential and this gives him the satisfaction of self-fulfillment 
These are among the few things which are satisfied by Maslow’s  Need Hierarchy  the hierarchy is clearly stated below which shows all the 5 basic needs required by an employee
of the company/firm. Maslow was a contributor who influenced the human aspects of management in workplace

The above pictorial representation is the Maslow’s Hierarchy as explained below

Maslow’s Need Hierarchy Pyramid.
The five needs are:
· Physiological: Includes hunger, thirst, shelter, sex, and other bodily needs
· Safety: Includes security and protection from physical and emotional harm
· Social: Includes affection, belongingness, acceptance, and friendship
· Esteem: Includes internal esteem factors, such as, self-respect, autonomy, and achievement; and external esteem factors, such as, status, recognition, and attention
· Self-actualization: The drive to become what one is capable of becoming; includes growth, achieving one’s potential, and self-fulfillment
Maslow separated the five needs into higher and lower orders. Physiological and safety needs are described as lower-order. Social, esteem, and self-actualization are classified as higher-order needs. Higher-order needs are satisfied internally, whereas, Lower-order needs are predominantly satisfied, externally.

Tuesday, April 16, 2013

B.Sc. IT BT0078 (Semester 3, Website Design) Assignment



Spring 2012
Bachelor of Science in Information Technology (BScIT) – Semester 3
BT0078 – Website Design – 2 Credits (Book ID: B1005)
Assignment Set – 1 (30 Marks)

1. What are the requirements for an internet connection?
Ans.- You have to have a modem, a phone line / LAN cable wire/ and a wireless router (if you plan to use wireless connection). Make sure you have an ISP (internet service provider) If you would like to get access to the internet at home, you'll need an Internet Service Provider (ISP) and a modem to connect to the ISP. ISPs often provide a device called a router to let you share an internet connection over a local area network, which means more than one computer in your house can use the broadband connection at the same time. The devices are connected with cables and a hub or switch.
         A good place to start looking for an ISP is the Internet Service Provider Association (ISPA). Although this is a voluntary body it's recognized by government for its knowledge and expertise. All ISPs listed on the ISPA site have agreed to certain rules and standards set by the ISPA. This means you can be confident an ISP listed by ISPA has good business practice.
Similarly, you might find it helpful to get recommendations from friends who have an ISP as there is no better substitute for getting a recommendation from someone you trust. If you are going to look for the ISP on your own try to get as much information as you can about what they offer.


2. Briefly explain the transparent graphics.
Ans.-   Transparency is possible in a number of graphics file formats. The term transparency is used in various ways by different people, but at its simplest there is "full transparency" i.e. something that is completely invisible. Of course, only part of a graphic should be fully transparent, or there would be nothing to see. More complex is "partial transparency" or "translucency" where the effect is achieved that a graphic is partially transparent in the same way as colored glass. Since ultimately a printed page or computer or television screen can only be one color at a point, partial transparency is always simulated at some level by mixing colors. There are many different ways to mix colors, so in some cases transparency is ambiguous. In addition, transparency is often an "extra" for a graphics format, and some graphics programs will ignore the transparency.
Transparent Pixels: One color entry in a single GIF or PNG image’s palette can be defined as "transparent" rather than an actual color. This means that when the decoder encounters a pixel with this value, it is rendered in the background color of the part of the screen where the image is placed, also if this varies pixel-by-pixel as in the case of a background image.
Applications include:
· An image that is not rectangular can be filled to the required rectangle using transparent surroundings; the image can even have holes (e.g. be ring-shaped)
· In a run of text, a special symbol for which an image is used because it is not available in the character set, can be given a transparent background, resulting in a matching background.
The transparent color should be chosen carefully, to avoid items that just happen to be the same color vanishing.
Even this limited form of transparency has patchy implementation, though most popular web browsers are capable of displaying transparent GIF images. This support often does not extend to printing, especially to printing devices which do not include support for transparency in the device or driver. Outside the world of web browsers, support is fairly hit-or-miss for transparent GIF files.

3. Explain the various tags used in Table.
Ans.-   The <table> tag defines an HTML table. A simple HTML table consists of the table element and one or more tr, th, and td elements. The tr element defines a table row, the th element defines a table header, and the td element defines a table cell.
Example:
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
The <th> tag defines a header cell in an HTML table.

An HTML table has two kinds of cells:
·         Header cells – contains header information (created with the th element)
·         Standard cells – contains data (created with the td element)

The text in a th element is bold and centered.
The text in a td element is regular and left-aligned.
Example:
 <table border="1">
 <tr>
 <th>Month</th>
 <th>Savings</th>
 </tr>
 <tr>
 <td>January</td>
 <td>$100</td>
 </tr>
 </table>
 The <tr> tag defines a row in an HTML table.
 A tr element contains one or more th or td elements.
 <table border="1">
 <tr>
 <th>Month</th>
 <th>Savings</th>
 </tr>
 <tr>
 <td>January</td>
 <td>$100</td>
 </tr>
 </table>
 The <td> tag defines a standard cell in an HTML table.

 An HTML table has two kinds of cells:
·         Header cells - contains header information (created with the th element)
·         Standard cells - contains data (created with the td element)

The text in a th element is bold and centered.
The text in a td element is regular and left-aligned.
Example:
<table border="1">
<tr>
 <th>Month</th>
 <th>Savings</th>
 </tr>
 <tr>
 <td>January</td>
 <td>$100</td>
 </tr>
 </table>
 The <caption> tag defines a table caption.
 The <caption> tag must be inserted immediately after the <table> tag. You can specify only one caption per table. Usually the caption will be centered above the table.
Example:
 <table border="1">
 <caption>Monthly savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
 <td>$100</td>
</tr>
 </table>

4. Explain the Domain Name System and DNS servers.
Ans.-   The DNS translates Internet domain and host names to IP addresses. DNS automatically converts the names we type in our Web browser address bar to the IP addresses of Web servers hosting those sites. DNS implements a distributed database to store this name and address information for all public hosts on the Internet. DNS assumes IP addresses do not change (are statically assigned rather than dynamically assigned).The DNS database resides on a hierarchy of special database servers. When clients like Web browsers issue requests involving Internet host names, a piece of software called the DNS resolver(usually built into the network operating system) first contacts a DNS server to determine the server's IP address. If the DNS server does not contain the needed mapping, it will in turn forward the request to a different DNS server at the next higher level in the hierarchy. After potentially several forwarding and delegation messages are sent within the DNS hierarchy, the IP address for the given host eventually arrives at the resolver, that in turn completes the request over Internet Protocol. DNS additionally includes support for cachingrequests and for redundancy. Most network operating systems support configuration of primary, secondary, and tertiary DNS servers, each of which can service initial requests from clients. Internet Service Providers (ISPs) maintain their own DNS servers and use DHCP to automatically configure clients, relieving most home users of the burden of DNS configuration.

5. Explain the use of client-side image maps.
Ans.-   Image maps aren’t as bad as they seem, at least if you use a client side image map using HTML rather than a CGI program. Now you need to put the image on the page. To do this, you use the image tag, but with a new attribute: usemap.
<img src="eximap1.gif" width="200" height="40" border="0" alt="image map" usemap="#mymap" />
The usemap="#mymap" command tells the browser to use a map on the page, which is named "mymap". Notice how it uses the "#" symbol in front of the map name. Also notice that we defined the width and height of the image. This need to be done so we can use coordinates later on when we define the map. Speaking of that, let’s see how to define the map. For this map, we would place the following code somewhere on the page.
<map name="mymap" id="mymap">
<area shape="rect" coords="0, 0, 99, 40" href="table1.htm" alt="Tables" />
<area shape="rect" coords="100, 0, 200, 40" href="frame1.htm" alt="Frames" />
<area shape="default" href="http://www.pageresource.com" alt="Home" />
</map>
Now you can see where the usemap="#mymap" from the <img> tag comes from. The name of the map is "mymap". Now, let’s look at what all of this means:
<map name="mymap" id="mymap">
This defines your image map section, and gives the map a name. This map is named "mymap" In XHTML, the id attribute is required rather than name. If you are using XHTML transitional, both the name and id can be used.
<area shape="rect" coords="0,0,99,40" href="table1.htm" alt="Tables" />
The area tag defines an area of the image that will be used as a link. The shape attribute tells the browser what shape the area will be. To keep it simple, I only used "rect", which stands for rectangle. The cords attribute is where we define the edges of each area. Since it is a rectangle, we will use two sets of coordinates. The first set defines where to start the rectangle, where the top-left edge of the rectangle will be. Since this rectangle starts at the top-left edge of the image, the coordinates are (0 pixels, 0 pixels). The second two numbers define where to end the rectangle. This will be the lower-right edge of the rectangle. Remember that the total image size was 200×40. We want the lower-right edge of this rectangle to be halfway across the image and at the bottom of the image. Going across, half of 200 is 100, but we use 99 here because 100 can only be used once. We will use it in the second rectangle here. Of course, 40 pixels take us to the bottom of the image. So the lower-right corner of this rectangle will be 99 pixels across the image, and 40 pixels (all the way) down the image. And now the easy part: The href attribute is used to tell the browser where to go when someone clicks someplace on that rectangle. Put the URL of the page you want to go to in there, and the first rectangle is set up! The alt attribute allows you to define alternate text for that area.
<area shape="rect" coords="100, 0, 200, 40" href="frame1.htm" alt="Frames" />
Basically the same as the previous area tag, but it is for our second rectangle. We start where the other one left off, but back at the top of the image. Since the right edge of the last rectangle was at 99 pixels across, we start this one at 100 pixels across. And since this will be the upper-left of the second rectangle, we start it at 0 pixels down the image (the top!). We end this rectangle where the image ends, so the lower-right coordinate here is pretty nice- (200, 40), the size of the image!
<area shape="default" href="http://www.pageresource.com"
alt= "Home">

The default is not really a new shape; it just covers anything that may have been left out. We didn’t leave out anything in this map, but if we had, this would be the URL someone would go to if they clicked on any area we did not define earlier.
</map>
This ends the map section!
Now, you can use other shapes besides rectangles, but those are a lot tougher to code by hand.

  


Spring 2012
Bachelor of Science in Information Technology (BScIT) – Semester 3
BT0078 – Website Design – 2 Credits (Book ID: B1005)
Assignment Set – 2 (30 Marks)

1. Explain the architecture of the web page contents.
Ans.-   The World Wide Web has succeeded in large part because its software architecture has been designed to meet the needs of an Internet-scale distributed hypermedia application. The modern Web architecture emphasizes scalability of component interactions, generality of interfaces, independent deployment of components, and intermediary components to reduce interaction latency, enforce security, and encapsulate legacy systems.

Web Architecture
The basic web architecture is two-tiered and characterized by a web client that displays information content and a web server that transfers information to the client. This architecture depends on three key standards:
HTML for encoding document content
URLs for naming remote information objects in a global namespace
HTTP for staging the transfer.
HyperText Markup Language (HTML)
HyperText Markup Language is the predominant markup language for web pages. HTML is the basic building-blocks of webpages. A markup language is a set of markup tags, and HTML uses markup tags to describe web pages.
HTML had a first public release as HTML 0.0 in 1990, was Internet draft HTML 1.0 in 1993, and HTML 2.0 in 1994. HTML 3.0 and Netscape HTML are competing next generations of HTML 2.0. Proposed features in HTML 3.0 include: forms, style sheets, mathematical markup, and text flow around figures. HTML is an application of the Standard Generalized Markup Language (SGML ISO-8879), an international standard approved in 1986, which specifies a formal meta-language for defining document markup systems.
HTML is written in the form of HTML elements consisting of tags, enclosed in angle brackets (like <html>), within the web page content. HTML tags normally come in pairs like <h1> and </h1>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). The correct structure for an HTML document starts with <HTML><HEAD> (enter here what document is about) <BODY> and ends with </BODY></HTML>. All the information you'd like to include in your Web page fits in between the <BODY> and </BODY> tags.
HTML Example
The purpose of a web browser is to read HTML documents and compose them into visual or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. HTML allows for embedding of images, sounds, video streams, form fields and simple text formatting.
Universal Resource Identifier (URI):- In computing, a Uniform Resource Identifier (URI) is a string of characters used to identify a name or a resource on the Internet. Such identification enables interaction with representations of the resource over a network (typically the World Wide Web) using specific protocols. Schemes specifying a concrete syntax and associated protocols define each URI.
One can classify URIs as locators (URLs), or as names (URNs), or as both. A Uniform Resource Name (URN) functions like a person’s name, while a Uniform Resource Locator (URL) resembles that person’s street address. In other words: the URN defines an item’s identity, while the URL provides a method for finding it.
Uniform Resource Identifier (URI)
A URL is a URI that, in addition to identifying a network-homed resource, specifies the means of acting upon or obtaining the representation: either through description of the primary access mechanism, or through network “location”. A Uniform Resource Name (URN) is a URI that identifies a resource by name, in a particular namespace. One can use a URN to talk about a resource without implying its location or how to access it. The resource does not need to necessarily be network homed.
There are several kinds of URLs: file URLs, FTP URLs, Gopher URLs, News URLs, and HTTP URLs. URLs may be relative to a directory or offsets into a document.
HyperText Transfer Protocol (HTTP)
The Hypertext Transfer Protocol (HTTP) is a networking protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web.
HTTP functions as a request-response protocol in the client-server computing model. In HTTP, a web browser, for example, acts as a client, while an application running on a computer hosting a web site functions as a server. The client submits an HTTP request message to the server. The server, which stores content, or provides resources, such as HTML files, or performs other functions on behalf of the client, returns a response message to the client. A response contains completion status information about the request and may contain any content requested by the client in its message body.
Tim Berners-Lee, father of the Web, describes it as a “generic stateless object-oriented protocol.” Stateless means neither the client nor the server store information about the state of the other side of an ongoing connection. Statelessness is a scalability property but is not necessarily efficient since HTTP sets up a new connection for each request, which is not desirable for situations requiring sessions or transactions. In HTTP, commands (request methods) can be associated with particular types of network objects (files, documents, network services).

2. Explain the usage of internal and external DTDs in XML.
Ans.-   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.


Internal DTD Declaration
If the DTD is declared inside the XML file, it should be wrapped in a DOCTYPE definition with the following syntax:
<!DOCTYPE root-element [element-declarations]>
Example XML document with an internal DTD:
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>
Open the XML file above in your browser(select "view source" or "view page source" to view the DTD)
The DTD above is interpreted like this:
!DOCTYPE notedefines that the root element of this document is note
!ELEMENT notedefines that the note element contains four elements: "to,from,heading,body"
!ELEMENT todefines the to element  to be of type "#PCDATA"
!ELEMENT fromdefines the from element to be of type "#PCDATA"
!ELEMENT headingdefines the heading element to be of type "#PCDATA"
!ELEMENT bodydefines the body element to be of type "#PCDATA"


External DTD Declaration
If the DTD is declared in an external file, it should be wrapped in a DOCTYPE definition with the following syntax:
<!DOCTYPE root-element SYSTEM "filename">
This is the same XML document as above, but with an external DTD (Open it, and select view source):
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "note.dtd">
<note>
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Don't forget me this weekend!</body>
</note>
And this is the file "note.dtd" which contains the DTD:
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>


Q3. Explain <frameset> tag and its attributes.
Ans.-   Hyper Text Markup Language (HTML) is composed by a set of elements that are the basis of its structure. Elements are designed to provide tools to authors and give special information that will be used to compute the final representation of it. This means that where a tag is defined in the HTML code, something will happen in the representation of that document, that may be visual or not.
Attributes give certain characteristics to a tag (e.g., height, width, color, etc.), sometimes very important, that will finally set how the tag must be interpreted. For example, the HTML a tag inserts a link in an HTML document (a way to go from the actual document to another resource, usually with a click), but the real attribute establish which is the relationship between the actual document and the destination resource.
Frame:
The browser display window can be used to display more than one document at a time. The window can be divided into rectangular areas, each of which is a Frame. Each frame is capable of displaying its own document. The HTML frame is a powerful feature that enables a web page to be broken into different unique sections that are related but can be operated independently without depending on each other.
The <frameset> tag
The HTML frameset tag divides the available space in rectangular subspaces, where an individual HTML document can be loaded for each through the HTML frame tag.
The number of frames and their layout in the browser window are specified with the <frameset> tag. A frameset element takes the place of the body element in a document. A document has either a body or a frameset but cannot have both.
The <frameset> tag is supported in all major browsers like Internet Explorer, Firefox, Opera, Google Chrome & Safari.
<frameset> tag attributes
Attribute
Value
Description
cols
pixels
%
*
Specifies the number and size of columns in a frameset
rows
pixels
%
*
Specifies the number and size of rows in a frameset
The <frameset> tag must have either a rows or a cols attribute, and they often have both. The rows attribute specifies the number of rows of frames that will occupy the window. There are 3 kinds of values for rows: numbers, percentages, and asterisks. Normally, two or more values, separated by commas, are given in a quoted string. When a number is used as a value, it specifies the height of one row in pixels. A percentage is given as a number followed immediately by percent sign. When used, a percent value specifies the percentage of the total browser window height that a row should occupy. When an asterisk is used as the value of rows, it means the remainder of the window height.
Examples:
<frameset rows = ”200, 300, 400”>
<frameset rows = “22%, 33%, 45%”>
<frameset rows = “22%, 33%, *”>
The cols attribute is very much like the rows attribute, except that it specifies the number of columns of frames. For example, the following tag specifies that the window is to have six frames in three equal-height rows and two columns.
<frameset rows = 33%, 33%, 33%” cols = “25%, *”>
A simple example is dividing the screen in two columns, the first with 250 pixels of width and the second with all the remaining space.
<frameset cols="250,*">
<frame name="first" noresize="noresize" src="1.html">
<frame name="second" noresize="noresize" src="2.html">
</frameset>
There are unlimited possibilities to divide the screen in frames. Frames can be nested which allows authors to subdivide each one of the frames. Frames are subdivided by replacing a single frame by a frameset.
<frameset rows="100,*">
<frame name="title" noresize="noresize" src="title.html">
<frameset cols="150,*>
<frame name="navigation" noresize="noresize" src="navigation.html">
<frame name="content" noresize="noresize" src="index.html">
</frameset>
</frameset>
And there are more possibilities of nesting frames. For example if the "index.html" file in the example above is a frameset document, this will make new divisions to the "content" frame.
Frame Construction
Consider the following example.
<html>
<frameset cols = "50%,*">
<frameset rows = "50%, 50%">
<frame src =" EX1.HTML" />
<frame src =" EX2.HTML" />
</frameset>
<frameset cols = "50%, 50%">
<frame src =" EX1.HTML" />
<frame src =" EX2.HTML" />
</frameset>
</frameset>
</html>
This example creates totally 4 frames. First 2 vertical frames will be created.
Within first vertical frame two horizontal frames will be created. Within second vertical frame two vertical frames will be created.  

Standard Attributes
The <frameset> tag supports the following standard attributes:
Attribute
Value
Description
class
classname
Specifies a classname for an element
id
id
Specifies a unique id for an element
style
style_definition
Specifies an inline style for an element
title
text
Specifies extra information about an element

Event Attributes
The <frameset> tag supports the following event attributes:
Attribute
Value
Description
onload
script
Script to be run when a document load
onunload
script
Script to be run when a document unload

4. With an example explain the need for CDATA section in XML.
Ans.-   CDATA, means character data or (Unparsed) Character Data, is used for distinct, but related, purposes in the markup languages SGML and XML. The term indicates that a certain portion of the document is general character data, rather than non-character data or character data with a more specific, limited structure.
CDATA Sections are used to escape blocks of text containing characters which would otherwise be recognized as markup. The content of a character data section is not parsed by the XML parser, so it cannot include any tags. All tags and entity references are ignored by an XML processor that treats them just like any character data. CDATA blocks have been provided as a convenience measure when you want to include large blocks of special characters as character data, but you do not want to have to use entity references all the time.
In an XML document or external parsed entity, a CDATA section is a section of element content that is marked for the parser to interpret as only character data, not markup. A CDATA section is merely an alternative syntax for expressing character data; there is no semantic difference between character data that manifests as a CDATA section and character data that manifests as in the usual syntax in which "<", ">" and "&" would be represented by "&lt;", “&gt;” and "&amp;", respectively.
Characters like "<" and "&" are illegal in XML elements.
"<" will generate an error because the parser interprets it as the start of a new element.
"&" will generate an error because the parser interprets it as the start of a character entity.
A CDATA section starts with "<![CDATA[" and ends with "]]>"
For example, instead of using the line “The last word of the line is &gt;&gt;&gt; here &lt;&lt;&lt” the following line could be used:
<! [ CDATA [The last word of the line is >>> here <<<] ] >
All characters enclosed between these two sequences are interpreted as characters, not markup or entity references. For example, in a line like this:
<sender>John Smith</sender>
the opening and closing "sender" tags are interpreted as markup. However, if written like this:
<![CDATA[<sender>John Smith</sender>]]>
then the code is interpreted the same as if it had been written like this:
&lt;sender&gt;John Smith&lt;/sender&gt;
That is, the "sender" tags will have exactly the same status as the "John Smith"— they will be treated as text.
Some text, like JavaScript code, contains a lot of "<" or "&" characters. To avoid errors script code can be defined as CDATA. Everything inside a CDATA section is ignored by the parser.
<script>
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
  {
  return 1;
  }
else
  {
  return 0;
  }
}
]]>
</script>
In the example above, everything inside the CDATA section is ignored by the parser.
Example:
Writing a tutorial about XML would contain:
"In XML you need elements which have a starting tag <song> and end tag </song>"
The markup for this sentence would be:
<div> In XML you need elements which have a starting tag &lt;song&gt; and end tag &lt;/song&gt;</div>

In order to avoid this inconvenience, XML has a method to treat markup as text (or CDATA). This is done by simply enclosing the text with markup that we want to be displayed (not interpreted) in a CDATA element.
"<!CDATA[In XML you need elements which have a starting tag <song> and end stag </song>]]>"
Between the start of the section, "<![CDATA[" and the end of the section, "]]>", all character data is passed directly to the application.
A CDATA section cannot contain the string "]]>". Nested CDATA sections are not allowed.
The "]]>" that marks the end of the CDATA section cannot contain spaces or line breaks.
Comments are not recognized in a CDATA section. If present, the literal text "<!--comment-->" will be passed directly to the application. CDATA does not work in HTML.
All text in an XML document will be parsed by the parser. But text inside a CDATA section will be ignored by the parser.

5. Explain the various WSDL elements.
Ans.-   WSDL is an XML grammar for describing web services. The specification is divided into six major elements:
Definitions:- The definitions element must be the root element of all WSDL documents. It defines the name of the web service, declares multiple namespaces used throughout the remainder of the document, and contains all the service elements.
Types:- The types element describes all the data types used between the client and server. WSDL is not tied exclusively to a specific typing system, but it uses the W3C XML Schema specification as its default choice. If the service uses only XML Schema built-in simple types, such as strings and integers, the types element is not required.
Message:- The message element describes a one-way message, whether it is a single message request or a single message response. It defines the name of the message and contains zero or more message part elements, which can refer to message parameters or message return values.
PortType:- The portType element combines multiple message elements to form a complete one way or round-trip operation. For example, a portType can combine one request and one response message into a single request/response operation, most commonly used in SOAP services.
Binding:- The binding element describes the concrete specifics of how the service will be implemented on the wire. WSDL includes built-in extensions for defining SOAP services, and SOAP-specific information therefore goes here.
Service:- The service element defines the address for invoking the specified service. Most commonly, this includes a URL for invoking the SOAP service. In addition to the six major elements, the WSDL specification also defines the following utility elements:
Documentation:- The documentation element is used to provide human-readable documentation and can be included inside any other WSDL element.
Import:- The import element is used to import other WSDL documents or XML Schemas. This enables more modular WSDL documents. For example, two WSDL documents can import the same basic elements and yet include their own service elements to make the same service available at two physical addresses. Note, however, that not all WSDL tools support the import functionality as of yet.

For More Assignments Click Here