munotes®

B.Sc. (Computer Science) Sem 3 JAVA Programming Nov 2024 Question Paper - Mumbai University | munotes

JAVA Programming Question Paper, Nov 2024.pdf
SEM 3 · 62 KB · 4 Nov 2026

Loading PDF...

Older exam 2023-24 Semester-end · JAVA Programming →
Newer exam None yet: this is the latest New papers land after each exam season.

Questions asked in this paper

Solved paper All 24 questions answered in full Exam-ready answers, the reasoning behind each one, and what the examiner is looking for. Open the solutions

SECTION I - QI) (Attempt any four, 5 marks each) 20 Marks

  1. A) Describe how Java achieves portability and architecture-neutrality.
    Read the model answer
  2. B) Explain 'overloading' and 'overriding' in java.
    Read the model answer
  3. C) Explain five built-in exceptions of Java Library.
    Read the model answer
  4. D) Write a program in Java to create a class called 'Rational' for performing arithmetic with fractions. Provide appropriate constructors to initialize the fraction. Implement methods to add and multiply two fraction objects.
    Read the model answer
  5. E) Write a program in Java to create a class called Complex for performing addition and multiplication of two complex numbers. Implement the appropriate constructor.
    Read the model answer
  6. F) Write a program in Java to create a class called Point. Implement the appropriate constructor. Implement methods for returning the distance of the calling point from another point passed as an argument of the method.
    Read the model answer

SECTION II - Q2) (Attempt any four, 5 marks each) 20 Marks

  1. A) Describe 5 methods of 'ArrayList'.
    Read the model answer
  2. B) Explain the JComboBox component of Swing.
    Read the model answer
  3. C) Explain with examples the creation of threads in Java.
    Read the model answer
  4. D) Write a program in Java to create a GUI application for converting meters to kilometers. Provide the appropriate GUI elements for the application.
    Read the model answer
  5. E) Write a program in java which creates two threads. One printing 'Pass' and the other printing 'Fail'.
    Read the model answer
  6. F) Write a program in Java to insert a record in the Student table. The Student table has the following fields: Id, first_name, last_name, course, age.
    Read the model answer

SECTION III - Q3) (Attempt any four, 5 marks each) 20 Marks

  1. A) Explain the life cycle of a servlet.
    Read the model answer
  2. B) Explain five methods of 'Session' class.
    Read the model answer
  3. C) Explain the scripting elements in JSP with examples.
    Read the model answer
  4. D) Write a servlet which calculates the Gross salary of the person. Assume that basic pay is available from the previous HTML page and DA is 10%, HRA is 20% of the basic pay.
    Read the model answer
  5. E) Write a JSP page which checks if a number is even or odd. The number is available in the current page through the variable name 'num'.
    Read the model answer
  6. F) Write a JSP page which displays the number and its square. The number is available in the current page through the variable name 'num'.
    Read the model answer

SECTION IV - Q4) (Attempt any five, 3 marks each) 15 Marks

  1. A) Explain with examples three looping structures in Java.
    Read the model answer
  2. B) Explain integral literals in Java.
    Read the model answer
  3. C) Explain the 'PreparedStatement' with an example.
    Read the model answer
  4. D) Explain the purpose of adaptor classes.
    Read the model answer
  5. E) Explain 3 implicit objects in JSP.
    Read the model answer
  6. F) Write a note on JSON with java.
    Read the model answer

Read from the scan above, so a character or two may differ. The scan is the original.

Issue

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
B.Sc. (Computer Science) / Sem 3 · 82 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!