Answer any seven out of ten. 1. Differentiate between Local & Remote Applet. 2. List attributes of <APPLET> tag. 3. Define Frame and state two ways to create a frame. 4. List out AWT controls in JAVA. 5. State two difference between Swing classes and AWT classes. 6. List any four methods provided by Component in Java. 7. Describe CRUD operations in brief. 8. List out JDBC API Components. 9. What is difference between SERVLET and APPLET? 10. Give difference between SERVLET & JSP.
[14 marks]દશમાાથી કોઇપણ સાતના જવાબ આપો. ૧. તફાવત આપો: લોકલ અન રિમોટ એપલટ ૨. <APPLET> tag નાા લકષણારકતઓ ની યાદી આપો. ૩. ફરમની વયાખયા આપો અન ફરમ બનાવવાની બ િીતો જણાવો ૪. જાવામાા આવતા AWT controls યાદી બનાવો ૫. સવાગ અન એડબલયટી વચચનાા બ તફાવત લખો. ૬. જાવામાા આવતા Component ની કોઈપણ ચાિ પદધતતઓની યાદી આપો. ૭. CRUD કામગીિીના વણણન ટ ાકમાા કિો. ૮. જડીબીસી API Components ની યાદી બનાવો Page | ૯. સવણલટ અન એપલટ વચચ શા તફાવત છ? ૧૦. સવણલટ અન જએસપી વચચ તફાવત આપો. પરશન. િ (અ) એપલટના જીવનચકરન આકતત દોિીન સમજાવો
[3 marks](અ) એપલટ માા આવતો < PARAM > tag ઉદાહિણ આપીન સમજાવો. (બ) જાવામાા લઆઉટ મનજિના નામોની યાદી આપો અન ઉદાહિણ સાથ કોઈપણ લઆઉટ મનજિન સમજાવો.
[3 marks](બ) જાવામાા ઇવનટ હનડસલાગ ડલીગશન મોડલ સમજાવો. (ક) લબલ અન ટકસટરફલડ એડબલયટી તનયાતરણન ઉદાહિણ આપીન સમજાવો
[4 marks](ક) એક ઉદાહિણ આપીન ઍકસશનતલટનિ ઇટિફસ સાથ એકસશનઇવનટ કસલાસ સમજાવો. (ડ) ગરારફકસસ વગણની fillOval() પદધતતનો ઉપયોગ કિીન લાલ િાગના filled વતણળન દોિવા માટ એપલટ લખો.
[4 marks](ડ) એક એવો એપલટ લખો ક જ કીબોડણમાાથી ઇનપટ તિીક તરણ આાકડાકીય મ લયો વાાચ છ અન તરણ દાખલ કિલ મ લયોમાા બકી સાખયા હોય ત કરીન પિ દશાણવ. પરશન. 3 (અ) AWT class નો અતધકરમ સમજાવો.
[3 marks](અ) AWT બટન તનયાતરણ અન JButton તનયાતરણની ઉદાહિણ આપીન સિખામણી કિો (બ) ઍપલટમાા parameters પસાિ કિીન તમારા નામ અન તમાિા શહિના નામ દશાણવવા માટ ઍપલટ લખો.
[3 marks](બ) ડટાબઝમાા િકોડણ ઉમિવા માટનો જાવા પરોગરામ લખો (ટબલ ના નામ: USER, કોલમના નામ : username, password તમ જ ડટાબઈજ ના નામ: STUDENT) (ક) બ-તિ અન તરણ-તિની જડીબીસી આરકણટકસચિ સમજાવો.
[4 marks](ક) જડીબીસી API ઘટકો ટ ાકમાા સમજાવો. (ડ) જાવા માા સવણલટ બનાવવા માટ પગલાાઓ લખો.
[4 marks](ડ) Servletની doGet () અન doPost () પદધતત વચચનો તફાવત ઉદાહિણ આપીન સમજાવો. પરશન. ૪ (અ) એક સબતમટ બટન તમ જ બ ટકસટબોકસસ ક જન અનકરમ લૉતગનનઇમ અન પાસવડણ તિીક લબલ આપલ છ, તવા લૉતગન ફોમણ બનાવવા માટનો એચટીએમએલ કોડ લખો. આ બ પરિમાણોન વાાચવા માટ ReadParameter નામનો સવણલટ class લખો અન doGet() પદધતતનો ઉપયોગ કિીન જયાિ વપિાશકતાણ સબતમટ બટન પિ તકસલક કિ છ તયાિ પષઠ પિ દાખલ કિલ પરિમાણોના મ લયો દશાણવો
[3 marks](અ) એક સબતમટ બટન તમ જ બ ટકસટબોકસસ ક જન અનકરમ લૉતગનનઇમ અન પાસવડણ તિીક લબલ આપલ છ, તવા લૉતગન ફોમણ બનાવવા માટનો એચટીએમએલ કોડ લખો. આ બ પરિમાણોન વાાચવા માટ ReadParameter નામનો સવણલટ class લખો અન doPost() પદધતતનો ઉપયોગ કિીન જયાિ વપિાશકતાણ સબતમટ બટન પિ તકસલક કિ છ તયાિ પષઠ પિ દાખલ કિલ પરિમાણોના મ લયો દશાણવો. (બ) એક સબતમટ બટન તમ જ બ ટકસટબોકસસ ધિાવતા ફોમણ બનાવવા માટ એચટીએમએલ કોડ લખો અન જયાિ વપિાશકતાણ સબતમટ બટન પિ તકસલક કિ તયાિ આ બ સાખયાઓનો સિવાળો દશાણવવા માટ જએસપી કોડ લખો
[4 marks](બ) જાવામાા એક પરોગરામ લખો જમાા બ પશ બટન તનયાતરણો અન 30 x 30 તપકસસલ કનવાસ શામલ હોય. બ પશ બટન તનયાતરણો અનકરમ "લાલ" અન "પીળા" તિીક લબલ થયલ છ. વપિાશકતાણ દવાિા પશ બટનની પસાદગી અનસાિ કનવાસના પષઠભ તમ િાગન બદલવા માટનો કોડ લખો (ક) તમામ પરકાિના જડીબીસી ડરાઇવિોન આકતતઓ સાથ સમજાવો. Page | પરશન. ૫ (અ) જાવા માા MySQL ડટાબસન કનકસટ કિવા માટનાા પગલાા લખો અન સમજાવો.. (બ) Servlet ના જીવનચકરન સમજાવો. (ક) જએસપીની તકરપટીગ એતલમનસની યાદી આપો અન ઉદાહિણ સાથ expressions તકરપટીગ એતલમનસ સમજાવો. (ડ) ઍપલટના ફાયદા અન મયાણદાઓ લખો. Page |
[4 marks]Explain ActionEvent class with ActionListener Interface by giving an example.
[4 marks]Explain Label and TextField AWT control with an example.
[4 marks]Explain event handling delegation model in JAVA.
[3 marks]List the names of layout managers in Java and explain any one layout manager with an example.
[3 marks]Explain < PARAM > tag in applet using example.
[3 marks]Explain life cycle of APPLET with diagram.
[3 marks]Write an Applet that reads three numeric values from the keyboard and display even numbers on the screen amongst the three entered values.
[4 marks]Page | 1
[ marks]Write a JAVA program to insert a record in database (Table name : USER column names: username, password and Database Name: STUDENT )
[3 marks]Explain two-tier and three-tier JDBC architecture.
[4 marks]Explain JDBC API components in brief.
[4 marks]Write steps to create a Servlet in JAVA.
[4 marks]Explain the difference between doGet() and doPost() method of Servlet with an example.
[4 marks]Explain AWT class hierarchy.
[3 marks]Compare AWT Button Control and JButton control with an example.
Write an HTML code to create login form having one submit button, two textboxes labeled as Login name and Password as respectively. Write a Servlet class named as ReadParameter to read these two parameters and display entered parameters values on the page using doGet() method when user clicked on submit button.
[3 marks]Explain all types of JDBC Drivers with diagrams.
[7 marks]Write a program in JAVA that contains two Push Button controls and 30 x 30 pixel Canvas. The two Push Button controls are labeled as “Red” and “Yellow” respectively. Write a code to change the background color of Canvas as per the selection of the Push Button by the user.
[4 marks]Write an HTML code to create form having two textboxes and one submit button. Write JSP code to display the addition of these two numbers when user clicks on the submit button.
[4 marks]Write an HTML code to create login form having one submit button , two textboxes labeled as Login and Password as respectively. Write a Servlet class named as ReadParameter to read these two parameters and display entered parameters values on the page using doPost() method when user clicked on submit button.
[3 marks]Explain the life cycle of a Servlet.
[4 marks]Write Advantages and Limitations of an Applet.
[3 marks]List Scripting Elements of JSP and explain expressions scripting element with an example.
[3 marks]Write and Explain steps to connect MySql Database in JAVA.
[4 marks]Write an applet to draw a filled circle with red color using fillOval() method of Graphics class.
Write an Applet to display Your name and Your City name using passing the parameters to the Applet.
[3 marks]