Class IX Final Exam 2015
Class IX Final Exam 2015
Class IX Final Exam 2015
II term Examination
Computer Science
Class :IX
Time: 2 hours M.M.:100
Answer to this paper must be written on the paper provided separately. You will
not be allowed to write during the first 15 minutes. This time is to be spent in
reading the question paper. The time given at the head of the paper is the time
allowed for writing the answers.
This paper is divided in to two Sections. Attempt all questions in Section A and
Section B. The intended marks for the questions or parts thereof are given in
brackets [ ].
PartI(20 Marks)
Section – A
[Attempt all the questions from this section.]
Question 1: [5*2=10]
}
System.out.println(f);
(e) How will you terminate outer loop from the block of the inner loop?
Question 3: [10*2=20]
Question 6: Write a program to accept a number and display the sum of its digit.
[15]
Question 7: Write a program to input three unequal numbers and display the
second smallest number. [15]
Question 8: Write a program in java to accept length and breadth of a
rectangle.Calculate and display the area ,perimeter or diagonal of the rectangle as
per the user choice. [15]
Question 9: Write a program to input a number to check a number is Niven
number or not [15]
Question 9: Write a program to input a number to check a number is Niven
number or not
[15]
Section – C
Answer any two question
Question 10: The distance between points A(x1,y1) and B(x2,y2) is given by
the formula :
AB = √(x2 – x1)2-(y2-y1)2 [5]
WAP in java to accept the coordinate of the vertices of a triangle and check whether
it is a right angled isosceles triangle or not .The program also indicate the angle
which is a right angled Using Recursion
Question 11: Write a program to store the elements in two different matrices A
and B of order 4 X 4 .Find the products of two matrices . [5]
Question 12: write a program to input an integer number n.Find and print the
sum of all the odd numbers from 1 to n by using a recursive function. [5]
(a)
[5]
Question 5: Write a short notes on: 0 [2*5=10]
Section – B
[Note: Attempt any five questions from this section. ]
(iv) [1]
(v) c a b
a
|b|
[1]
(vi) a sin 2 x cos 2 x [1]
Question 8:
(a) Differentiate between implicit and explicit type data conversion with suitable
examples. [4]
(b) Name the data types sued to store the following values [2]
(i) Integers values
(ii) Real values
Question 9:
Question 10:
Question 10: Write a program to input a four digit number and print sum of its
first and last digit. Example input: 3456, then show the output as
Sum of first and last digit is 9
Question 11: Write a program to input principal, rate and time then calculate and
print the simple interest and compound interest of input values.