ICSE Java Complete Reference book is currently available as print on demand and can be bought from online stores. Please check the discounts offered by different websites. fourth edition of book (2017 release) includes 2017 board paper solution.
Additionally: Complimentary shipping for 25+ copies in a single order to a single address within India.
Good news!!
Discount is offered on 25+ copies. For more details write to info@pothi.com
Additionally: Complimentary shipping for 25+ copies in a single order to a single address within India.
Note: No further negotiation in terms of discount will be possible with Pothi.com as discounts are standard.
1. Pothi.com:
4. dial a book :
ICSE Paper – 2017
Class – X
Subject – Computer Applications
Class – X
Subject – Computer Applications
(Class:
X)
(Two Hours)
Answer to this paper must be written on the paper provided separately.
This paper is divided into two sections.
Attempt ALL questions from Section A and
any FOUR questions from Section B.
The intended marks for questions or parts of questions are given in
brackets [ ].
SECTION A (40 Marks)
Attempt ALL questions.
Question 1. [2x5=10]
a) What is
Inheritance.
b) Name the
operators listed below.
i) < ii) ++ iii) && iv)
? :
c) State the number of bytes occupied by char and int data types.
d) State difference between / and % operator.
e) String x = [“SAMSUNG”, “NOKIA”, “SONY”,
“MICROMAX”, “BLACKBERRY”]
Give the output of following statements:
i)
System.out.println(x[1]);
ii)
System.out.println(x[3].length());
Question 2. [2x5=10]
a) Name the following:
i) A keyword used
to call a package in the program.
ii) Any one
reference data type.
b) What are the
two ways of invoking the functions?
c) State the data
type and value of res after the following is executed.
char ch = ‘t’;
res = Character.toUpperCase(ch);
d) Give the output
of following program segment and also mention the number of times loop will be
executed:
int a, b;
for (a=6,b=4;
a<=24; a=a+6)
{
if(a%b == 0)
break;
}
System.out.println(a);
e) Write the output:
char ch = ‘F’;
int m = ch;
m = m + 5;
System.out.println(m + “ ” + ch);
Question 3. [2x10=20]
a) Write a Java
expression for the following.
ax5 +
bx3 + c
b) What is the value of x1 if x=5 ?
x1 = ++x – x++ +
--x
c) Why is an object called an
instance of a class?
d) Convert the following do-while loop into for loop.
int
i = 1;
int d=5;
do
{
d
= d*2;
System.out.println(d);
i++;
}while(i<=5);
e) Differentiate between constructor and function.
f) Write the output for the
following:
String s=”Today is test”;
System.out.println(s.indexOf(‘T’));
System.out.println(s.substring(0,7)+
“” +”Holiday”);
g) What are the values stored in
variables r1 and r2:
i)
double r1 = Math.abs(Math.min(-2.83, -5.83)) ;
ii)
double r2 = Math.sqrt(Math.floor(16.3));
h) Give the output of following
code:
String A = “26”, B = “100”;
String D = A + B + “200”;
int x = Integer.parseInt(A);
int y = Integer.parseInt(B);
int d = x+y;
System.out.println(“Result 1= ” + D);
System.out.println(“Result 2= ” + d);
i) Analyze the given program segment
and answer the following questions:
for (int i=3; i<=4; i++) {
for (int j=2; i<=i; j++) {
System.out.print(“”); }
System.out.println(“WIN”); }
i)
How many times the inner loop execute?
ii)
Write the output of the program segment.
j) What is the difference between
scanner class functions next() and nextLine():
SECTION B (60 Marks )
Attempt any four questions from this Section.
The answers in this section should consist of the program in
Blue J environment with Java as the base. Each program should be written
using Variable descriptions / Mnemonics Codes such that the
logic of the program is clearly depicted.
Flow-charts and Algorithms are not required.
Q4. Define a class called ElectricBill with
the following description: [15]
Class : ElectricBill
Instance
variables/data members:
string n -
stores the name of customer
int
units - stores the number of units
consumed
double bill - store the
amount to be paid.
Member Methods:
void accept -
accept name of customer and number of units consumed.
void calculate() - to calculate the bill as per the
following tariff.
Number of units
|
Rate per unit
|
First 100 units
|
Rs 2.0
|
Next 200 units
|
Rs 3.0
|
Above 300 units
|
Rs 5.0
|
A surcharge of 2.5% charged if the number
of units consumed is above 300 units
void print() -To print the details as follows.
Name of the customer..
Number of units consumed..
Bill amount..
Q5. Write a program to accept a number and
check and display whether it is a spy number or not. [15]
A number is spy if the sum of its digits equals the product
of its digits.
Example: 1124 Sum of the digits = 1 + 1 + 2
+ 4 = 8
Product of the digits = 1 x 1 x 2 x 4 = 8
Q6. Using switch statement write a menu driven program for following: [15]
(i) To find and display the sum of the
series given below:
s = x1 – x2 + x3 – x4
+ x5 ……. – x20 (where x = 2)
(ii) To display the following series:
1 11
111 1111 11111
For an incorrect option, an appropriate
message should be displayed.
Q7. Write a program to input integer
elements into an array of size 20 [15]
and perform the following operations.
i)
Display largest number from the array
ii)
Display smallest number from the array
iii)
Display sum of all the elements of the array
Q8. Design a class to overload a function
check() as follows.
i)
void check(string str, char ch) - to find and print the frequency of the
character in the string. Example:
Input Output
str = “success” number
of ‘s’ present is = 3
ch = ‘s’
ii)
void check (string s1) – to display only vowels from
string s1, after converting it to lower case. Example:
Input
str = “computer” Output: o u e
Q9. Write a program to input forty words
in an array. Arrange these words in descending order of alphabets using
selection sort. Print the sorted array.