0% found this document useful (0 votes)
4 views3 pages

Java Model Paper

The document contains model test papers for a Java Programming course, structured into three sections: Section A with compulsory short-answer questions, Section B with longer questions requiring students to choose a subset, and Section C with in-depth questions. Each test paper covers various Java programming concepts including object-oriented programming, exception handling, collections, and servlets. The papers are designed to assess students' understanding and application of Java programming principles.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Java Model Paper

The document contains model test papers for a Java Programming course, structured into three sections: Section A with compulsory short-answer questions, Section B with longer questions requiring students to choose a subset, and Section C with in-depth questions. Each test paper covers various Java programming concepts including object-oriented programming, exception handling, collections, and servlets. The papers are designed to assess students' understanding and application of Java programming principles.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Global Groups of Institute, Amritsar

Department of AI&ML
Java Programming (BTAIML 509-20)
MODEL TEST PAPER-I
Time: 3 Hrs. Max. Marks: 60
Instructions to the Candidate:
1. Section- A is COMPULSORY consisting of TEN questions carrying TWO
markseach.
2. Section- B contains FIVE questions carrying FIVE marks each and student has
toattempt any FOUR questions.
3. Section- C contains THREE questions carrying TEN marks each and student has
toattempt any TWO questions.
Section-A (10 x 2=20)
Q1. Write briefly:
a) Role of THIS keyword.
b) State the difference between extends and implements in Java.
c) State static initialization block.
d) Define Access modifiers.
e) Advantages of collection framework.
f) Describe why a generic class uses a type parameter, along with an example.
g) What are non-conventional databases in JDBC, and how are they used?
h) Provide a real-life example that shows method overriding as runtime polymorphism.
i) Interpret what CRUD stands for in JDBC operations and describe each operation briefly.
j) In java what does constructor chaining signifies?
Section-B (5 x 4=20)
Q2. What is multithreading with advantages.
Q3. Illustrate how java manages memories and handles garbage collection.
Q4. Write a programme to illustrate the difference between static and instance methods.
Q5. Analyze the structure of a method declaration.
Q6. How can we retrieve request parameters and set response headers in a java servlet?
Section-C (10 x 2=20)

Q7. Explain the concept of inheritance along with its different types, providing suitable
examples.
Q8. Discuss how a web application is structured and examine the main challenges faced in its
development process.
Q9. Describe the role of try, catch, and finally in Java exception handling and show how they
operate within a program using a suitable example.
Global Groups of Institute, Amritsar
Department of AI&ML
Java Programming (BTAIML 509-20)
MODEL TEST PAPER-II
Time: 3 Hrs. Max. Marks: 60
Instructions to the Candidate:
1. Section- A is COMPULSORY consisting of TEN questions carrying TWO
markseach.
2. Section- B contains FIVE questions carrying FIVE marks each and student has
toattempt any FOUR questions.
3. Section- C contains THREE questions carrying TEN marks each and student has
toattempt any TWO questions.
Section-A (10 x 2=20)
Q1. Write briefly:
a) How can we connect front end with back end?
b) Different types of collections.
c) Define mutable string.
d) Two classes that implements List interface.
e) Discuss Lexical Tokens.
f) State String Tokenizer Class.
g) Explain Garbage collection.
h) Name packages required for creating servlets.
i) Meaning of Java Servlet.
j) Difference between throw and throws keyword.

Section-B (5 x 4=20)
Q2. Compare Array list and vectors.
Q3. Role of static members in java? How is recursion implemented using static methods?
Q4. Need for collection framework in java. List three main components.
Q5. How JVM contribute to platform independence.
Q6. Explain compilation and execution process of a java programme.
Section-C (10 x 2=20)
Q7. Explain OOPS in JAVA.
Q8. Outline the architecture of JCF, highlight its main interfaces, and explain the role of the
[Link] package in handling collections.
Q9. Explain lexical tokens in Java and describe identifiers, keywords, literals, comments,
primitive data types, and assignment operators.
Global Groups of Institute, Amritsar
Department of AI&ML
Java Programming (BTAIML 509-20)
MODEL TEST PAPER-III
Time: 3 Hrs. Max. Marks: 60
Instructions to the Candidate:
4. Section- A is COMPULSORY consisting of TEN questions carrying TWO
markseach.
5. Section- B contains FIVE questions carrying FIVE marks each and student has
toattempt any FOUR questions.
6. Section- C contains THREE questions carrying TEN marks each and student has
toattempt any TWO questions.
Section-A (10 x 2=20)
Q1. Write briefly:
a) What is the purpose of the [Link] file in a servlet-based application?
b) Describe the structure of a Java source file with an example.
c) Explain method overloading with a simple example.
d) What is the use of the CLASSPATH variable in Java packages?
e) What is the role of layout managers in Java GUI development?
f) What are cloning objects.
g) Write use of final keywords.
h) How threads can be assigned priorities in java.
i) What is role of AWT?
j) Discuss different usages of super keyword.
Section-B (5 x 4=20)
Q2. Describe the servlet life cycle with a labeled diagram. Explain how request and response
are handled in a servlet.
Q3. Explain the role of layout managers in Java GUI development. Discuss any two layout
managers with examples.
Q4. What is exception handling in Java? Explain control flow in try–catch–finally with an
example.
Q5. Describe the role of constructors in inheritance. How do super and constructor chaining
work in Java? Give suitable examples.
Q6. Explain the Java compilation and execution process with a neat diagram. How does the
JVM ensure platform independence?

Section-C (10 x 2=20)

Q7. Explain the fundamental concepts of Object-Oriented Programming in Java. Discuss classes,
objects, constructors, access control, method overloading, method overriding.

Q8. Describe the exception-handling mechanism in Java in detail. Explain the complete control
flow of try–catch–finally, the role of throw and throws, and differences between checked
and unchecked exceptions.

Q9. Discuss the architecture of JDBC and explain in detail the steps in CRUD operations.

You might also like