ICSE class IX computer practice Test 2: Top Questions for free
Question 1 A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of items purchased
ICSE class ix computer practice test
Oops concepts
Question 1
A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of items purchased
Purchase Discount%
<Rs.2000 5%
Between Rs.2001 & 10000 10%
Between Rs.10001 & 20000 15%
Above Rs.20001 20%
Write a program to input total purchase, compute and display the amount to be paid after availing the discount.
Question 2
Ask the user to enter any number from 1-7, print day of the week based on the input [HINT: If the number is 1 then print Sunday, if it is 2 then print Monday… etc] (Use switch-case only)
Question 3:
Write a program to accept a number given by the user and check and print if the number is odd or even
Question 4:
A library charges fines for books returned late, the fine charges are given below.
First 5 days 40 paise
6 to 10 days 65paise
10 days 80paise
Calculate the total fine by asking the user to enter no. of days.
Watch Java videos
Related Posts
Continue learning with these related articles
Sum of First n Natural Numbers in Java (Loop and Formula)
Find the sum of the first n natural numbers in Java with a for loop, a while loop and the formula n(n + 1)/2, with a dry run and the sums of even numbers, odd numbers, squares and cubes.
Prime Number Program in Java: Check a Number and Print Primes in a Range
Check whether a number is prime in Java by counting its factors, a faster square-root method with isPrime(), and a program that prints all prime numbers in a range.

Encapsulation, Access Specifiers and Scope of Variables in Java for ICSE Class 10
ICSE Class 10 Computer Applications notes on encapsulation: private, default, protected and public access, data hiding with getter and setter methods, instance vs static (class) variables, local variables and scope, with a solved BankAccount program.