0% found this document useful (0 votes)
7 views

Computer Question Paper ICSE

The document is an examination paper for Class IX in Computer Applications at Mercy Memorial School, Kanpur, scheduled for February 17, 2025. It includes various sections with multiple-choice questions, definitions, programming tasks, and theoretical questions related to Java programming and computer science concepts. The paper is structured into two parts, with Part I focusing on theoretical knowledge and Part II requiring practical programming skills.

Uploaded by

Anany Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Computer Question Paper ICSE

The document is an examination paper for Class IX in Computer Applications at Mercy Memorial School, Kanpur, scheduled for February 17, 2025. It includes various sections with multiple-choice questions, definitions, programming tasks, and theoretical questions related to Java programming and computer science concepts. The paper is structured into two parts, with Part I focusing on theoretical knowledge and Part II requiring practical programming skills.

Uploaded by

Anany Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Mercy Memorial School, Kanpur M.M.

-80
(2024 2025)
-
Final Examination
Class: IX COMPUTERAPPLICATIONS Time: 2 hrs.
Date: 17.02.2025

on the paper provided separately.


Answers to this paper must be written during
You will not beallowed to write
the first 15 minutes.
paper.
This time is to be spent in reading the question answers.
the time allowed for writing the
The time given at the head of this Paper is
Section - B.
Attempt all questions from Section - A and
questions are given in brackets
The intended marks for questions or parts of
PART I (40 Marks)
Answer all questions.
briefly your working and reasoning, wherever required.
While answering questions in this Part, indicate
Question [10)
options:
Choose the correct answer to the questions from the given
(Do not copy the questions, write the correct answers only.)
operation is called
(1) An operator taking only single operand for its
(a) unary operator
(b) ternary operator
(c) binary operator
(d) none of these
program is created?
(2) Which package is loaded by default when a Java
(a) java.io
(b) java.util
(c) java.lang
(d) None of the above
(3) Assume x = 1with the following code snippet:
int y = - - X;
Which one of the following istrue?
(a) x= 1, y=1
(b) x = 1, y = 0
(c) x = 0, y = 1
(d) x =0, y =0
(4) Give the output of the following expression:
int a = a++ t +ta t -a + a--; /whena=7
(a) 34
(b) 33
(c) 32
(d) None of these
(5) Choose the method of the Scanner class that is used to input a double data from the standard input
device.
(a) nextDouble( )
(b) nextdoubled( )
(c) nextdouble( )
(d) None of the above
(6) What will be the output of Math.pow( 3,0) ?
(a) 0.0
(b) 3.0
(c) -1.0
(d) 1.0
mandatory in the switch statement?
(7) Which of the follow ing is
(a) break
(b) case
(c) continue
(d) default
constructs?
(8) Which of the following is/are conditional
(a) if-else statement
(b) switch statement
(c) if - else - if statement
(d) All of the above
(9) Java uses character set.
(a) ASCIlonly
(b) Unicode
(c) Extended ASCIl only
(d) None of these
(10)The statement System. out,println( "Six" +3 +3); gives the output as
(a) Six 3 3
(b) Six33
(c) Six 6
(d) 6 Six
Question 2
Define the following terms: (4)
(1) Nested loop
(2) Hacking
(3) Software Piracy
(4) 'break' keyword (in reference to loop)
Question 3
Write one point of difference between the following: [4]
(1) for' loop and 'do - while' loop
(2) Black Hat Hackers and White Hat Hackers
(3) Object Oriented Programming and Procedure Oriented Programming
(4) Math.ceil( ) and Math.floor( )
Question 4
Rewrite the following statements as instructed: [6]
(1) Convert the following into do while loop
int counter = 1, sum = 0;
while ( counter <= 100 )
Sum += Counter:;
counter+= 10;

(2) Convert the following into ternar


int bill:
if (bill > 10000)
double discount =bill * 10.0/ 100;
else
double discount bill * 5.0 / 100;
(3) Convert the following into for loop
int c= 10:
int d= 15;
do

d =d* 2:;
System.out.println(d );
C +:
}while( c<= 15);
Question5
[3|
following Mathematical expression:
Write equivalent Java expression for the
() 3x + 4x
7 8
(2) |x-y
(3) Area=side * side
3]
Question 6
evaluating the following expressions:
What willbe the result of S' after
(1) int x=-2;
int S = +tx + --x * X+ ++X;

(2) int t =3, m = 5;


+tm;
int S =++t * --m + --1%

(3) double y = -10.8;


double S= Math.ceilly );
Question 7 |6]
segraent:
Give the output of the following program
(1) void test ()
int n = 11223344:
int x = n % 100:
int y=n /100;
System.out.println("X= "+ x);
System.out.println("Y= "+ y);

(2) void sample( int n, int m ) / wheren= 15, m =20

System.out.println(tm * ntt - --m % --n + m * t+n);

(3) void fun()


double a =-6.35, b= 14.74;
System.out.println( Math.max (Math.abs (a ), b) );

Question 8
Answer the following in brief: [4]
(1)Which looping construct executes at least once in a program?
(2) Write any two safety measures against malicious intent and malicious code.
(3) What is a block?
(4) Write any two principles of OOP.
PART Il(40 Marks)
Atlempi any 4 programs. (10)
whether the
digits. The program further checks
Question 9 number of
number and count the
Write a program to input a digits or evcn number of digits.
number contains odd number of

Sample Input: 749


Number of digits =3
Sample Output: number of digits.
The number contains odd
[10]
Question 10
pattern:
Write a Java program to print the following
*#* # * # * # *
BEST
OF
LUCK
* #*#* #* #*
[10]
Question 11
number from the user and check whether:
Write a menudriven program to accept a
a. It is a Spy Number or not.
b. It is an Even Number or not. equal.
number is called Spy number if the sum of its digits and the product of its digits are
Spy number: A
Example: 1124 is a Spy Number (as sum of its digits = ]|*1 + I+2+4 =8 and
product of its digits = *2 * 4= 8 are equal)

[10]
Question 12

Write a program to input marks of five subjects Physics, Chemistry, Biology, Maths and Computer Science.
criteria:
Calculate percentage and print grade according to the following
Grade
Percentage
>=90 %
>= 80 %and <=89 % B
>= 70 % and <=79%
<= 69 % D

Question 13 [10]
following
Write a program to accept an integer number say 'n' from the user to find and print the sum of the
series:
1+4 + 9+ 16+ 25 + 36+ n

You might also like