Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
1. Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
ASSIGNMENT
DRIVE SUMMER 2017
PROGRAM Master of Business Administration – MBA
SEMESTER 4
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.
Question. 1. Define JavaScript and the process of embedding
JavaScript in HTML.
Answer: Embedding JavaScript in HTML
Client-side JavaScript code is embedded within HTML documents in a number of ways:
Between a pair of <script> and </script> tags
From an external file specified by the src attribute
Question. 2. Differentiate Break and Continue statements in Java
with example program.
Answer: break leaves a loop, continue jumps to the next iteration.
Break statement:The breakstatementisusedwiththe conditional switchstatementandwiththe do,
for, and while loop statements. When a break statement is encountered inside a loop, the loop is
immediatelyterminatedandthe programcontrol resumesatthe nextstatementfollowing the loop.
Continue statement:Continuestatementworkslike breakbutinsteadof forcingtermination,itforces
the next iteration of the loop to take place and
2. Question. 3. Describe the life cycle of a servlet.
Answer: A servletlife cycle canbe definedasthe entire processfromitscreationtill the destruction.
The following are the paths followed by a servlet.
The servlet is initialized by calling the init() method.
The servlet calls service() method to process a client's request.
The servlet is terminated by calling the destroy() method.
Finally, servlet is garbage collected by the garbage collector of the JVM.
Question. 4. What are Applets? What are the restrictions of Applets?
Describe about applet class.
Answer:A Java appletisasmall applicationwhichiswritteninJavaoranotherprogramminglanguage
that compilestoJavabytecodeanddeliveredtousersinthe formof thatbytecode.The userlaunches
the Java appletfromawebpage,andthe appletisthenexecutedwithinaJavaVirtual Machine (JVM)
in a process separate from the web browser itself. A Java applet can appear in a frame of the web
page, a new application window, Sun's AppletViewer, or a stand-alone tool for testing applets. Java
applets were introduced in the first
Question. 5. Compare JDBC and ODBC.
Answer:Typically,software applicationsare writteninaspecificprogramminglanguage (suchasJava,
C#, etc.), while databases accept queries in some other database specific language (such as SQL).
Therefore, when a software application needs to access data in a database, an interface that can
translate languages to each other (application and database) is required. Otherwise, application
programmers need to learn and incorporate database
Question. 6. Describe about Java Beans.
Answer: In computing based on the Java Platform, JavaBeans are classes that encapsulate many
objects into a single object (the bean). They are serializable,have a zero-argument constructor, and
allowaccesstopropertiesusinggetterandsettermethods.The name"Bean"wasgiventoencompass
this standard, which aims to create reusable software components for Java.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
3. Call us at : 08263069601
(Prefer mailing. Call in emergency )