MI0041 JAVA AND WEB DESIGN

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 break statement is used with the conditional switch statement and with the do, for, and while loop statements. When a break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop.

Continue statement: Continue statement works like break but instead of forcing termination, it forces the next iteration of the loop to take place and


Question. 3. Describe the life cycle of a servlet.

Answer: A servlet life cycle can be defined as the entire process from its creation till 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 applet is a small application which is written in Java or another programming language that compiles to Java bytecode and delivered to users in the form of that bytecode. The user launches the Java applet from a web page, and the applet is then executed within a Java Virtual 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 applications are written in a specific programming language (such as Java, 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 allow access to properties using getter and setter methods. The name "Bean" was given to encompass 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
Call us at : 08263069601
(Prefer mailing. Call in emergency )


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.