JAVA Question Bank
JAVA Question Bank
2 34. Explain in short the use of Layout managers in Java Swing. Write a code to display the following form using Java Swing components. Also explain the different layout manager classes used in designing the form: Client Details Client No. Contact Address Submit Client Name. Contact Number Reset
35. Explain Delegation Event Model. 36. What is Tabbed Pane? What is the general procedure for adding Tabbed Panes to Applets? 37. What is an Applet? How does Applet differs from Java Application Programs? Explain in brief the different stages of an Applet life cycle. 38. What is the life cycle of Java Applet? State the methods invoked for Initialization and Termination of an applet? 39. What are the methods called during Initialization and Termination of Applets? Describe each of these methods. 40. What are Servlets? Explain the life cycle of Servlet. Distinguish between JSP and Servlets. 41. What are Servlets? What are the advantages of Servlets? Explain the life cycle of Servlet. 42. Distinguish between JSP and Servlets? Explain with the help of table how JSP page gets compiled, loaded and executed in different situations. 43. What is XSQL Servlet? Explain how data transfer takes place between the Client and the Servlets. 44. What is a Java Bean? State any three advantages of using Java bean components. Explain Introspection, Communication, Persistence, and Customization with respect to Java Bean. 45. Explain in brief a. Entity Beans, b. Session Beans, c. Message Beans with respect to Enterprise Java Beans (EJB). 46. Explain briefly the terms a. Session Beans and b. Entity Beans. 47. Explain in brief Document Type Definition (DTD) in XML with suitable example. 48. Explain in brief: Objects in ASP. 49. Explain advantages of using JavaScript on the Client side. 50. Write a JavaScript program to check and display message whether the entered three digit number is Armstrong Number and to display the reverse of the given number. (Armstrong number e.g. 13 + 53 + 33 = 153). 51. Write a JavaScript program to display the reverse of a number.
3 52. What is the difference between the HTML and XML document representation? Write code to display Hello World in XML using Cascading Style Sheet, description font style Bold, Italic, 26 pts and Silver color. 53. What are the various types of Lists in HTML pages? Write code to display each of them. 54. Discuss the different types of Lists in HTML. 55. Write an HTML code to design the following page. Explain in short the HTML tags used for designing the page. Nutrition Information Calories Regular Organic Inorganic 3 4 0 Grams 4 6 3 Moisture 100% 100% 100%
MCA Semester Results Sem - I Sem - II Sem - III 1. Programming Languages 1. Languages of 80s a. Pascal b. Cobol 2. Languages of 90s A. C++, Java 3. Languages of 2k MS.Net Python, Tel, Tk 56. Describe the steps involved in a Java program in order to get connectivity to a database. Mention any 5 classes/interfaces used for JDBC connectivity. Give details. 57. Why is JDBC and not ODBC API is used with Java. 58. Write a Java program for adding and displaying the records from ProductMaster (ProdNo, Description, Quantity, UnitPrice) table. Explain in short the classes and methods used in JDBC connection. 59. Create a class SavingAccount that stores CustomerName, AccountNumber, Balance. Include the necessary methods or constructors in order to achieve thefollowing tasks: 1. Accept deposit from a customer and update the balance. 2. Permit withdrawl, after checking for the minimum balance and update the balance. 65% 63% 66%