Category Archives: Term 2

Question 1

e) Difference between double and float variables in Java. Continue reading

Posted in Term 2 | Leave a comment

Question 2

d) What will be the output for the following program segment? Continue reading

Posted in Term 2 | Leave a comment

Question 3

The following is a method/function of some class. Give the output of the function display() Continue reading

Posted in Term 2 | Leave a comment

Question 7

a) The program accepts a number with four digits. If the number is with four digits returns true Continue reading

Posted in Term 2 | Leave a comment

Question 8

a) A class SumArray contains an array of integers which removes the duplicate elements Continue reading

Posted in Term 2 | Leave a comment

Question 9

a) A class Student defines the personal data of a student while another class Marks defines Continue reading

Posted in Term 2 | Leave a comment

Question 10

a) Create a class named ‘Rectangle’ with two data members- length and breadth a Continue reading

Posted in Term 2 | Leave a comment

Question 11

a) Write a user-defined function named Lower-half(int A[][], int N) which take Continue reading

Posted in Term 2 | Leave a comment