0% found this document useful (0 votes)
78 views3 pages

Computer Application Examination: (Email ID:)

This document provides instructions and questions for a computer application examination for Class 10 ICSE students. It contains 4 sections with multiple choice and programming questions. Section A contains 5 short answer questions worth 2 marks each. Section B contains 4 programming questions worth 15 marks each requiring students to write code for various problems using appropriate data structures, algorithms, and object-oriented concepts.

Uploaded by

Soumyadip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views3 pages

Computer Application Examination: (Email ID:)

This document provides instructions and questions for a computer application examination for Class 10 ICSE students. It contains 4 sections with multiple choice and programming questions. Section A contains 5 short answer questions worth 2 marks each. Section B contains 4 programming questions worth 15 marks each requiring students to write code for various problems using appropriate data structures, algorithms, and object-oriented concepts.

Uploaded by

Soumyadip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

COMPUTER APPLICATION EXAMINATION

[MEA+STADS] [Date: 29/11/2020] [Full Marks: 100]


[Class 10 ICSE] [Time: 07:30 AM to 09:30 AM]
[Email ID: esaby.class10@gmail.com]
INSTRUCTIONS
 Write YOUR NAME and SCHOOL NAME on the top of the answer script.
 Make a single copy of your script as a PDF file and send it in the email-id provided
in the paper by 10:00 AM. After which mails will not be checked!!

ANSWER ALL QUESTIONS

SECTION – A (40 marks)


Attempt all Questions
Question 1
(a) Write a difference between unary and binary operator. [2]
(b) Differentiate between searching and sorting. [2]
(c) What is inheritance? [2]
(d) Name any two library packages. [2]
(e) What are identifiers? [2]

Question 2
(a) Differentiate between if else if and switch-case statements. [2]
(b) Write the prototype of a function check which takes an integer as an argument and returns a character.
[2]
(c) Name any two types of access specifiers. [2]
(d) What are the two ways of invoking functions? [2]
(e) Name any two types of constructors. [2]

Question 3
(a) Write a Java expression for the following: | 𝑥 2 + 2𝑥𝑦 | [2]
(b) Write the output for the following: [2]
System.out.println(“Incredible”+”\n”+”World”);
(c) Why is an object called an instance of a class? [2]
(d) What is the value of x1 if x = 5? x1 = ++x – x++ + --x [2]
(e) State the difference between == operator and equals() method. [2]

Question 4
(a) Rewrite the following using ternary operator: [2]
if(x%2 == 0)
System.out.println(“EVEN”);
else
System.out.println(“ODD”);
(b) State the package that contains the class: [2]
i) BufferedReader
Page 1 of 3
ii) Scanner
(c) Give the output of the following: [2]
Math.sqrt(Math.max(9,16));
(d) Give the output of the following string functions: [2]
i) “ACHIEVEMENT”.replace(‘E’,’A’);
ii) “DEDICATE”.compareTo(“DEVOTE”);
(e) If int y = 10 then find: int z = (++y*(y++ + 5)); [2]

SECTION – B (60 marks)


Attempt any four Questions. Each program should be written using Variable Descriptions/Mnemonic Codes
such that the logic of the program is clearly depicted.
Flowcharts and Algorithms are not required

Question 5
Define a class named ShowRoom with the following description: [15]
Instance variables/data members:
String name : stores the name of the customer
long mobno : stores the mobile number of the customer
double cost : stores the cost of the items purchased
double dis : stores the discount amount
double amount : stores the amount to be paid after discount

Member Methods:
ShowRoom() : default constructor to initialize data members
void input() : to input customer name, mobile number, cost
void calculate() : to calculate discount on the cost of purchased items, based on following criteria

Cost Discount (in percentage)


Less than or equal to Rs. 10000 5%
More than Rs. 10000 and less than or equal to Rs. 20000 10%
More than Rs. 20000 and less than or equal to Rs. 35000 15%
More than Rs. 35000 20%

void display() : to display the customer name, mobile number, amount to be paid after discount

Write a main method to create an object of the class and call the above member methods.

Question 6
Write a program to input twenty names in an array. Arrange these names in descending order of alphabets using
the bubble sort technique. [15]

Question 7
Design a class to overload a function volume() as follows: [15]

i) double volume(double R) : with radius (R) as an argument, returns the


volume of sphere using the formula.
V = 4/3 * 22/7 * R3
Page 2 of 3
ii) double volume(double H, double R) : with height(H) and radius(R) as the
arguments, returns the volume of a cylinder
using the formula.
V = 22/7 * R2 * H
iii) double volume(double L, double B, double H) : with length(L), breadth(B) and height(H) as
the arguments, returns the volume of a
cuboid using the formula.
V = L*B*H

Question 8
Using switch statement, write a menu driven program for the following: [15]
i) to find and display the sum of the series given below:
𝑆 = 𝑥1 − 𝑥 2 + 𝑥 3 − 𝑥 4 + 𝑥 5 … … … … … − 𝑥 20
ii) to display the following series:
1 11 111 1111 11111
For an incorrect option, an appropriate error message should be displayed.

Question 9
Write a program to input and store roll numbers, names and marks in 3 subjects of n number students in five
single dimensional array and display the remark based on average marks as given below. (the maximum marks
in the subject are 100). [15]

𝑇𝑜𝑡𝑎𝑙 𝑚𝑎𝑟𝑘𝑠
𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝑚𝑎𝑟𝑘𝑠 =
3
Question 10
Using the switch statement, write a menu driven program to: [15]
i) To find and display all the factors of a number input by the user (including 1 and excluding the
number itself).
Example:
Sample Input: n = 15
Sample Output: 1, 3, 5

ii) To find and display the factorial of a number input by the user (the factorial of a non-negative
integer n, denoted by n!, is the product of all integers less than or equal to n.
Example:
Sample Input: n=5
Sample Output: 5! = 1*2*3*4*5 = 120

For an incorrect choice, an appropriate error message should be displayed.

Page 3 of 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy