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

swr ?
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Mid Semester Examination ? Oct 2019
Course: B. Tech in Information and Technology Sem: III
Subject Name: Programming in JAVA I Subject Code: BTITEBOSB
Max Marks: 20 ? Date:- 8/ 10/2018 ,. Durationz-l Hr.
Instructions to the Students:.
,, 1.. Assume suitable data wherever necessary.
2w All questions are compulsory.
, (Level/CO) Marks
Solve all questions. One mark for each questions. 6
1.Which of the following is FALSE about arrays on Java ? , C01
3) Ajava array is always an object L I V
b) Length of array can be changed'after creation of array
c) Arrays in Java are always allocatedkon heap
cl) None of the a bove
2. What will be the output of following code { I I C01
clas; Test
{
public static void main (String[] args)
{ .
int arr1[] = {1,1 24 3};
intarr2[]m\{1, 2, 3};
if (arr1.equals(arr2))
System.out.println("Same?);
else
System.ou't.println("Not same");
}
}
a) Sa?me b) Not same c) Compile time error d) None of the above
3. Multiple inheritance means, ' ? C01
3) one class inheriting from more super classes
b) more classes inheriting from one super class
c) more classes inheriting from mere super classes
d) None of the above
8) (a) and (b) above.

Q2
(A)
(B)
(C)
Q-3
(A)
(B)
4. Which statement is not true in java language?
a) A public member of a class can be accessed in all the packages.
b) A private member of a class cannot be accessed by the methods of the same
class.
c) A private member of a class cannot be accessed from its derived class.
d) A protected member ofa class can be accessed from its derived class.
e) None of the above.
5. Which ofthese keywords is used by a class to use an interface de?ned
previously?
3) import b) Include c) implements d) Implements
6. What is true about constructor?
a)?|t can contain return type
b) It can take any number of parameters
c) It can have any non access modi?ers
d) Constructor cahnot throw an exception
Solve Any Two of the following.
Explain constructor and its properties with example.
Write program to calculate volume of a rectangular block using classes and object
with this keyword.
Write a program to calculate sum and average of a n number using multilevel
inheritance in java.
Solve Any One of the following.
Write a Java program to convert the ihteger into binary number.
Write a Java program to calculate the monthly electricity bill for the given range of
price per unit consumed.
1-100 units ,- 12 Rs/unit
1?200 units - 14 Rs/unit
1-300 units a 16 Rs/unit
300 above ? 18 Rs/unit
(Accept the no. of units cghsumed by user in integer)
iii End iii
C01
C01
C01
C02 .
C02
C03
C03
3X2
8X1.

This post was last modified on 21 January 2020