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 DBATU B.Tech 2019 Oct-Nov IT 3rd Sem Programming In Java Question Paper

Download DBATU (Dr. Babasaheb Ambedkar Technological University) B Tech 2019 Oct-Nov (Bachelor of Technology) IT 3rd Sem Programming In Java Question Paper

This post was last modified on 21 January 2020

This download link is referred from the post: DBATU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. Babasaheb Ambedkar Technological University


Firstranker's choice

DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE

Mid Semester Examination - Oct 2019

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

Course: B. Tech in Information and Technology

Subject Name: Programming in JAVA

Sem: III

Subject Code: BTITE305B

Max Marks: 20

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

Duration:-1 Hr.

Date:-8/10/2018

Instructions to the Students:

  1. Assume suitable data wherever necessary.
  2. All questions are compulsory.
  3. --- Content provided by FirstRanker.com ---

Q. 1 Solve all questions. One mark for each question.

  1. Which of the following is FALSE about arrays on Java (CO1) Marks 6
    1. A java array is always an object
    2. Length of array can be changed after creation of array
    3. Arrays in Java are always allocated on heap
    4. None of the above
    5. --- Content provided by FirstRanker.com ---

  2. What will be the output of following code (CO1)

    class Test
    { public static void main (String[] args) { int arr1[] = {1, 2, 3}; int arr2[] = {1, 2, 3}; if (arr1.equals(arr2)) System.out.println("Same"); else System.out.println("Not same"); }
    }
    1. Same
    2. --- Content provided by FirstRanker.com ---

    3. Not same
    4. Compile time error
    5. None of the above
  3. Multiple inheritance means, (CO1)
    1. one class inheriting from more super classes
    2. --- Content provided by FirstRanker.com ---

    3. more classes inheriting from one super class
    4. more classes inheriting from more super classes
    5. None of the above
    6. (a) and (b) above.
  4. --- Content provided by FirstRanker.com ---

  5. Which statement is not true in java language? (CO1)
    1. A public member of a class can be accessed in all the packages.
    2. A private member of a class cannot be accessed by the methods of the same class.
    3. A private member of a class cannot be accessed from its derived class.
    4. A protected member of a class can be accessed from its derived class.
    5. None of the above.
    6. --- Content provided by FirstRanker.com ---

  6. Which of these keywords is used by a class to use an interface defined previously? (CO1)
    1. import
    2. Include
    3. implements
    4. Implements
    5. --- Content provided by FirstRanker.com ---

  7. What is true about constructor? (CO1)
    1. It can contain return type
    2. It can take any number of parameters
    3. It can have any non access modifiers
    4. Constructor cannot throw an exception
    5. --- Content provided by FirstRanker.com ---

Q.2 Solve Any Two of the following. 3X2

  1. Explain constructor and its properties with example. (CO1)
  2. Write program to calculate volume of a rectangular block using classes and object with this keyword. (CO2)
  3. Write a program to calculate sum and average of a n number using multilevel inheritance in java. (CO2)
  4. --- Content provided by FirstRanker.com ---

Q. 3 Solve Any One of the following. 8X

  1. Write a Java program to convert the integer into binary number. (CO3)
  2. Write a Java program to calculate the monthly electricity bill for the given range of price per unit consumed. (CO3)

    1-100 units - 12 Rs/unit
    1-200 units - 14 Rs/unit

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

    1-300 units 16 Rs/unit
    300 above 18 Rs/unit
    (Accept the no. of units consumed by user in integer)

*** End ***

Firstranker's choice

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



This download link is referred from the post: DBATU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. Babasaheb Ambedkar Technological University

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