ICSE 10th Computer Applications 2019 Solved Question Paper

If you have any doubts, ask them in the comments section at the bottom of this page.

ICSE 10th Computer Applications 2019 Solved Paper

SECTION A (40 Marks)

Answer all questions from this Section

Question 1:
(a) Name any two basics Principle of Object-Oriented Programming [2]

Ans. Encapsulation and Polymorphism

ICSE Class 10th Computer Applications ( Java ) 2019 Solved Question Paper

(b) Write a difference between Unary and Binary Operator [2]

Ans. Operators that acts on one operand are referred to as Unary Operators while Binary Operators acts upon two operand
Unary + or Unary – , increment/decrement are the example of Unary operator While binary operator +,-,*,/ and % are the example of binary operators , (+) adds values of its operands

(c) Name the keywords which: [2]
(i) indicates that a method has no return type
(ii) makes the variable as a class variable

Ans. (i)void
(ii) static (static variables are also known as Class variables.)

ICSE Class 10th Computer Applications ( Java ) 2019 Solved Question Paper

(d) Write the memory capacity (storage size) of short and float data type in bytes [2]

Ans. short data type is of 2 bytes and float is of 4 bytes

(e) Identify and name the following tokens: [2]
(i) public
(ii) ‘a’
(iii) ==
(iv) { }

Ans. (i) public- Access Specifier
(ii) ‘a’- character
(iii) == is a Relational operator
(iv) { } is a Curly braces, Java uses them for surrounding the bodies of loops, methods and classes.

Question 2
(a) Differentiate between if else if and switch case statements [2]

Ans. Expression inside if or else if statement decide whether to execute the statements inside if block or under else if block. On the other hand, expression inside switch statement decide which case to execute.

You can have multiple if statement for multiple choice of statements. In switch you only have one expression for the multiple choices.

(b) Give the output of the following code[2]
String P=”20″,Q=”19″;
int a=Integer.parseInt(P);
int b=Integer.valueOf(Q);
System.out.println(a+””+b);

Ans. 2019

(c) What are the various types of errors in Java [2]
Ans. (i) Syntax or Compile time error
(ii) Logical error
(iii) Exception or Runtime error

(d) State the data type and value of res after the following is executed [2]
char ch=’9′;
res = Character.isDigit(ch);

Ans. Data type is boolean and the value in res will be true

ICSE Class 10th Computer Applications ( Java ) 2019 Solved Question Paper

(e) What is the difference between linear search & binary search technique [2]
Ans. Input elements needs to be sorted in Binary Search and not in Linear Search
Linear search does the sequential access whereas Binary search access data randomly.

Question 3
(a) Write a Java expression for the following: [2]
|x²+2xy|

Ans. Math.abs(Math.pow(x, 2)+2*x*y));

(b) Write the return data type of the following functions: [2]
(i)startsWith()
(ii)random()

ICSE Class 10th Computer Applications ( Java ) 2019 Solved Question Paper

Ans.(i) boolean
(ii)double

(c)If the value of basic = 1500, what will be the value of tax after the following statement is executed [2]

Ans. 200
(d) Give the output of the following code and mention how many times loop will execute ? [2]

Ans. Answer will be 4 2
Explanation: So i is initialized as 5 which is greater than 1 which means body of for loop will execute 5 times, since the keyword continue is used in body of if & expression 5 % 2 == 1 is true , then if will get executed for the very first time & since because of continue (the continue keyword causes control to immediately jump to the update statement.) the next statement just after the body of if will not be executed.

(e) State the difference between call by value and call by reference: [2]

Ans. Call by Value:(i) While calling a function, we pass values of variables to it.
(ii) In this, the value of each variable in calling function is copied into corresponding dummy variables of the called function
Call By Reference: While calling a function, instead of passing the values of variables, we pass address of variables(location of variables) to the function known as “Call By References.

(f) Give the Output of the following: [2]
Math.sqrt(Math.max(9,16))

Ans. 4.0

(g) Write the output of the following: [2]
String s1=”phoenix”;String s2=”island”;
System.out.println(s1.substring(0).concat(s2.substring(2)));
System.out.println(s2.toUpperCase());

Ans. s1.substring(0) is phoenix & s2.substring(2) is land , concat() function will concatenate “phoenix” & “land”

From s2.toUpperCase(), “island” will be converted into upper case

Output: phoenixland
ISLAND

(h) Evaluate the following expression if the value of x=2,y=3 and z=1.
v = x + – -z + y++ + y [2]

Ans. v = x+ – -z + y++ + y
v=2 + 0 + 3 + 4
v=9

(i) String x[]={“Artificial intelligence”,”IOT”,”Machine learning”,”Big data”}: [2]
Give the output of the following statements:
(i) System.out.println(x[3]);
(ii)System.out.println(x.length);

Ans. (i) Big data
(ii) 4
(j) What is meant by a package.Give an example [2]

Ans. Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces., examples : lang , io , util etc..

SECTION B (60 Marks)

Attempt any four questions from this Section.
The answers in this section should consist of the programs in either BlueJ environment or any program environment with Java as the base.
Each program should be written using Variable descriptions/Mneumonic codes so that the logic of the program is clearly depicted.
Flow-charts and algorithms are not required.

 

