ICSE Practice test 4 class X : Top Questions
ICSE Practice test 4 Class 10: ICSE Class 10 Computer Applications practice test with important questions to revise before the computer exam.
Watch Java videos
In this ICSE practice test all the topics of java for ICSE computer application has been covered.
ICSE Practice test
Question 1
1. Explain the term type casting with its types. [2]
2. Define identifier with example; mention 2 naming rules for identifier?[2]
3. What is default constructor, and parameterized constructor? [2]
4. Differentiate between constructor and method [2]
5. Identify (class name, object name, constructor and parameters from the following)
Calculator op=new Calculator(10,20); [2]
PART II (15 marks)
Question 2 [15]
Define a class student having the following description
Data members
String name-> to store name
Int roll-> to store roll no.
Int p,c,b-> to store physics, chemistry ,bio marks
Double s-> to store percentage of science marks
Member function
void Input()-> to input details of student
void Calculate()-> to calculate percentage science & marks,
void Display()-> to display name,rollno,percentage having message that the student is a ranker if the percentage is >80
Question 3 [15]
A cloth show room has announced the following festival discounts on purchase of items, based in the total cost of items purchased
Purchase Discount%
Between Rs.2001 & 5000 25%
Between Rs.5001 & 10000 35%
Above Rs.10001 50%
Write a program to input total purchase, compute and display the amount to be paid after availing discount. (use any type of user define function)
ICSE Practice test
String Handling
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.