- 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 2011 ICSE Computer Science Paper
![]() Share with a Friend |
Solved 2011 ICSE Computer Science Paper
Class 10 - ICSE Computer Science Solved Papers
Short Questions/Answers - ICSE 2011 Computer Science
Question 1
(a) What is the difference between an object and a class?
Object is an identifiable entity with some characteristics and behavior.
Class is a group of objects that share common properties and relationships.
(b) What does the token ‘keyword’ refer to in the context of Java? Give an example for keyword.
Keywords are the words that convey a special meaning to the language compiler. Example: ‘new’ keyword.
(c) State the difference between entry controlled loop and exit controlled loop.
In entry-controlled loop, condition is checked before the loop body gets executed. Example: for loop, while loop.
In exit-controlled loop, at first the loop body gets executed, then the condition is checked. Example: do-while loop.
(d) What are the two ways of invoking functions?
The two ways of invoking functions are:
1. Call by value
2. Call by reference
(e) What is the difference between / and % operators?
The / operator is used to get the quotient after dividing two numbers, whereas the % operator gives the remainder after dividing two numbers.
Question 2
(a) State the total size in bytes, of the arrays a[4] of char data type and p[4] of float data type.
a[4] will occupy 8 bytes.
p[4] will occupy 16 bytes.
(b) (i)Name the package that contains Scanner class.
java.util package.
(ii) Which unit of the class gets called, when the object of the class is created?
Constructor
(c) Give the output of the following:String n = "Computer Knowledge";
String m = "Computer Applications";
System.out.println(n.substring(0, 8).concat(m.substring(9)));
System.out.println(n.endsWith("e"));
ComputerApplications
true
(d) Write the output of the following:
(i) System.out.println(Character.isUpperCase(\'R\'));
true
(ii) System.out.println(Character.toUpperCase(\'j\'));
J
Question 3
(a) Analyze the following program segment and determine how many times the loop will be executed and what will be the output of the program segment?int p = 200;
while(true){
if(p < 100)
break;
p = p - 20;
}
System.out.println(p);
The loop executes 6 times.
OUTPUT: 80
(b) What will be the output of the following code?
(i) int k = 5, j = 9;
k += k++ - ++j + k;
System.out.println("k = " + k);
System.out.println("j = " + j);
k = 6
j = 10
(ii) double b = -15.6;
double a = Math.rint(Math.abs(b));
System.out.println("a = " + a);
a = 16.0
(c) Explain the concept of constructor overloading with an example.
Using constructor overloading, we can create multiple constructors for a class with different function signatures.
Example:class Square{
int side;
public Square(){
side = 0;
}
public Square(int s){
side = s;
}
}
(d) Give the prototype of a function search which receives a sentence ‘sent’ and word ‘w’ and returns 1 or 0.int search(String sent, String w)
(e) Write an expression in Java for z = (5x3 + 2y) / (x + y).
z = (5 * Math.pow(x, 3) + 2 * y) / (x + y)
(i) Find and display the position of the last space in a string s.System.out.println(s.lastIndexOf(\' \'));
(ii) Convert a number stored in a string variable x to double data type.Double.parseDouble(x)
(g) Name the keyword that:
(i) informs that an error has occurred in an input/output operation.throws
(ii) distinguishes between instance variable and class variable.static
(h) What are library classes? Give an example.
Library classes are the predefined classes provided by Java in the form of packages. Example: Integer class.
(i) Write one difference between Linear Search and Binary Search.
Linear Search can work on both sorted and unsorted lists, whereas binary search works only on sorted lists.
