0% found this document useful (0 votes)
21 views4 pages

228 Grade Ix Revision Worksheet Term1 Computerapplication

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)
21 views4 pages

228 Grade Ix Revision Worksheet Term1 Computerapplication

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

Revision Worksheet

COMPUTER APPLICATION
Term 1, 2024-25
GRADE: IX
Attempt all questions from this Section

Question 1: Maximum 20 Questions will be asked

Choose the correct answers to the questions from the given options.
(Do not copy the question, write the correct answers only.)

(i) Name the process that converts source code to bytecode.


a. Interpretation
b. Compilation
c. All of these
d. None of these
(ii) Which among the following is not valid error in Java?
a. Syntax errors
b. Logical errors
c. Run-time errors
d. Technical errors
(iii) Which among the following gives the next mathematical integer?
a. Math.floor( )
b. Math.ceil( )
c. Math.random( )
d. All of these
(iv) Which among the following Scanner methods allows us to input a number with a decimal point?
a. nextInt()
b. nextFloat()
c. nextDecimal()
d. nextPoint()

ICSE This Paper consists of 4 printed pages Turn over


(v) Which among the following is used to represent single-line comment?
a. //
b. /*
c. \\
d. <!—
(vi) Which operator is used to access individual members of an object?
a. . (dot)
b. >
c. ==
d. New
(vii) Which among the following is not a punctuator?
a. ; semicolon
b. , comma
c. : colon
d. . dot
(viii) If a is of type int and b is of type float what would be the resultant data type of a+b?
a. int
b. float
c. double
d. short
(ix) Which among the following creates a blueprint to represent characteristic and behaviour of an
object?
a. Object
b. Class
c. Instance
d. None of these
(x) What is meant by state of an object?
a. Functions of the object
b. Data Members of the object
c. Content of an object
d. All of these

Question 2 Maximum 10 Questions will be asked


(i) What is the output of the following:
char c = 'A';
short m = 25;
double n = c + m;
System.out.println (n);

(ii) Rewrite the following program after removing the errors, underlining each corrections:

class My Class
{
int a, b;
void initialize( )
{
a=5;
b=6;

ICSE 2
}
void show( )
{
System.out.println(a+ “ ”+ b);
}
static void main( )
{
My Class ob = new My Class( );
ob.initialize( );
show( ).ob;
}
}
(iii) State with reasons why is the following initializations incorrect:
int a=5;
short b=a;
(iv) What will be the output of the following program?
class Output1
{
static void main()
{
int a=5,b=6,c;
c=a+b%2;
b=a+2*c;
System.out.println(c);
System.out.println(b);
}
}
(v) What will be the output of the following, if x = 5 initially?
i. 5 *++x
ii. 5*x++
(vi) State the value a, b and c after the execution of each of the following statements
where a=12, b=13 and c=11:
a=a++ + – –b + c++;

(vii) Give the output of the following expressions.


i. If x = -9.99, calculate Math.abs(x);
ii. ii. If x = 9.0, calculate Math.sqrt(x);

(viii) Give the output of the following functions:


1. Math.floor(-126.349)
2. Math.max(45.6,17.3)
(ix) Write equivalent Java expressions for the following:

ICSE 3 Turn over


Section II

Maximum 6 Questions will be asked out of which 4 needs to be attempt


Question 3
Write a program to input the Basic Pay of an employee and find the gross pay of the employee for
the following allowances and deductions.

Dearness Allowance = 25% of Basic Pay


House Rent Allowance=15% of Basic Pay
Provident Fund=8.33% of Basic Pay
Net Pay=Basic Pay + Dearness Allowance + House Rent Allowance
Gross Pay= Net Pay – Provident Fund
Question 4

Write a program to find the area and circumference of a circle accept radius from the user

Note that: Area of a circle= π r2


Circumference of a circle = 2 π r
Where r is the radius of the circle and π is 3.142.
Question 5:

Write a program to input the length and breadth of a rectangle and find its diagonal using
Mathematical library function.

ICSE 4

You might also like