Half Yearly Question Paper
Half Yearly Question Paper
Half Yearly Question Paper
of Printed Pages : 6
Half Yearly Examination, 2024-25
Computer Applications
Time: 2.00 Hrs. Class - IX M.M.:100
INDIA
CISCE/1/24
Computer Applications | 4 | IX/750
Question 2.
(i) Name the type of error(syntax, runtime or logicalerror) in each case
given below :
(2|
(a) toperalor used when the operation should bedivision.
(b) Typing INT instead of int for the variable declaration.
else
x=b:
(v) State the 00P conceptthat is implemented through:
(a) asuper class and a subclass.
(b) the act of representing essential features without including background
details.
(vi) State the output of the following code : (2|
int m= 3:
Int n =m + a-B':
System.out.println("m=*+m +" and n="tn):
(vii) Differentiate between +and tt operators along with an example. (2]
(viii) Write the result for x and y : |2|
double x =Math.abs(Math.min(-1.45,-2.33);
int y =(int) Math.round( Math.ceil(2.34):
CISCE/1/24
Computer Applications IX/750
(ix) State the dillerenee between dyclational opcrator and alogical operator. |2|
(N) What will be the outputof the following code ? |2|
int a= 5. b=9. e:
C=at+ -+tb+ a:
System.out.println("a-" ta):
System.out.println("c="te);
Section - (B)
(Answer ANY FOUR questions from this Section)
The answers in this section should consist of the programs in either BlueJ
environment or any program environment with java as the base.
Each program should be writen using variable description /mnemonic codes so
that the logic of the program is clearly depicted.
Flowcharts and algorithms are not required.
Question 3. |15|
Write a menu driven program to accept a choice fromn a user and display the result
according to thechoice made.
Choice Result
Area of a rectange
2 Vokune ofacube-3
Area of acirce T
Give an appropriate message if a user enters any other number as his/her
choice.
Question 4. |15]
Write a program in Java to accept two numbers and store them in variables a and b.
Interchange these values wilhout using a third variable and display them.
Example: a=5 and b=7|Original values]
A=7and b=5[Interchangedvalues]
CISCE/1/24
Computer Applications IX/750
Question 5. |15]
Write a program in Java to accept adigit from I to 7and display the name of the
weckday accordingly (using switch stalement).
|Hint : 1for Monday. 2for Tuesday and so on]
Question 6. |15]
An Electricity Board charges for electricity per month from their consumers
according tothe unitsconsumed. The tariffis given below:
Units Cons umed Charges
First 100 units 40 paise per unit
Next 200units 60 paise per unit
above 300 units 1per unit
Write aprogram to calculate the electricity billtaking consumer's name and units
consumed as inputs. Display the output.
Question 7. [15]
Write a program to accept two numbers as input. Find their product anddisplay
whether the product so obtained is an even value or an odd value.
Question 8. [15]
Write a program in javathat identifies and displays whether a given character is an
uppercase character. a lowercase character. adigit or a specialcharacter.
CISCE/1/24