Code: 105606Computer Science & Eng.6th Semester2 Examination Papers

INTRODUCTION TO JAVA PROGRAMMING LANGUAGE

Official Bihar Engineering University examination question papers, marks distribution, and questions transcript. Available exam sessions: 2026, 2023.

Exam Year:

Get Instant AI Answers on this Paper

Open BEU Connect Android app to solve any numerical or derive formulas step by step.

Ask AI in App
Official Exam Paper TranscriptB.Tech 6th Semester Examination, 2026
Bihar Engineering University, Patna
B.Tech 6th Semester Exam., 2026

Introduction to Java Programming Language

Time: 03 HoursCode: 105606Semester: VIFull Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any seven):[2 x 7 = 14]
  1. Which component makes Java bytecode executable on a particular operating system?

    1. JVM
    2. Javadoc
    3. JDK
    4. Java compiler
  2. A constructor is automatically invoked when

    1. A method is called
    2. A package is imported
    3. An object is created
    4. A class is inherited
  3. Which statement terminates the current iteration of a loop and proceeds with the next iteration?

    1. break
    2. return
    3. continue
    4. exit
  4. Which keyword refers to the current object?

    1. super
    2. current
    3. this
    4. self
  5. Runtime polymorphism in Java is primarily achieved through

    1. Method overriding
    2. Constructor overloading
    3. Method overloading
    4. Static variables
  6. Which keyword explicitly generates an exception?

    1. throws
    2. exception
    3. throw
    4. catch
  7. Event handling in Java commonly follows the

    1. Delegation event model
    2. Sequential event model
    3. Inheritance event model
    4. Compilation event model
  8. JDBC is primarily used for

    1. Network routing
    2. Thread synchronization
    3. Database connectivity
    4. Graphics programming
  9. AWT stands for

    1. Advanced Window Technology
    2. Application Window Tool
    3. Abstract Window Toolkit
    4. Abstract Web Toolkit
  10. Which JDBC driver type is commonly called the thin driver?

    1. Type 1
    2. Type 2
    3. Type 3
    4. Type 4
Q.2 Solve both questions :[7 x 2 = 14]
  1. Compare Java and C++ with respect to memory management, pointers, inheritance, platform independence, exception handling and object-oriented features. Identify the design choices that make Java different from C++.

  2. A Java program is required to run on different operating systems without recompilation of the source code. Analyse the role of bytecode, JVM and JDK in achieving Java's platform-independent execution model.

Q.3 Solve both questions :[7 x 2 = 14]
  1. Analyse Java's primitive data types and type conversion mechanisms. Construct suitable examples showing implicit widening and explicit narrowing conversion, including one case where data loss occurs.

  2. Construct a Java program that prints a triangular pattern of numbers and analyse how the for loop controls the number of rows and columns.

Q.4 Solve both questions :[7 x 2 = 14]
  1. Consider given code segment
    “int a = 5;
    int b = 2;
    System.out.println(a++ + ++b * a);”
    Determine the value printed by the program and show the evaluation sequence according to Java's operator and increment rules.

  2. A student record system stores marks of 50 students in an array. Construct a Java program to calculate the highest, lowest and average marks and analyse the time complexity of the operations.

Q.5 Solve both questions :[7 x 2 = 14]
  1. Consider given code segment
    “String s1 = "Java";
    String s2 = new String("Java");”
    Analyse the results of:
    s1 == s2
    s1.equals(s2)

  2. Construct overloaded methods for calculating the area of a circle, rectangle and triangle. Analyse how Java selects the appropriate method based on the parameter list.

Q.6 Solve both questions :[7 x 2 = 14]
  1. In Java, subclass needs to invoke a constructor and method of its superclass. Construct a suitable program using super and analyse the order in which superclass and subclass constructors execute.

  2. Compare checked and unchecked exceptions using suitable examples. Analyse how the compiler treats each category and discuss appropriate handling strategies.

Q.7 Solve both questions :[7 x 2 = 14]
  1. Construct a thread life-cycle diagram showing the major states through which a Java thread can pass. Analyse transitions caused by start(), scheduling, waiting and termination.

  2. A Java application creates several threads having different priorities. Analyse how thread priority is assigned and discuss why priority alone should not be treated as a guarantee of execution order.

Q.8 Solve both questions :[7 x 2 = 14]
  1. Compare the four types of JDBC drivers with respect to architecture, dependence on native libraries, portability and typical use.

  2. Construct an AWT application containing a frame, label, text field and button. Develop an event-handling mechanism that displays a message when the button is pressed.

Q.9 Write Short notes on any two of the following:[2 x 7 = 14]
  1. Runtime Polymorphism

  2. Constructors and Object Creation

  3. Method Overriding

  4. Applets and Applet Parameters

Related Official Syllabus

Check the complete official BEU syllabus for Computer Science & Eng. 6th Semester to view credit allocations, recommended textbooks, and topics.

Open 6th Semester Syllabus

Prepare Better with BEU Connect

  • Download papers for 100% offline study
  • Ask AI for step-by-step problem breakdown
  • Attempt official GATE CBT mock tests
  • Calculate SGPA and track attendance
Download Android App