Question 4
Design a class name ShowRoom with the following description:
Instance variables/data members:
String name: to store the name of the customer.
long mobno: to store customer’s mobile number.
double cost: to store the cost of the item purchased.
double dis: to store the discount amount.
double amount: to store the amount to be paid after discount.
Methods:
ShowRoom(): default constructor to initialize the data members
void input(): to input customer name, mobile number, cost
void calculate(): to calculate discount on the cost of purchased items, based on the following criteria

Cost Discount(In percentage)
Less than or equal to ₹ 100005 %
More than ₹ 10000 and less than or equal to ₹ 2000010 %
More than ₹ 20000 and less than or equal to ₹ 3500015 %
More than ₹ 3500020%

void display()- To display customer, mobile number, amount to be paid after discount.
Write a main() method to create an object of the class and call the above methods.

Ans.

Sample output:

ICSE Class 10th Computer Applications 10 Year Solved Question Papers

Question 5
Use the switch case statement, write a menu driven program to do the following:
(a) To generate and print letters from A to Z & their Unicode

icse-10th-computer-application-2019-solved-paper

(b) Display the following pattern iteration (looping) statement:


1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Ans.

Sample output 1:

Sample output 2:

Question 6
Write a program to input 15 integer elements in an array and sort them in ascending order using the bubble sort technique.
Ans.

Sample output

Question 7 Design a class to overload a function series() as follows:

(i) void series(int x, int n) – To display the sum of the series given below:

x¹+x²+x³+. . . . .x^n terms</b

(ii)void series(int p) – To display the following series
0, 7, 26, 63. . . . .p terms

(iii) void series() – To display the sum of the series given below:
1/2+1/3+1/4+. . . . . .1/10

Ans.

Question 8 Write program to input a sentence and convert it into uppercase and count and display the total no. of words starting with a letter ‘A’.
Example:
Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING
Sample Output: Total number of word Starting with letter ‘A’= 4

Ans.

 

or

Sample output 1

Question 9
A tech number has a even number of digits if the number is split in two equal halves , then the square of sum of these two halves is equal to the number itself. Write a program to generate and print all 4 digit tech numbers:
Example:
Consider the number 3025
Square of sum of the halves of 3025

= (30 + 25)²
= (55)²
3025 is a tech number

Ans.

Sample output 1

Sample output 2

Checkout 10 years Solved Question Papers ICSE 10 Years Solved Papers
Download Question Paper

ICSE 10th Computer Applications 2019 Solved Paper

Editorial Staff

Editorial Staff at TCA is a team of Programmers led by Shubham Tripathi. Trusted by over 100K readers worldwide

    See all posts by shubham

    19 thoughts on “ICSE 10th Computer Applications 2019 Solved Paper

    • July 17, 2019 at 12:56 am
      Permalink

      How to download pdf of this paper

      Reply
    • July 17, 2019 at 6:16 am
      Permalink

      Hey can u send 10 years solved papers as pdf??

      Reply
          • September 24, 2019 at 7:43 am
            Permalink

            Hey Rohit , because in question there specifically mentioned that “print all 4 digit tech numbers” so we must have to use for loop

            Reply
            • September 24, 2019 at 6:25 pm
              Permalink

              Yes u’re right 🙂

          • September 24, 2019 at 6:05 pm
            Permalink

            Since u’ve to print all the tech no. in between 1000 & 9999 , so we compulsorily need to use for loop or any other loop

            Reply
      • August 7, 2019 at 10:33 am
        Permalink

        Hey Kinjal, you can get pdf’s & eBooks from the product section , visit Product for more

        Reply
    • September 21, 2019 at 5:29 pm
      Permalink

      (h) Evaluate the following expression if the value of x=2,y=3 and z=1.
      v=x+ –z+y++ +y[2]

      Ans. v=x+ –z+y++ +y
      v=2 + 0 + 3 + 4
      v=9

      In this you have writen -z =0 but in question the value of z=1

      Reply
      • September 21, 2019 at 6:20 pm
        Permalink

        Hey Koushikv , yes the value of z is 1 but , if you see expression , z is with pre-decrement operator … so that is the reason it will become 0

        Reply
    • September 25, 2019 at 4:27 pm
      Permalink

      In question 6 when we are actually running the the programme it shows as no output. Why is it happening?

      Reply
      • September 25, 2019 at 5:18 pm
        Permalink

        Hey Janny , this program is absolutely running fine on every machine (both linux & windows), will you please share the screenshot of you program along with output screen , please write us at [email protected]

        Reply
        • September 25, 2019 at 11:28 pm
          Permalink

          Hello
          Dear sir,
          I had actually written the whole program an tried to execute it.but I don’t know why didn’t it work earlier but later on when I tried it work.
          thanks a lot for putting efforts to clarify my doubt and I have a complaint regarding that we cannot delete a complaint if it is has been put up by mistake.
          Regards,
          Janny.

          Reply
          • September 26, 2019 at 11:58 am
            Permalink

            Hey Janny,
            Thank you for your feedback/suggestion on Delete option for any Comment/Complaint/Query , i can understand that there should be a option for a User to Delete there Query if the problem has been resolved but our team has analysed that OLD query can be a solution for new users ,So that is the reason few months ago we had removed this option.
            Best Regards
            Author ,
            Technocrats Computer Academy

            Reply
      • September 25, 2019 at 5:36 pm
        Permalink

        i tried running just now & it successfully executed

        Reply

    Leave a Reply

    Your email address will not be published. Required fields are marked *