KERALA SAMAJAM MODEL SCHOOL
Half Yearly Examination-2024-25
Std IX Subject: Computer Applications
Time:2Hrs 15 mins FM : 100 Marks.
SECTION A (Attempt all questions)
Question I.
Choose the correct answers to the questions from the given options. [20 marks]
(Do not copy the question, write the correct answers only.)
1. The final result of a program after execution appears on which window.
a) Edit b) terminal c) program d) none
2. The example of use defined data type is :
a) Object b) method c) data d) class
3. Which of the following is not a character literal
a) ‘\n’ b) ‘B’ c) “Z” d) ‘3’
4. To provide the actual value to declare a variable is known as
a) Storage b) declaration c) initialization d) none
5. Which of the following is a primitive data type
a) Class b) structure c) boolean d) bitwise
6. Which of the following is an invalid relational operator
a) > b) < c) !== d) ==
7. The expression 1 % 3 gives the output
a) 2 b) 3 c) 3.66 d) none
8. The symbols &&. , || and ! are known as which operator
a) Logical b) relational c) assignment d) mathematical
9. The value of y is 5. Then the result of expression (++b + 10) is
a) 15 b) 16 c) 5 d) none
10. The expression 9/2.0 will return
a) 4 b) 4.0 c) 4.5 d) none
11. Which of the following will produce 9.0 if x=9.9
a) Math.ceil(x) b) Math.floor(x) c) Math.abs(x) d) none
12. The return value of Math.abs(Mathcbrt(-216.0)) is
a) 6.0 b) 6.6 c) 6.2 d) 6
13. Method round( ) returns value of which data type
a) long b) float c) char d) boolean
14. The result of System.out.println(Math.min(2.5 , 7.1) * Math.abs(-10))
a) 2.5 b) 25 c) 7.1 d) 25.0
15. The result of System.out.println(Math.max(10 , 12) – Math.pow( 2,3))
a) 10 b) 4 c) 8.0 d) 4.0
16. Which of the following is also known as jump statement
a) if b) if-else c) switch d) break
Page 1 of 3
17. Which of the following keyword is mandatory with the switch block ?
a) case b) else c) if( ) d) none
18. Which of the following is not an entry controlled loop
a) for b) while c) do-while d) none
19. Which of the following is not a jump statement
a) System .out b) continue c) return d) break
20. The terminating value of variable ‘y’ in given loop will be what
for( y=1 ; y<=7 ; y++)
a) 7 b) 8 c) 6 d) 7.5
Question II. [1 * 3 = 3 marks]
1) Write the expression for the following :
a) (ab) / (a2 + b2)
b) a3 + b3 + c3
c) mn + 2 mn - m3 + n3
2) Define the following [1 * 3 = 3]
a) What is an object ?
b) Mention any two characteristics of java .
c) What is meant by data type ?
3) Write any two difference between the given below [ 2 * 2 =4]
a) = and = =
b) Entry controlled loop and exit controlled loop
4) Write output of the following [2 * 3 =6]
a) What will be the value of x = ++y + - - y + y * y ( Here y=4)
b) for( i= ‘a’ ; i <=’e’ i++)
{
System.out.println(i);
}
c) int num= 367 , k=0;
while( n > 0)
{
rem= n %10 ;
k = (k * 10 ) + rem;
System.out.println(k);
n= n/ 10;
}
5) Convert the given loop as per instructions: - [ 2 * 2 = 4]
a) Convert from for to while loop
for( i=5 ; i<=10 ;i=i+2)
{
System.out.println(i * i);
}
Page 2 of 3
b) Convert from while to do-while loop
n= 475;
while(n>0)
{
rem= n%10;
System.out.println(rem);
n= n/10;
}
SECTION – B (60 MARKS)
(Attempt any FOUR questions from the section)
(Each program should be written using variable description such that the logic of
the program is clearly depicted)
1) Write a program in Blue java to print Fibonacci series till ‘n’ terms.
(Fibonacci series – 0, 1, 1, 2,3, 5,8,13,21, 34………etc)
Input – 5
Output -
0
1
1
2
3
2) Write a program in Blue java to accept a number and check its an Armstrong number
or not. (Using while loop)
(Example of Armstrong number – 153 )
13 + 5 3 + 3 3
1+ 125 + 27 = 153
3) Write a program in Blue java to accept a number and print sum of all digits of the
number. (Using do-while).
Input - 456
Output- 4+ 5+6 = 15
4) Write a program in Blue java to print sum of following series (Using any loop)
S= 2/4 + 4/ 6 + 6/8 + 8 / 10 + ---------+ n/n+2.
5) Write a program in Blue java to print sum of all even and odd digits separately.
Input – 2963
Output-
Sum of even digits = 8
Sum of odd digits = 12
6) Write a program in Blue java to accept an option between 1 to 3
If option is 1 solve area = 1/2 * h*(a +b)
If option is 2 solve area = 1/2 * ( d1 * d2)
If option is 3 solve area = l * b
Page 3 of 3