Computer Applications MS - 2016
Computer Applications MS - 2016
This document of the Analysis of Pupil Performance at the ICSE (Class-10) Examination is a
unique tool for retrospection for both, teachers and students. It has grown and evolved over
the years to provide feedback to all concerned in terms of the strengths and weaknesses of the
candidates in handling the ICSE examinations.
We commend the work of Mrs. Shilpi Gupta and the team at the RDCD who have
painstakingly prepared this analysis. We are grateful to the examiners who have contributed
through their comments on the performance of the candidates under examination as well as
for their suggestions to teachers and students for the effective transaction of the syllabus.
We hope the schools will find this document useful in more ways than one. We invite
comments from schools on further improving its utility and quality.
Gerry Arathoon
November, 2016 Chief Executive & Secretary
Shilpi Gupta
November, 2016 Deputy Head - RDCD
STATISTICS AT A GLANCE
Total Number of students who took the examination 99,856
Highest Marks Obtained 100
Lowest Marks Obtained 27
Mean Marks Obtained 83.28
70.00 61.11
60.00
Percentage of Candidates
50.00
40.00 29.37
30.00
20.00 9.47
0.00 0.05
10.00
0.00
0-20 21-40 41-60 61-80 81-100
Marks Obtained
239
ANALYSIS OF PERFORMANCE
Question 1.
(a) Define Encapsulation. [2]
(b) What are keywords? Give an example. [2]
(c) Name any two library packages. [2]
(d) Name the type of error ( syntax, runtime or logical error ) in each case given below: [2]
(i) Math.sqrt (36 – 45)
(ii) int a;b;c;
(e) If int x [ ] = { 4, 3 , 7, 8, 9, 10}; what are the values of p and q? [2]
(i) p = x.length
(ii) q= x[2] + x[5] * x[1]
Comments of Examiners
1. Suggestions for teachers
(a) A number of candidates answered correctly.
However, some candidates confused Basic principles such as
Encapsulation with Data abstraction. Encapsulation, Polymorphism etc.
(b) Examples of keywords were written in capital should be explained properly with
letters. For example, This, New, Public …. etc. examples.
(c) Majority of candidates wrote the full word instead Explain the importance of case
of the name of the package. For example, utility sensitivity while writing keywords.
was written instead of util. Difference between class and
(d) Many candidates were confused between runtime package must be explained with
and logical errors and therefore wrote incorrect examples.
answers. Explain different types of errors
(e) The first part was answered correctly by most with examples on the computer with
candidates. In the second part of the question clear cut differences.
some candidates were not clear about index Calculation of length of an array and
position of the array and hence used wrong values retrieving an element from a given
for calculation of the answer. array should be practiced.
240
(b) Keywords are the words that convey a special meaning to the language Compiler. These are
reserved for special purpose and must not be used as normal identifiers.
(Correct explanation with an example)
(c) java.io.* or io package
java.util.* or util package
(Any 2 library packages)
(d) (i) Runtime error
(ii) Syntax error
(e) (i ) 6
(ii) 37
Question 2.
(a) State the difference between == operator and equals ( ) method . [2]
(b) What are the types of casting shown by the following examples: [2]
(i) char c = (char)120;
(ii) int x = 't';
(c) Differentiate between formal parameter and actual parameter. [2]
(d) Write a function prototype of the following : [2]
A function PosChar which takes a string argument and a character argument and returns
an integer value.
(e) Name any two types of access specifiers. [2]
241
(a) Most candidates answered correctly. However, Give examples of the use of ==
some candidates confused == operator with operator and equals () method and
assignment operator. practice exercise questions based on
(b) Some candidates were unsure of the answer. They the above topics.
seem to have overlooked the mention of (char)120 Explain each type of conversion with
in the question and therefore interchanged the proper examples and point out the
answers. difference between them.
(c) A number of candidates were confused between Explain the terms such as formal
formal parameters and actual parameters. parameters and actual parameters and
(d) Many candidates were unable to write the illustrate them with several examples
function prototype. Some did not use the same Explain various parts of a function
variable name as mentioned in the question. with different examples. Make it
(e) Most candidates answered correctly. clear that the formal parameters
require data types and variable
names.
Students should be reminded
constantly about the importance of
case sensitivity while writing
keywords.
MARKING SCHEME
Question 2.
(a) == is an operator which is used to check the equality between primitive data type
equals () function checks the equality between Strings
(b) (i) explicit type casting
(ii) implicit type casting
(c) Actual parameter : The parameter which is present in the function call statement is called
actual parameter. It stores the original value.
Formal parameter : The parameter which is present in function prototype or function
signature is called formal parameter. It stores the duplicate value.
(d) int PosChar( String s, char ch)
242
243
244
(e) System.out.println((x%2==0)?"EVEN":"ODD");
245
Comments of Examiners
4. Many candidates answered this question Suggestions for teachers
correctly. Some common errors found were: Train students to use the same names
(i) Using a different class name than the one given for variables and methods as given in
in the question. the question.
(ii) constructor syntax was incorrect (return type Constructor syntax to be explained
void was used, variables were declared inside comprehensively with additional
revision and practice on writing
the constructor). constructors.
(iii) A single function was used instead of the one Programs on multiple functions of all
asked for in the question. types to be revised on a consistent
(iv) Price after discount was not calculated. basis.
(v) Use of ≤ and ≥ instead of the operators < = and Guide and instruct students to
>= , using commas in numbers convert English statements having
(vi) Some candidates wrote input method with conditions with ranges to JAVA
if…else statements using proper
parameters but got confused with the local and relational operators.
global variables. Advise students, in school exams
(vii) Syntax for object creation and function call against using ≤ and ≥ instead of < =
were incorrect. and >=.
Difference between global and local
variables and how to use them in
multiple function programs should be
explained clearly in class.
Creation of an object and invoking
methods using the object need to be
practiced thoroughly.
246
247
Comments of Examiners
5. Common errors made by candidates while Suggestions for teachers
attempting this question were:
(i) Menu not displayed or choice not input. Menu driven programs using switch
(ii) Wrote two separate programs instead of one. …case should be practiced in class.
(iii) Syntax of switch and default statements were The significance of break and default
wrong. statements should be explained.
(iv) Forgot to write break statement. Adequate examples and exercise
(v) Using println() in place of print() and vice versa. questions based on loop concept and
(vi) The patterns were obtained with multiple print nested loop must be given in class.
statements row after row. Method of extracting character
should be explained to candidates.
Other mistakes observed were:
(i) Candidates printed the loop variable instead of
using a counter and using it for printing the output.
(ii) Candidates did not know how to extract a letter from a string.
248
249
Comments of Examiners
Suggestions for teachers
6. Most candidates assigned a value given in the
example instead of accepting it from the user. Other Advise students to read the question
mistakes were: carefully.
(i) Initial and final values of the loop were wrong. Index value of the string starts from
(ii) Instead of applying proper logic to reverse a zero is an important point that must
word the library function reverse (). be explained with examples.
(iii) Extraction of the first and the last character of the All commonly used functions must
string was incorrect. be taught using examples.
(iv) Candidates wrote the program for a palindrome The difference between String
number. reverse and number reverse must be
taught.
250
Question 7.
251
MARKING SCHEME
Question 7.
import java.util.*;
class Q7 {
void SumSeries(int n, double x) {
double sum=0.0d;
int i;
for(i=1;i<=n;i++)
{ if (i%2==0 )
sum=sum-x/(double)i;
else
sum=sum+x/(double)i; }
System.out.println("sum="+sum); }
void SumSeries() {
int s=0, p=1;
for(int i=1;i<=20;i++) {
p=p*i;
s=s+p; }
System.out.println("sum="+s); }
public static void main(String args[]) {
Q7 obj=new Q7();
obj.SumSeries(5,2.0);
obj.SumSeries();
}}}
252
Comments of Examiners
8. Most of the candidates answered this question
Suggestions for teachers
correctly. However, few common mistakes were
observed: Instruct students to read the question
(i) Duplicate value of the accepted number was not carefully.
done by most of the candidates. The program should be done
(ii) Extraction of digits was not done in a proper way. carefully and importance of having a
(iii) Loop control variable was not updated (num = duplicate copy of a number should be
num/10) explained to the students.
(iv) Variable sum to add all digits of the number was Guide students to extract digits from
not initialized. numbers with examples.
(v) Candidates checked whether the sum is divisible Difference between / and % should
by num, instead of checking whether num is be explained clearly.
divisible by sum.
MARKING SCHEME
Question 8.
import java.util.*;
class Niven
{ public static void main(String args[]) {
Scanner sc =new Scanner(System.in);
System.out.println("enter number");
int num=sc.nextInt( );
int n=num;
int rem;
int sum=0;
while(num>0)
{ rem=num%10;
sum=sum+rem;
num=num/10; }
if(n%sum==0)
System.out.println("Niven number");
else
System.out.println("not Niven Number");
} }
253
Comments of Examiners
9. Common errors found were: Suggestions for teachers
(i) Syntax error in declaring and initializing of
arrays. Solve number of problems on arrays
(ii) Double quotes were not used for any string having various data types.
values. Syntax for creation of an array as
(iii) Country name to be searched was not accepted well assigning values and accepting
from the user. input values in an array need to be
(iv) Incorrect limits of loop practiced with different examples.
For (int i=1; i<=7;i++)
(v) outputting of messages were incorrectly placed.
254
import java.util.*;
class wonders
{
public static void main(String args[])
{
String w[]={"CHICHEN ITZA","CHRIST THE REDEEMER", "TAJMAHAL", "GREATWALL
OF CHINA","MACHU PICCHU","PETRA","COLOSSEUM"};
String l[]={"MEXICO","BRAZIL","INDIA","CHINA","PERU","JORDAN","ITALY"};
String s;int i,len;
Scanner br=new Scanner(System.in);
System.out.println("Enter the name of the country to be searched for " );
s=br.nextLine();
len=w.length; // OR len = l.length;
boolean flag=false;
for (i=0;i<len;i++) // OR for( i=0;i<7;i++)
{
if(s.equalsIgnoreCase(l[i]))
{
System.out.println(l[i]+" - "+ w[i]);
flag =true; break;
}
}
if(flag== false)
OR
class Wonders
{
String w[]={"CHICHEN ITZA", "CHRIST THE REDEEMER", "TAJMAHAL", "GREATWALL
OF CHINA", "MACHU PICCHU", "PETRA", "COLOSSEUM"};
String L[]={"MEXICO","BRAZIL","INDIA","CHINA" ,"PERU","JORDAN","ITALY"};
String s;
Wonders(String x)
{
s = x;
}
public void search ( )
{
255
256
257