- Class 10 Java Program
- ICSE Java Programs - Home
- Year 2025 Programs
- Short Questions/Answers
- Class & Object Based Program - CloudStorage
- Square root of sum of squares of all elements - NORM
- Super String Program
- Binary Search Program
- Menu Driven Program
- Check Sum Program
- Solved Specimen Question Paper Year 2025 Programs
- Short Questions/Answers
- Class & Object Based Program - Bank
- Binary Search Program
- String to Uppercase Program
- Sum of Row in Array Program
- SUPERSPY Program
- Menu Driven Program - Overload Method
- Year 2024 Programs
- Short Questions/Answers
- Class & Object Based Program - Courier Service Program
- Method Overloading Program
- EvenPal Program
- Diagonal Array Program
- Selection Sort Program
- Gmail ID Validation Program
- Solved Specimen Question Paper Year 2024 Programs
- Short Questions/Answers
- Class & Object Based Program - Eshop
- Selection Sort Program
- Count the Vowels Program
- Sum of Even & Odd Elements in Array Program
- Duck Number Program
- Method Overloading Program
- Year 2023 Programs
- Short Questions/Answers
- Class & Object Based Program - Student Stream Allocation
- Bubble Sort Program
- Menu Driven Program - Overload Method
- Print Number of Digits, Alphabets and Special Characters Program
- Linear Search Program
- Sum of Single and Double Digit Number in Array Program
- Year 2021 Programs
- Short Questions/Answers
- Class & Object Based Program - Hotel Bill Calculation
- Bubble Sort Program
- Menu Driven Program - Overload Method
- Method Overloading - Pattern & Series
- EvenPal Program
- Student Range Program
- Year 2020 Programs
- Short Questions/Answers
- Class & Object Based Program - Cab Service
- Binary Search Technique Program
- UpperCase Conversion Program
- Method Overloading
- Menu Driven Program - Pattern & Series
- Double Dimensional Array - Diagonal Sum
- Solved Specimen Question Paper Year 2020
- Short Questions/Answers
- Class & Object Based Program
- Arrange Student details using Selection Sort Method
- Class Overload Program
- Menu Driven Program
- Sum of elements in Double Dimensional Array Program
- Pair of Vowels Program
- Year 2019 Programs
- Short Questions/Answers
- Class & Object Based Program
- Menu Driven Program - Generate Unicode, Pattern
- Sort Array Elements in Ascending Order using the Bubble Sort Technique Program
- Series Overload Program
- Count Letters in a Sentence Program
- Tech Number Program
- Year 2018 Programs
- Short Questions/Answers
- Class & Object Based Program - Railway Ticket
- Pronic Number
- Proper Case Sentence Program
- Function Overloading - Volume Program
- Menu Driven Program - Pattern
- Deviation Program
- Year 2017 Programs
- Short Questions/Answers
- Class & Object Based Program - Electric Bill
- Spy Number Program
- Menu Driven Program - Series Program
- Array Based Program - Largest Number, Smallest Number, Sum of Numbers Program
- Function Overload - String Program
- Alphabet Sort - Selection Sort Techniques Program
- Solved Specimen Question Paper Year 2017 Programs
- Short Questions/Answers
- Class & Object Based - Taxi Meter Program
- Menu driven - Sum of Series Program
- Abbreviation Program
- Largest & Smallest Integer in Array Program
- Sum of Prime Numbers Program
- Sort Names in Array Program
- Year 2016 Programs
- Short Questions/Answers
- Class & Object - Book Fair Program
- Menu Driven - Pattern Program
- Palindrome or Special Word Program
- Function Overloading - Sum of Series Program
- Niven Number Program
- Two Different Arrays Program
- Year 2015 Programs
- Short Questions/Answers
- Class & Object - Parking Lot Program
- Pattern Program
- Array Based Student Result Program
- Function Overloading String Based Program
- Arrange Names - Bubble Sort Technique Program
- Menu Driven - Factors/Factorial Program
- Year 2014 Programs
- Short Questions/Answers
- Class & Object - Movie Magic Program
- Special Two-digit Number Program
- Assign Full Path and File name Program
- Function Overloading - Area Program
- Menu Driven - Bank Deposit Program
- Array Sort - Binary Search Program
- Year 2013 Programs
- Short Questions/Answers
- Class & Object - FruitJuice Program
- International Standard Book Number (ISBN) Program
- Piglatin Program
- Descending Order Bubble Sort Program
- Function Overloading - Sum of Series Program
- Menu Driven - Composite Number / Smallest digit in Number Program
- Year 2012 Programs
- Short Questions/Answers
- Class & Object - Library Program
- Income Tax Calculation Program
- Double Letter Sequences in a String Program
- Function Overloading - Polygon Program
- Menu Driven - Fibonacci / Sum of Digits Program
- STD (Subscriber Trunk Dialing) Codes Program
- Year 2011 Programs
- Short Questions/Answers
- Class & Object - Mobike Program
- Descending Order - Selection Sort Program
- Special Number Program
- New Word by replacing Vowels with the next Character Program
- Function Overloading - Compare Integers, Characters, Strings Program
- Menu Driven - Series Program
- Year 2010 Programs
- Short Questions/Answers
- Binary Search Program
- Class & Object - Student Marks Program
- Ticket Discount Program
- Menu Driven - Prime Number / Automorphic Number Program
- Combine Two Arrays in Third Array Program
- Frequency of Characters in a String Program
- Year 2009 Programs
- Short Questions/Answers
- Electronic Shop Discount Program
- Generate Triangle / Inverted Triangle Program
- Longest Word Program
- Function Overloading - Number Calculation Program
- Menu driven - BUZZ Number / GCD Program
- Exam Results Program
- Year 2008 Programs
- Short Questions/Answers
- Tax Computation Program
- Reverse Uppercase & Lowercase in String Program
- Sort String Bubble Sort Program
- Menu Driven - Palindrome / Perfect Number Program
- Function Overloading - Volume Program
- Sum of Series Program
- Year 2007 Programs
- Short Questions/Answers
- Salary Calculation Program
- Sum of Series Program
- Maximum & Minimum Program
- Count of a word in String Program
- Menu Driven - Temperature Program
- Palindrome Program
Java Programs - Solved 2020 ICSE Computer Science Paper
![]() Share with a Friend |
Solved 2020 ICSE Computer Science Paper
Class 10 - ICSE Computer Science Solved Papers
Short Questions/Answers - ICSE 2020 Computer Science
Question 1
a) Define encapsulation.
Encapsulation refers to wrapping up of the characteristics, state and behavior of an entity in a single unit.
b) Explain the purpose of using a ‘new’ keyword in a Java program.
The ‘new’ keyword instantiates a class by allocating memory for a new object.
c) What are literals?
Literals are data items that are fixed data values.
d) Mention the types of access specifiers.
public, private, protected and friendly.
e) What is constructor overloading?
The process of creating multiple constructors for a class that differ only on constructor signature is called constructor overloading.
Question 2
a) Differentiate between boxing and unboxing.
The process of converting a primitive data type value to its corresponding wrapper class is called boxing. For example, conversion from int to Integer.
The process of converting an object of wrapper class to its corresponding primitive data type value is called unboxing. For example, conversion from Integer to int.
b) Rewrite the following condition without using logical operators:
if(a > b || a > c)
System.out.println(a);
if(a > b)
System.out.println(a);
else if(a > c)
System.out.println(a);
c) Rewrite the following loop using for loop:
while(true)
System.out.print("*");
for(;;)
System.out.print("*");
d) Write the prototype of a function search which takes two arguments (a string and a character) and returns an integer value.
int search(String s, char ch)
e) Differentiate between = and == operators.
The = operator is an assignment operator.
The == operator is a relational operator.
Question 3
a) State the number of bytes and bits occupied by a character array of 10 elements.
20 bytes or 160 bits.
b) Differentiate between binary search and linear search techniques.
Binary search can only work on sorted list of data.
Linear search can work on both sorted as well as unsorted list of data.
c) What is the output of the following:
String a = "Java is a programming language\ndeveloped by\t\'James Gosling\'";
System.out.println(a);
Java is a programming language developed by \'James Gosling\'
d) Differentiate between break and System.exit(0).
The break keyword is used to terminate a loop or a switch statement.
System.exit(0) is used to terminate a program.
e) Write a statement in Java for:

Math.sqrt((Math.pow(a + b), 3) / Math.abs(a - b))m -= 9 % ++n + ++n / 2; when int m = 10, n = 6;m = m – (9 % ++n + ++n / 2)
= 10 – (9 % 7 + 8 / 2)
= 10 – (2 + 4)
= 10 – 6
= 4.
g) Predict the output of the following:
(i)
Math.pow(25, 0.5) + Math.ceil(4.2)= 5.0 + 5.0
= 10.0
(ii)
Math.round(14.7) + Math.floor(7.9)15.0 + 7.0
= 22.0
h) Give the output of the following Java statements:
(i)
"TRANSPARENT".toLowerCase()transparent
(ii)
"TRANSPARENT".compareTo("TRANSITION")7
i) Write a Java statement for each to perform the following tasks:
(i) Find and display the position of the last space in a string str.
System.out.println(str.lastIndexOf(\' \'));(ii) Extract the second character of the string str.
char ch = str.charAt(1);j) State the types of errors if any in the following statements:
(i)
switch(n > 2)Syntax error
(ii)
System.out.println(100 / 0);Run-time error
