Dear students get fully solved assignments by professionals
Send your semester & Specialization name to our mail id :
stuffstudy5@gmail.com
or
call us at : 098153-33456
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Mi0041 java and web design
1. Dear students get fully solved assignments by professionals
Send your semester & Specialization name to our mail id :
stuffstudy5@gmail.com
or
call us at : 098153-33456
(Prefer mailing. Call in emergency )
ASSIGNMENT
DRIVE FALL 2015
PROGRAM MBADS (SEM 4/SEM 6)MBAFLEX/ MBA (SEM 4) PGDISMN (SEM
2)
SUBJECT CODE & NAME MI0041 – JAVA AND WEB DESIGN
BK ID B2016
CREDITS 4
MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be
approximately of 400 words. Each question is followed by evaluation scheme.
Q. 1. Explain the elements of HTML document structure
Answer: AnHTML elementisanindividual componentof anHTML documentor webpage,once this
has been parsed into the Document Object Model. HTML is composed of a tree of HTML elements
and other nodes, such as text nodes. Each element can have HTML attributes specified. Elements
can also have content, including other elements and text. HTML elements represent semantics, or
meaning. For example, the title element represents the title of the document.
<header>:Introductionof anarticle,anothersectionor the entire document (header page).
Typically the header of a web site that appears on top of each page, or a header of a long
<article> or of a long <section>
<footer>: Contains the footer of a site,
Q. 2. What are packages and what role do they play in Java? Also, discuss the various in-built
packages provided by Java.
Answer: A package allowsa developertogroupclasses(andinterfaces) together. These classes will
all be relatedinsome way – they might all be to do with a specific application or perform a specific
set of tasks. For example, the Java API is full of packages. One of them is the javax.xml package. It
and its subpackages contain all the classes in the Java API to do with handling XML.
A package is a group of .class files.
2. Q. 3. Write a short note on
a. Special operators: Anoperatoris a symbol whichhelps the user to command the computer to do
a certain mathematical or logical manipulations. Operators are used in Java language program to
operate on data and variables. Java has a rich set of operators which can be classified as
(1) ArithmeticOperators: All the basic arithmetic operations can be carried out in Java. All the
operators have almost the same meaning as in other languages. Both unary and binary
operations are available in
b. Operator precedence and associativity
Answer: If more than one operators are involved in an expression then, C language has predefined
rule of priority of operators. This rule of priority of operators is called operator precedence.
In C, precedence of arithmetic operators(*,%,/,+,-) is higher than relational
operators(==,!=,>,<,>=,<=) and precedence of relational operator is higher than logical
operators(&&, || and !).
Q. 4. Explain dynamic polymorphism with an example of Java program
Answer: Staticbindingandstaticpolymorphism is achieved through method overloading. Dynamic
polymorphism is also called as the run time polymorphism.
As we mentionedearlierwhile definingpolymorphismthatpolymorphismmeansthere are multiple
definitionsof asingle method.Thatmeansa methodwithsame name is defined multiple times in a
program. In dynamic polymorphism, if we make a call to such a multiple times defined method in
our code thenwhichdefinitionof thatmethodistobe calledactuallyandexecutedisresolvedatrun
time only.
Q. 5. Explain the classes in Abstract Window Toolkit.
Answer: The Java programming language class library provides a user interface toolkit called the
Abstract Windowing Toolkit, or the AWT. The AWT is both powerful and flexible. Newcomers,
however, often find that its power is veiled. The class and method descriptions found in the
distributed documentation provide little guidance for the new programmer. Furthermore, the
available examples often leave many important questions unanswered. Of course, newcomers
shouldexpectsome difficulty.Effective graphical userinterfacesare inherentlychallengingtodesign
and implement, and the sometimes
Q. 6. Explain the servlet lifecycle with an example
Answer: A servlet follows a certain life cycle. The servlet life cycle is managed by the servlet
container. The life cycle contains the following steps:
Load Servlet Class.
Create Instance of Servlet.
Call the servlets init() method.
Call the servlets service() method.
Call the servlets destroy() method.
3. Dear students get fully solved assignments by professionals
Send your semester & Specialization name to our mail id :
stuffstudy5@gmail.com
or
call us at : 098153-33456
(Prefer mailing. Call in emergency )