FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download PTU MCA 2020 March 5th Sem A0522 Internet Programming And Java Question Paper

Download PTU (I.K. Gujral Punjab Technical University Jalandhar (IKGPTU) ) MCA (Master of Computer Application) 2020 March 5th Sem A0522 Internet Programming And Java Previous Question Paper

This post was last modified on 22 March 2020

This download link is referred from the post: PTU BA Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University


FirstRanker.com

Roll No. [ ] Total No. of Pages : 04
Total No. of Questions : 14

--- Content provided by FirstRanker.com ---

MCA (Sem.-5)
INTERNET PROGRAMMING AND JAVA
Subject Code : MCA-502
Paper ID : A0522
Time : 3 Hrs. Max. Marks : 75

--- Content provided by FirstRanker.com ---

INSTRUCTIONS TO CANDIDATES :

  1. SECTION-A will be compulsory and have 20 questions of 1 mark each.
  2. SECTION-B will have 8 short answer type questions of 5 marks each, out of which candidate will have to attempt any 5.
  3. SECTION-C will have 5 long answer type questions of 10 marks each, out of which candidate will have to attempt any 3.

SECTION-A

--- Content provided by FirstRanker.com ---

1. Multiple Choice Questions :

  1. Which of the following is not OOPS concept in Java?
    a) Inheritance b) Encapsulation
    c) Polymorphism d) Compilation
  2. Which component is used to compile, debug and execute java program?

    --- Content provided by FirstRanker.com ---

    a) JVM b) JDK
    c) JIT d) JRE
  3. Which of these is a mechanism for naming and visibility control of a class and its content?
    a) Object b) Packages
    c) Interfaces d) None of the Mentioned.
  4. --- Content provided by FirstRanker.com ---

  5. The Java ...................... packages contains all the classes and methods required for even handling.
    a) java.applet b) java.awt
    c) java.event d) java.awt.eve
  6. Which of these methods can be used to output a string in an applet?
    a) display() b) print()

    --- Content provided by FirstRanker.com ---

    c) drawString() d) transient()
  7. Which of these keywords must be used to monitor for exceptions?
    a) try b) finally
    c) throw d) catch
  8. Which of these method is used to implement Runnable interface?

    --- Content provided by FirstRanker.com ---

    a) stop() b) run()
    c) runThread() d) stopThread()
  9. Which of these classes are used by Byte streams for input and output operation?
    a) InputStream b) InputOutputStream
    c) Reader d) All of the mentioned
  10. --- Content provided by FirstRanker.com ---

  11. Which of the following is advantage of using JDBC connection pool?
    a) Slow performance b) Using more memory
    c) Using less memory d) Better performance
  12. Which method is used to get three-letter abbreviation for locale's country in servlets?
    a) Request.getISO3Country() b) Locale.getIS03 Country()

    --- Content provided by FirstRanker.com ---

    c) Response.getlS03Country() d) Local. retrievelSO03Country()

State True or False :

  1. Java Programming promises programmer - "Write Once, Run Anywhere".
  2. Method overriding is combination of inheritance and polymorphism.
  3. Java supports operator overloading.
  4. --- Content provided by FirstRanker.com ---

  5. An arithmetic operations can also be performed by an Applet.
  6. A servlet is a Java program that is invoked via HTTP on the Web server.
  7. A Java class may implement one or more interfaces.
  8. Servlets execute within the address space of web server and uses the functionality of java class libraries.
  9. ObjectFilter interface is not a member of java.io.package.
  10. --- Content provided by FirstRanker.com ---

  11. Session.updateAttribute(String name) is used to get an attribute in a HTTP Session object in servlets.
  12. In JDBC the java.sql.ResultSet interface represents the result set of a database query.

SECTION-B

  1. Explain JDK, JRE and JVM with a suitable diagram.
  2. What are different types of access modifiers’ in Java? Discuss the procedure for initializing objects of a class.
  3. --- Content provided by FirstRanker.com ---

  4. How Java packages differ from Interfaces? Explain it with a suitable example.
  5. How do we create a Java applet? Discuss its life cycle showing passing parameters to Applets.
  6. Explain exception and when it is raised in Java? Discuss how does the exceptions are handled in Java?
  7. Describe Event Handling and explain five widely used Listener Interface to implement this in Java.
  8. What is Java Swing and describe its working? Justify why Swing components are called lightweight?
  9. --- Content provided by FirstRanker.com ---

  10. Justify the purpose of different classes and methods used for Java I/O (Input/Output) handling.

SECTION-C

  1. Explain the concept of OOPS in detail and differentiate between Java, C and C++ programming languages.
  2. Write a Java program to design a front end for a login page using Swing components with the following :
    a) Border layout,

    --- Content provided by FirstRanker.com ---

    b) Grid Layout managers :
  3. What is Multithreading and how it is implemented in Java? Explain the stages of a thread life cycle.
  4. What is JDBC and explain its architecture. Write the purpose of the following JDBC classes : (a) DriverManager, (b) ResultSet, (c) Statement Interface, (d) Connection Interface
  5. Differentiate the following with suitable examples of each:
    a) TCP and UDP Sockets in Java Socket programming.

    --- Content provided by FirstRanker.com ---

    b) doGet and doPost method in Java Servlets.

NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.



--- Content provided by FirstRanker.com ---

This download link is referred from the post: PTU BA Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University